Sendmail(SMTP) and access to it over the network
I have recently started my Linux experiences with Redhat 9.
I have now got the XP machine getting a net connection through the LinuxServer, and have activated ipop3, and can pull email off an account on the server. I have not setup DNS quite yet, and am using the IP address of the NIC connected to the dsl modem. I'm not sure that it should work that way, but it does. :rolleyes: How do I get the server to accept SMTP sends from accross my network? Thanks! |
2 things:
1) Make sure you don't have any firewall rules blocking port 25: iptables -nL 2) Make sure that sendmail is started and not just listening on the loopback: netstat -nlp |
how do I make so that it is "not just listening on the loopback"?
|
Edit your sendmail.mc file and "dnl" the line that tells it only to listen on the loopback. It should eb the only line with "127.0.0.1". Then rebuild the sendmail.cf file. see the top of sendmail.mc for instructions. Then restart sendmail.
|
tried that and still no luck
I've tried these combinations also: #O DaemonPortOptions=Port=smtp, Addr=192.168.1.5, Name=MTA #O DaemonPortOptions=Port=smtp, Addr=0.0.0.0, Name=MTA O DaemonPortOptions=Port=smtp, Name=MTA when I netstat, I still get tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN Seems from most of the postings I've seen, what you mentioned is what worked for most people...for me, it just won't work...any other ideas? thanks |
Don't use a # in the file use "dnl" instead. Just comment out all those lines. Then convert the mc file to the cf file and restart sendmail.
|
I don't use an .mc file, I edit sendmail.cf directly.
It's really odd, it just won't listen on any other interface except 127.0.0.1 Anyways, thanks for the help. |
All times are GMT -5. The time now is 12:34 AM. |