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
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 the
mta-relayentry with the correct value. If it’s not there, add it at the bottom of the file, along with the relevant
# /etc/rc.d/smtpd start
Restart the queue
# smtpctl schedule all
Simple!comments powered by Disqus