LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sendmail(SMTP) and access to it over the network (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-smtp-and-access-to-it-over-the-network-76167/)

tweselak 07-26-2003 05:02 PM

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!

david_ross 07-27-2003 06:14 AM

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

dskny 08-05-2003 09:50 PM

how do I make so that it is "not just listening on the loopback"?

david_ross 08-06-2003 12:29 PM

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.

dskny 08-06-2003 01:26 PM

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

david_ross 08-06-2003 01:54 PM

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.

dskny 08-07-2003 01:54 PM

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.