Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Config of sendmail for local mail only.

SOLVED
Go to solution
Mike Nemeth
Advisor

Config of sendmail for local mail only.

We are using sendmail 8.7.1 (can't upgrade)
with no DNS for mail from local accounts only.
The mail log gets flooded with messages
about domain name.
How can I config sendmail to prevent. this and only use the short name ?
4 REPLIES
John Palmer
Honored Contributor
Solution

Re: Config of sendmail for local mail only.

Try adding an alias to your hostname of . (trailing dot) in /etc/hosts.

eg for hostname fred
fred fred.

Then stop and restart sendmail with
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

Regards,

John
Andreas Voss
Honored Contributor

Re: Config of sendmail for local mail only.

Hi,

use ie. whithin /etc/mail/sendmail.cf:
Dj$w.hp.com

Within your /etc/hosts make aliases for your hosts like:
192.1.1.1 server server.hp.com

Regards

Andrew
Mike Nemeth
Advisor

Re: Config of sendmail for local mail only.

John your idea worked fine; I didn't even
have to restart send mail.
Andrew I didn't try you idea but thanks!
Andreas Voss
Honored Contributor

Re: Config of sendmail for local mail only.

Hi,

John has solved your problem - so give him some points please.