moved server files to its own directory and update tests
This commit is contained in:
@@ -8,7 +8,7 @@ SMTP_TLS_PORT = 40587
|
||||
HOSTNAME = 'localhost'
|
||||
|
||||
# Database settings
|
||||
DATABASE_URL = 'sqlite:///smtp_server.db'
|
||||
DATABASE_URL = 'sqlite:///email-server/server_data/smtp_server.db'
|
||||
|
||||
# Logging settings
|
||||
LOG_LEVEL = 'INFO'
|
||||
@@ -17,8 +17,8 @@ LOG_LEVEL = 'INFO'
|
||||
RELAY_TIMEOUT = 10
|
||||
|
||||
# TLS settings
|
||||
TLS_CERT_FILE = 'server.crt'
|
||||
TLS_KEY_FILE = 'server.key'
|
||||
TLS_CERT_FILE = 'email-server/ssl_certs/server.crt'
|
||||
TLS_KEY_FILE = 'email-server/ssl_certs/server.key'
|
||||
|
||||
# DKIM settings
|
||||
DKIM_SELECTOR = 'default'
|
||||
@@ -49,9 +49,6 @@ python cli_tools.py add-ip 10.0.0.50 mycompany.org # Internal server
|
||||
python cli_tools.py add-ip 203.0.113.10 example.com # External trusted IP
|
||||
```
|
||||
|
||||
# Add entire local network (if your server supports CIDR - may need modification)
|
||||
`python cli_tools.py add-ip 192.168.1.0 example.com` # Network range
|
||||
|
||||
# ========================================
|
||||
# DKIM KEY MANAGEMENT
|
||||
# ========================================
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
## setup domain and account for sending email:
|
||||
```bash
|
||||
python email-server/cli_tools.py add-domain example.com
|
||||
python email-server/cli_tools.py add-user test@example.com testpass123 example.com
|
||||
python email-server/cli_tools.py add-ip 127.0.0.1 example.com
|
||||
python email-server/cli_tools.py add-ip 10.100.111.1 example.com
|
||||
python email-server/cli_tools.py generate-dkim example.com
|
||||
```
|
||||
|
||||
## Check db logs
|
||||
`sqlite3 smtp_server.db "SELECT message_id, rcpt_tos, status FROM email_logs;"`
|
||||
|
||||
Reference in New Issue
Block a user