Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sendmail h8s me
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
vrih
n00b
n00b


Joined: 05 Dec 2002
Posts: 69
Location: London, England

PostPosted: Thu Dec 05, 2002 11:31 am    Post subject: Sendmail h8s me Reply with quote

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
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Thu Dec 05, 2002 1:15 pm    Post subject: Re: Sendmail h8s me Reply with quote

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
View user's profile Send private message
vrih
n00b
n00b


Joined: 05 Dec 2002
Posts: 69
Location: London, England

PostPosted: Thu Dec 05, 2002 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Thu Dec 05, 2002 6:21 pm    Post subject: Reply with quote

Are your nameservers set up properly in your /etc/resolv.conf file?
_________________
-David
Back to top
View user's profile Send private message
vrih
n00b
n00b


Joined: 05 Dec 2002
Posts: 69
Location: London, England

PostPosted: Thu Dec 05, 2002 6:37 pm    Post subject: Reply with quote

yeah, i think so. i hav no problems surfing the web or recieving mail pop3
Back to top
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Fri Dec 06, 2002 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
vrih
n00b
n00b


Joined: 05 Dec 2002
Posts: 69
Location: London, England

PostPosted: Fri Dec 06, 2002 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
wibblefrog
n00b
n00b


Joined: 08 Jan 2003
Posts: 4
Location: Birmingham, England

PostPosted: Thu Jan 09, 2003 1:08 pm    Post subject: sendmail.cf Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum