View previous topic :: View next topic |
Author |
Message |
vrih n00b
Joined: 05 Dec 2002 Posts: 69 Location: London, England
|
Posted: Thu Dec 05, 2002 11:31 am Post subject: Sendmail h8s me |
|
|
All messages being sent from my computer get a hostname lookup failure on my smarthost. Can ne1 tell me where i'm going wrong?
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.2 2002/07/04 04:55:29 g2boojum Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
define(`SMART_HOST',`post.demon.co.uk')dnl
MASQUERADE_AS(areti.co.uk)dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
FEATURE(`local_procmail')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Cwlocalhost.localdomain |
|
Back to top |
|
|
fyerk Apprentice
Joined: 17 Sep 2002 Posts: 212 Location: Atlanta, GA
|
Posted: Thu Dec 05, 2002 1:15 pm Post subject: Re: Sendmail h8s me |
|
|
vrih wrote: |
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')dnl
|
This means that sendmail will only bind to the "localhost" address. Comment this line out (just put a dnl in front of it.)
Then, recreate sendmail.cf and rehash.
Code: |
# cd /etc/mail
# m4 sendmail.mc > sendmail.cf
# /etc/init.d/sendmail restart
|
_________________ -David |
|
Back to top |
|
|
vrih n00b
Joined: 05 Dec 2002 Posts: 69 Location: London, England
|
Posted: Thu Dec 05, 2002 5:38 pm Post subject: |
|
|
tried that but it doesn't work. here's my queue entry and log message for one of the messages:
Code: |
gB5HQAYq017440* 5 Thu Dec 5 17:26 <vrih@localhost.localdomain>
(Deferred: Name server: post.demon.co.uk: host name lookup fa)
<vrih@areti.co.uk>
|
Code: |
Dec 5 17:26:10 largon sendmail[17439]: gB5HQAaD017439: to=vrih@areti.co.uk, ctladdr=vrih (100
0/10), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30285, relay=localhost.localdomain.
[127.0.0.1], dsn=2.0.0, stat=Sent (gB5HQAYq017440 Message accepted for delivery)
|
|
|
Back to top |
|
|
fyerk Apprentice
Joined: 17 Sep 2002 Posts: 212 Location: Atlanta, GA
|
Posted: Thu Dec 05, 2002 6:21 pm Post subject: |
|
|
Are your nameservers set up properly in your /etc/resolv.conf file? _________________ -David |
|
Back to top |
|
|
vrih n00b
Joined: 05 Dec 2002 Posts: 69 Location: London, England
|
Posted: Thu Dec 05, 2002 6:37 pm Post subject: |
|
|
yeah, i think so. i hav no problems surfing the web or recieving mail pop3 |
|
Back to top |
|
|
fyerk Apprentice
Joined: 17 Sep 2002 Posts: 212 Location: Atlanta, GA
|
Posted: Fri Dec 06, 2002 1:15 pm Post subject: |
|
|
Try adding more nameservers to /etc/resolv.conf
I couldn't resolve the host 'areti.co.uk' using post.demon.co.uk as a nameserver -- which is what sendmail is trying to do.
I'd recommend adding ns1.areti.net since that seems to work. _________________ -David |
|
Back to top |
|
|
vrih n00b
Joined: 05 Dec 2002 Posts: 69 Location: London, England
|
Posted: Fri Dec 06, 2002 6:07 pm Post subject: |
|
|
i fixed it by using the ip address of the smart host but i still don't understand why sendmail wasn't looking it up with one of the nameservers in my /etc/resolv.conf |
|
Back to top |
|
|
wibblefrog n00b
Joined: 08 Jan 2003 Posts: 4 Location: Birmingham, England
|
Posted: Thu Jan 09, 2003 1:08 pm Post subject: sendmail.cf |
|
|
Are you sure that the SMART_HOST was definitely in your sendmail.cf? I am using a couple of sendmail servers at work and it doesn't always add them. As such I sometimes modify the sendmail.cf directly. _________________ I see! said the blind man to his deaf daughter. |
|
Back to top |
|
|
|