Re: External mail on RH8 again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Dale writes....
> 
> Hi Ralph,
> 
> Thanks for the input.
> 
> Yes, 209.212.104.70 is the correct IP address.
> 
> When I type
> 
> # telnet mail.primaryblue.com 25
> 
> I get a connection, which tells me that the outside world cannot
> access this mail domain.

Well.....I think there you have it.
How about if you try, "telnet localhost 25"
from on the box, obviously.

If you connect there, you might have a firewall issue.

BTW, it looks like ports 22 (ssh) and 25 (smtp) are open
to the world.  SO it looks like you can get at least that far.

> 
> Here is output from the lsof -i command, searching for '25' and for
> snedmail.
> 
> # [root@blackhawk log]# lsof -i | grep -i send
> sendmail   770    root    4u  IPv4   1586       TCP *:smtp (LISTEN)
> [root@blackhawk log]# lsof -i | grep 25
> xinetd     747    root    6u  IPv4   1525       TCP blackhawk:32769 (LISTEN)
> 
> Is that all OK ?

Looks good.
The machine is listening to port 25 (I assume unless you have done
something strange to use another port.), so that looks fine.
BTW  the "grep 25" for the second line is irrelivant.  You just picked
out the "25" (probably the PID) for blackhawk.



> 
> I am hosting a couplpe of domains on this server. How do I check which one
> is
> the primary?
> 
> There are not any TCP wrappers enabled, this mail server is sitting behind
> at least 2 firewalls.

Again, I'm guessing a firewall problem.
You machine is awake and listening to port 25.
And running 'namp' shows port 25 open to the world, some
something in between.

> 
> Where does sendmail keeps it's logs, and what do I check for ?

/var/log/maillog*

Actually, you might want to try,  "tcpdump port 25"
and watch it for a while, to see if anything comes
in.  That's what you really care about right?
Just make sure you distinguish local traffic for stuff
"trying" to come in.

> 
> Thanks for your help !
> 
> Jason
> 
> ----- Original Message -----
> From: "Ralf Spenneberg" <lists@spenneberg.org>
> To: <psyche-list@redhat.com>
> Sent: Tuesday, February 18, 2003 10:19 AM
> Subject: Re: External mail on RH8 again
> 
> 
> > Am Die, 2003-02-18 um 09.06 schrieb Jason Dale:
> > > Hi again,
> > >
> > > Here is a screendump of the errors I am getting when I try to send mail
> > > from the outside world to my testmail account.
> > >
> > This is what I get:
> > $ host -t mx primaryblue.com
> > primaryblue.com mail is handled by 5 mail.primaryblue.com.
> > primaryblue.com mail is handled by 10 mx01.citec.net.
> > $ host mail.primaryblue.com
> > mail.primaryblue.com has address 209.212.104.70
> > $ telnet mail.primaryblue.com 25
> > Trying 209.212.104.70...
> > Hangs forever I guess.
> >
> > $ ping mail.primaryblue.com
> > PING mail.primaryblue.com (209.212.104.70) from 192.168.0.202 : 56(84)
> > bytes of
> > data.
> > 64 bytes from 209.212.104.70: icmp_seq=1 ttl=44 time=702 ms
> > 64 bytes from 209.212.104.70: icmp_seq=2 ttl=44 time=715 ms
> > 64 bytes from 209.212.104.70: icmp_seq=3 ttl=44 time=681 ms
> >
> > Hangs forever I guess.
> > Is mail.primaryblue.com your primary mailserver?
> > Is 209.212.104.70 the correct IP address?
> > Type "lsof" -i and see if the port 25 is opened by sendmail
> > Do you have tcpwrappers enabled (/etc/hosts.deny: "ALL:ALL")
> >
> > Restart sendmail and send the logs
> >
> > Cheers,
> >
> > Ralf
> > --
> > Ralf Spenneberg
> > RHCE, RHCX
> >
> > IPsec/PPTP Kernels for Red Hat Linux:
> > http://www.spenneberg.com/.net/.org/.de
> > Honeynet Project Mirror:                http://honeynet.spenneberg.org
> > Snort Mirror:                           http://snort.spenneberg.org
> >
> >
> >
> > --
> > Psyche-list mailing list
> > Psyche-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/psyche-list
> 
> 
> 
> -- 
> Psyche-list mailing list
> Psyche-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/psyche-list
> 


-- Jay Crews
jpc@jaycrews.com



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux