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.
On Mon, February 26, 2007 12:40 pm, Eur Ing Chris Green wrote:
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!
Add domains that are local to local-host-names.
-bash-2.05b$ cat /etc/mail/local-host-names # local-host-names - include all aliases for your machine here.
Cheers.
-Mark
----------------------------------------------------------- This message may contain confidential and/or privileged information. This information is intended to be read only by the individual or entity to whom it is addressed. If you are not the intended recipient, you are on notice that any review, disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete or destroy any copy of this message.
On Mon, Feb 26, 2007 at 12:52:08PM -0000, Mark Ridley wrote:
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!
Add domains that are local to local-host-names.
-bash-2.05b$ cat /etc/mail/local-host-names # local-host-names - include all aliases for your machine here.
I've already done that:-
home# more /etc/mail/local-host-names # names of hosts for which we receive email home.isbd.net
It's surely not necessary/useful to put localhost in there it it?
On Mon, February 26, 2007 1:25 pm, Eur Ing Chris Green wrote:
On Mon, Feb 26, 2007 at 12:52:08PM -0000, Mark Ridley wrote:
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!
Add domains that are local to local-host-names.
-bash-2.05b$ cat /etc/mail/local-host-names # local-host-names - include all aliases for your machine here.
I've already done that:-
home# more /etc/mail/local-host-names # names of hosts for which we receive email home.isbd.net
It's surely not necessary/useful to put localhost in there it it?
No, you can edit sendmail.mc, so the following line looks:
dnl # Also accept email sent to "localhost.localdomain" as local email. dnl # LOCAL_DOMAIN(`localhost.localdomain')dnl
Then:
m4 sendmail.mc > sendmail.cf (this overwrites/autogenerates sendmail.cf)
Then restart sendmail.
Cheers.
-Mark
----------------------------------------------------------- This message may contain confidential and/or privileged information. This information is intended to be read only by the individual or entity to whom it is addressed. If you are not the intended recipient, you are on notice that any review, disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete or destroy any copy of this message.
On Mon, Feb 26, 2007 at 01:29:38PM -0000, Mark Ridley wrote:
On Mon, February 26, 2007 1:25 pm, Eur Ing Chris Green wrote:
On Mon, Feb 26, 2007 at 12:52:08PM -0000, Mark Ridley wrote:
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!
Add domains that are local to local-host-names.
-bash-2.05b$ cat /etc/mail/local-host-names # local-host-names - include all aliases for your machine here.
I've already done that:-
home# more /etc/mail/local-host-names # names of hosts for which we receive email home.isbd.net
It's surely not necessary/useful to put localhost in there it it?
No, you can edit sendmail.mc, so the following line looks:
dnl # Also accept email sent to "localhost.localdomain" as local email. dnl # LOCAL_DOMAIN(`localhost.localdomain')dnl
Then:
m4 sendmail.mc > sendmail.cf (this overwrites/autogenerates sendmail.cf)
As far as I can see the default Slackware sendmail.cf has this set already.
... but as I said I've solved the problem by using postfix.