I installed exim from the package and some permissions were wrong. I changed exim to be +s root and might’ve messed with spool dir and logfile permissions. (It’s 3 AM, so I’m a little fuzzy right now.)
Here’s a tip that might be helpful. I have a desktop Mac I use from behind a gateway via cable modem. By default, my Mac’s local hostname is something like Dual500MHz.local, which ain’t too useful, but who cares, right? I’m going through NAT to get to the rest of the world.
But it’s annoying to see that invalid return address on my outgoing emails (sent via commandline mail; Apple’s Mail does not use a local MTA). So I modified the following exim configuration file lines:
primary_hostname = mydomain.org
domainlist_local_domains = localhost
qualify_domain = mydomain.org
qualify_recipient = localhost
# host_lookup = *
And viola, if I type
mail localuser
it is delivered locally, if I type
mail otheruser@mydomain.org
it gets out successfully, and of course foreignuser@otherdomain.com[/] works as well.
And of course, that’s how I send text messages to my phone from a perl script in a cron job which retrieves the days’ weather forecast and sends it to me each morning.