Sendmail problem

Mark Musone mmusone at shatterit.com
Tue Aug 26 14:55:54 EDT 2003


Oh, one more question, you said that netstat showed it was listening,
But on what local address? Is sendmail only listening on localhost:25
Or on *:25 ??


Going back to my last email, either your local firewall is not allowing
connections to 66.202.79.100 port 25,

The other possibility is that sendmail is only actually listening in on
the localhost ip address...if that’s the case (and netstat -l should
show you it)
Then you want to look in your sendmail.cf file for something like this:

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

And add another DaemonPortOptions line having Addr=66.202.79.100


-Mark


-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
cliff at cliffmeyers.com
Sent: Tuesday, August 26, 2003 2:17 PM
To: nflug at nflug.org
Subject: RE: Sendmail problem

Mark,


Yes, you're correct.  When it was connecting to localhost, it worked
fine, but
when accessed through its global hostname or IP, that's when the
problems came
in.  Here's the terminal output from the tests you asked for:

[root at titanium clientmqueue]# telnet localhost 25             
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 titanium.quinlanco.net ESMTP Sendmail 8.12.5/8.12.5; Tue, 26 Aug
2003
14:12:38 -0400
quit
221 2.0.0 titanium.quinlanco.net closing connection
Connection closed by foreign host.
[root at titanium clientmqueue]# telnet 66.202.79.100 25         
Trying 66.202.79.100...
telnet: connect to address 66.202.79.100: Connection refused
[root at titanium clientmqueue]# telnet titanium.quinlanco.net 25    
Trying 66.202.79.100...
telnet: connect to address 66.202.79.100: Connection refused

So as we suspected, I can connect to sendmail via localhost but not via
its
global IP or its global hostname.  I have no idea why it was using
localhost
before and then seemed to switch to its global IP/hostname suddenly.

I added 3 entries to the end of my /etc/mail/access file:

# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
titanium                        RELAY
titanium.quinlanco.net          RELAY
66.202.79.100                   RELAY

And then ran this:

makemap hash /etc/mail/access.db < /etc/mail/access

And then restarted sendmail but it didn't fix the problem.  Do you have
any other
ideas?  Thanks again for all your help...


-Cliff







On Tue, 26 Aug 2003 13:51:34 -0400, "Mark Musone" wrote:

