Chris
If you are going to edit the files they say you *should* do the sendmail.mc. But from the "old skule" go into the sendmail.cf and change
# my official domain name # ... define this only if sendmail cannot automatically determine your domain Djhome.isbd.net
HTH Keith
-----Original Message----- From: main-bounces@lists.alug.org.uk [mailto:main-bounces@lists.alug.org.uk] On Behalf Of Eur Ing Chris Green Sent: 26 February 2007 12:41 To: main@lists.alug.org.uk Subject: [ALUG] How to make sendmail deliver mail locally?
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.
-- Chris Green
_______________________________________________ main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!