LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2003, 05:02 PM   #1
tweselak
LQ Newbie
 
Registered: Jul 2003
Distribution: RedHat 9
Posts: 4

Rep: Reputation: 0
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.

How do I get the server to accept SMTP sends from accross my network?

Thanks!
 
Old 07-27-2003, 06:14 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
Old 08-05-2003, 09:50 PM   #3
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Rep: Reputation: 15
how do I make so that it is "not just listening on the loopback"?
 
Old 08-06-2003, 12:29 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 08-06-2003, 01:26 PM   #5
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Rep: Reputation: 15
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
 
Old 08-06-2003, 01:54 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 08-07-2003, 01:54 PM   #7
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail smtp problem fuelinjection Linux - General 4 07-06-2004 07:30 PM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
NMF (Network Multi Firewall) 8.2 and SMTP; POP3 access Cayouettem Linux - Networking 0 08-23-2003 11:35 AM
SMTP by SendMail thomas_hk03 Linux - Software 5 08-06-2003 10:53 PM
smtp internal network 192.168.x.x sendmail sloboda Linux - Networking 0 10-03-2001 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration