Copyright (C) 2007, 2011 by Steve Litt, All rights reserved. Material provided as-is, use at your own risk.
| smtpserver.your-isp.com smtp --port=<portno> --user=<loginname> --pass=<yourpassword> |
locate -i nullmail > nullmailer.filesBe sure to update the tree for the locate command before doing so. On my computer, you update it with sudo updatedb.
| File |
Used by |
Use |
| remotes |
nullmailer-send |
Defines the SMTP server(s) to which you send email, and the protocol with which to access them. |
| me |
nullmailer-inject | Badly documented, but my experiments tell me its best to put your ISP's domain name here. |
| defaulthost | nullmailer-inject | Overrides the hostname in
/etc/mailhost. As a practical matter, it's often necessary to set this
to the domain name of your ISP, e.g. earthlink.net. |
| defaultdomain | nullmailer-inject | If the hostname determined by
the defaulthost file or /etc/mailname has no dots, then this is bolted
on at the back of that hostname. |
| pausetime | nullmailer-send | From the man page:
The number of seconds to pause between
successive queue runs when there are messages in the queue (defaults to
60). If
this
is set to 0, nullmailer-send will exit immediately after
going through the queue once (one-shot mode). In other words, how many seconds will you wait to let messages accumulate before sending them. |
| adminaddr | nullmailer-queue | The email address to whom Nullmailer sends failures and errors. |
| helohost |
nullmailer-send | More protocol stuff. Beyond the scope of this document. |
| sendtimeout |
nullmailer-send | The man page is unclear on this,
but it appears to be a timeout on an individual message send and
appears to default to one hour. One hour is probably an excellent value
on dialup, but on a properly functioning high speed (10Mbps) Internet I
can't imagine a realistic send from a home computer lasting more than
ten minutes, and if the file is that big, you're probably going to run
into limits at the SMTP server. |
service nullmailer startThe preceding command runs it as a daemon, which isn't what you want while testing and troubleshooting. You want it running in the foreground so you can see messages realtime. To do that, as user root run it like this:
nullmailer-sendHere's a nice script that can send a test message on a Linux computer, obviously after you set variables for names and email addresses in the top section:
|
Dufus Alert
If any of your recipients is a mailing list, make sure your sender address is a member of that mailing list, or else your message won't go through. Sounds obvious, right? Well, as the possessor of multiple email addresses, I got nailed by this obvious dufus move and lost a half hour trying to figure it out. |