I recently ran into a problem with OpenSMTPD on one of my OpenBSD systems. Due to a misconfiguration
there were a number of entries in the mail queue with the wrong smarthost defined - unfortunately
this information is stored in the queue itself and changing smtpd.conf
doesn’t update the queue entries.
Fixing it is easy enough:
-
Shut down OpenSMTPD.
# /etc/rc.d/smtpd stop
-
Edit the spool files - they’re in
/var/spool/smtpd/queue/*
, one per email. You need to replace themta-relay
entry with the correct value. If it’s not there, add it at the bottom of the file, along with the relevantmta-relay-flags
:mta-relay: tls://smtp.example.com
mta-relay-flags: tls -
Start smtpd
# /etc/rc.d/smtpd start
-
Restart the queue
# smtpctl schedule all
Simple!
comments powered by Disqus