diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-29 23:52:07 +0200 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-30 00:04:45 +0200 |
| commit | de3f712bc655d476b6a8f95b0e3699716ed497dc (patch) | |
| tree | 65b61007a0e971a7ee7dd767176c5fcbccdc4585 | |
| parent | dcb5bff436e726764a33af461af692c316c94a8e (diff) | |
| download | contact-address-de3f712bc655d476b6a8f95b0e3699716ed497dc.tar.gz contact-address-de3f712bc655d476b6a8f95b0e3699716ed497dc.tar.bz2 contact-address-de3f712bc655d476b6a8f95b0e3699716ed497dc.zip | |
Upgrade to Trisquel 10 (nabia)
Trisquel 10 (nabia) has OpenSMTPD 6.6.4p1 while Trisquel 9 (etiona)
had OpenSMTP 6.0.3p1.
Between both versions, the configuration file format changed, so it
needed to be updated otherwise the daemon would not start and with
systemctl status opensmtpd we had:
Starting OpenSMTPD SMTP server...
/etc/smtpd.conf:4: syntax error
/etc/smtpd.conf:16: syntax error
warn: no rules, nothing to do
opensmtpd.service: Control process exited, code=exited, status=1/FAILURE
opensmtpd.service: Failed with result 'exit-code'.
Failed to start OpenSMTPD SMTP server.
There is also more information on the configuration file format change
in the following blog post:
https://poolp.org/posts/2018-05-21/switching-to-opensmtpd-new-config/
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
| -rw-r--r-- | etc/smtpd.conf | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/etc/smtpd.conf b/etc/smtpd.conf index 818bdcc..434f579 100644 --- a/etc/smtpd.conf +++ b/etc/smtpd.conf @@ -1,22 +1,13 @@ # OpenSMTPD configuration # man smtpd.conf for the config file format -pki "mx1.replicant.us" certificate "/etc/letsencrypt/live/mx1.replicant.us/cert.pem" +pki "mx1.replicant.us" cert "/etc/letsencrypt/live/mx1.replicant.us/cert.pem" pki "mx1.replicant.us" key "/etc/letsencrypt/live/mx1.replicant.us/privkey.pem" -# Use the following syntax instead when migrating to OpenSMTPD 6.x -# - pki [...] certificate [...] -# + pki [...] cert [...] - -listen on eth0 tls pki "mx1.replicant.us" +listen on eth0 smtps pki "mx1.replicant.us" tag external_tag # If you edit the file, you have to run "smtpctl update table aliases" table aliases file:/etc/smtpd/aliases -accept from any for any alias <aliases> deliver to maildir "~/Maildir/" - - # Accept for any domain - -# Use the following syntax instead when migrating to OpenSMTPD 6.x -# action deliver_to_local maildir "/var/mail/" alias <aliases> -# match tag external_tag from any for any action deliver_to_local +action deliver_to_local maildir "~/Maildir/" alias <aliases> +match tag external_tag from any for any action deliver_to_local |