> 
> So to make sure I'm understanding correctly, when it was connecting to
> the localhost, sendmail was working fine, but when connecting to the
> real ip address, is when you were having the problems?
> 
> When you just tried telnetting, which ip did you do? Try both and make
> sure you can connect to port 25 on both. (the reason why I'm asking
you
> to do this is because sendmail is specifically saying it cannot
connect
> to the machine..) so let me know what happens in the three below
tests:
> 
> 1. telnet localhost 25
> 2. telnet 66.202.79.100 25
> 3. telnet titanium.quinlanco.net 25
> 
> also, on that machine when you try to telnet to the machine name, what
> IP does it say it's attempting to connect to?
> 
> FYI, and I'm sure it's because you have it behind a firewall or using
> ipchains/tables, but I tried connecting to port 25 of that ip address
> and it refused the connections..
> 
> 
> Let me know,
> Thanks,
> Mark
> 
> 
> 
> -----Original Message-----
> From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf
Of
> cliff at cliffmeyers.com
> Sent: Tuesday, August 26, 2003 12:39 PM
> To: nflug at nflug.org
> Subject: RE: Sendmail problem
> 
> Mark,
> 
> 
> Yes, it's running fine.  NMAP shows the port open and telnetting to it
> identifies
> it as Sendmail.
> 
> One thing I noticed is that before the error, titanium.quinlanco.net
was
> always
> identified by its loopback IP (127.0.0.1) and then when the error
> started, it was
> identified by its global IP (66.202.79.100).  There are no references
to
> the
> global IP in the earlier maillogs and they contain 0 errors.  However,
> after the
> first error began, the IP in the maillog for titanium.quinlanco.net
was
> always
> the global IP.
> 
> It seems like it might be a DNS issue, but titanium.quinlanco.net has
> existed for
> months without changes so I don't think this should cause any
problems.
> Any
> ideas?  Thanks a bunch.
> 
> 
> -Cliff
> 
> 
> 
> 
> 
> On Tue, 26 Aug 2003 12:26:32 -0400, "Mark Musone" wrote:
> 
> > 
> > Is titanium listening in on port 25?
> > 
> > Try to telnet to port 25 on it, even just a "telnet localhost 25"
> > 
> > -Mark
> > 
> > 
> > -----Original Message-----
> > From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf
> Of
> > cliff at cliffmeyers.com
> > Sent: Tuesday, August 26, 2003 12:12 PM
> > To: nflug at nflug.org
> > Subject: Sendmail problem
> > 
> > Hi Everyone,
> > 
> > 
> > I've been running the default RedHat 8.0 sendmail install
> > (sendmail-8.12.5-7.rpm)
> > on my webserver for the purposes of relaying e-mails generated by my
> PHP
> > apps. 
> > It had been running fine until a few days ago, when I noticed that
the
> > e-mails
> > weren't being send anymore.
> > 
> > I looked at my maillog files and it looks like here's where it
started
> > to fail...
> > all the entries to the maillog files since this point have been
> refused
> > it would
> > seem:
> > 
> > Aug 17 06:00:28 titanium sendmail[7534]: h7HA01Oo007534: from=root,
> > size=4023,
> > class=0, nrcpts=1, msgid=<200308171000.h7HA01Oo007534
> > @titanium.quinlanco.net>, relay=root at localhost
> > 
> > Aug 17 06:00:28 titanium sendmail[7542]: h7HA0SWu007542:
> > from=<root at titanium.quinlanco.net>, size=4315, class=0, nrcpts=1,
> > msgid=<20
> > 0308171000.h7HA01Oo007534 at titanium.quinlanco.net>, proto=ESMTP,
> > daemon=MTA,
> > relay=titanium.quinlanco.net [127.0.0.1]
> > 
> > Aug 17 06:00:28 titanium sendmail[7534]: h7HA01Oo007534: to=root,
> > ctladdr=root
> > (0/0), delay=00:00:27, xdelay=00:00:00, mailer=relay,
> >  pri=30221, relay=titanium.quinlanco.net. [127.0.0.1], dsn=2.0.0,
> > stat=Sent
> > (h7HA0SWu007542 Message accepted for delivery)
> > 
> > Aug 17 06:00:28 titanium sendmail[7543]: h7HA0SWu007542:
> > to=<root at titanium.quinlanco.net>,
> ctladdr=<root at titanium.quinlanco.net>
> > (0/
> > 0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=34552,
> dsn=2.0.0,
> > stat=Sent
> > 
> > Aug 18 01:03:10 titanium sendmail[7790]: h7I5000U007790: from=root,
> > size=7935,
> > class=0, nrcpts=1, msgid=<200308180500.h7I5000U007790
> > @titanium.quinlanco.net>, relay=root at localhost
> > 
> > Aug 18 01:03:10 titanium sendmail[7790]: h7I5000U007790: to=root,
> > ctladdr=root
> > (0/0), delay=00:03:10, xdelay=00:00:00, mailer=relay,
> >  pri=30214, relay=titanium.quinlanco.net. [66.202.79.100],
dsn=4.0.0,
> > stat=Deferred: Connection refused by titanium.quinlanco.net.
> > 
> > 
> > Can anyone offer advice here?  Admittedly I don't know much about
> > sendmail, but
> > this is kind of a major problem.  Any advice would really be
> appreciated
> > - thanks
> > so much.
> > 
> > 
> > -Cliff
> > 
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
> >  
> > 
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
> >  
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
>  
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
>  

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
 





More information about the nflug mailing list