I have previously used postfix but, since I only want local mail delivery, thought I'd try the default sendmail configuration in Slackware.
I can't get sendmail to deliver mail locally, it *always* tries to send it out.
For example see the following two entries from /var/log/maillog:-
Feb 26 12:31:17 home sendmail[4932]: l1QCVGAZ004932: to=maxine@localhost, ctladdr=chris (1000/100), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30312, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l1QCVGhY004933 Message accepted for delivery)
Feb 26 12:34:26 home sm-mta[4935]: l1QCVGhY004933: to=maxine@home.isbd.net, delay=00:03:09, xdelay=00:03:09, mailer=esmtp, pri=120480, relay=84-45-228-40.no-dns-yet.enta.net. [84.45.228.40], dsn=4.0.0, stat=Deferred: Connection timed out with 84-45-228-40.no-dns-yet.enta.net.
The first line says that sendmail accepts the mail, which is a good start, but the second is telling me that it's trying to send it to maxine@home.isbd.net which won't work because that tries to go to 84-45-228-40.no-dns-yet.enta.net which is my router which isn't set up to allow incoming connections on port 25.
How do I tell sendmail that localhost is 'here'? Even better would be if I could tell sendmail that home.isbd.net is 'here' too but maybe that's expecting too much!
Outgoing mail works fine by the way.