Dear Devuaners,
Having spent inordinate time setting up nullmailer to
replace exim4, here's a quickie to help someone wanting to
get started. Now that I understand it, it's actually very
easy :-) :-)
Setup is in several files in /etc/nullmailer/.
adminaddr
me@??? # send any notifications to this address
allmailfrom
me@??? # rewrite all mail to be from this address
defaultdomain
pausetime
180 # pause time after failed delivery, 0 for one shot and exit
remotes
smtp.fastmail.com smtp --tls --user=me@??? --pass=123456789 # --tls option defaults to port 465
sendtimeout
120 # close connection if mail not forwarded by this limit
For testing, set contents of pausetime to 0 and kill
the nullmailer processes if running.
When you send a mail from a mail client, it will queue
in /var/spool/nullmailer/queue.
You'll get some diagnostics by running nullmailer-send -v,
which empties the queue via the smarthost specified in
remotes.
Once this works, and you're ready to go automatic, set
pausetime to some reasonable number (default is 60 seconds)
and start the daemon, e.g. /etc/init.d/nullmailer start.
Nullmailer logs in /var/log/syslog.
One last tip: Don't use cron to run nullmailer-send. Each
cron run will generate an email notification requiring
another run, ad infinitum.
One thing remains unclear to me. Lsof doesn't show nullmailer (or
anything) listening on port 25.
Good luck!
--
Joel Roth