mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-20 15:07:03 +00:00
Having the certificates inside the domain directory may cause some confusion, as it's possible they're not for the same name (they should be for the MX we serve as, not the domain itself). So it's not a problem if we have domains with no certificates (we could be their MX with another name), and we could have more than one certificate per "domain" (if we act as MXs with different names). So this patch moves the certificates out of the domains into a new certs/ directory, where we do a one-level deep lookup for the files. While at it, change the names of the files to "fullchain.pem" and "privkey.pem", which match the names generated by the letsencrypt client, to make it easier to set up. There's no general convention for these names anyway.
25 lines
374 B
Plaintext
25 lines
374 B
Plaintext
account default
|
|
|
|
host testserver
|
|
port 1587
|
|
|
|
tls on
|
|
tls_trust_file config/certs/testserver/fullchain.pem
|
|
|
|
from user@testserver
|
|
|
|
auth on
|
|
user user@testserver
|
|
password secretpassword
|
|
|
|
account smtpport : default
|
|
port 1025
|
|
|
|
account baduser : default
|
|
user unknownuser@testserver
|
|
password secretpassword
|
|
|
|
account badpasswd : default
|
|
user user@testserver
|
|
password badsecretpassword
|