[ALUG] How to make sendmail deliver mail locally?

Mark Ridley mark at webb-heath.com
Mon Feb 26 12:52:08 GMT 2007


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 at 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 at 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 at 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.




More information about the main mailing list