LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2003, 10:55 PM   #1
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Rep: Reputation: 15
Angry Sendmail is a b.......


Ok, I have spent many weeks on this send mail thing. I own the domain OasisOne.org. I want to use sendmail to be able to have email accounts at that domain. (ex. admin@oasisone.org). I have RedHat9 running on my email server, and it has sendmail and webmin installed. I have a public IP address 198.70.248.* . I run NAT from a router so my webserver has a internal IP address of 192.168.0.116. I have the POP3 port fowarded to the email server in the router. And I have a MX record at godaddy.com pointing to my public IP. Why will this setup not work??? am I not using a correct port someware? Thanks for your help.
-Randy
 
Old 12-10-2003, 08:42 AM   #2
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 31
do you also have smtp on port 25 forwarded ? also, listing you domain name is the same as listing your ip address, just for future reference.
 
Old 12-10-2003, 09:32 AM   #3
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
ok i have sendmail running on RH9...

works like a dream.

lets assume your router etc is fine.

i think we should concentrate on sendmail...

what your sendmail mc file look like? and access, relay-domain and local-host-name files.........

G
 
Old 12-10-2003, 12:36 PM   #4
neozero62
Member
 
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 103

Original Poster
Rep: Reputation: 15
Ok, so I need to foward smtp also? and do I need to past here from my mc file GraemeK?
Thanks again.
Randy
 
Old 12-10-2003, 08:54 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the most common problem with a new sendmail setup would be that it does not listen on your external interface by default.

If this is the case you should be able to telnet into it locally but not over the internet or network.


[david@zeus david]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.dcphillips.net ESMTP Wassup! Welcome to the mail shredder.


[david@zeus david]$ telnet somewhere.com 25
Trying 123.123.123.123...
telnet: Unable to connect to remote host: Connection refused



Last edited by DavidPhillips; 12-10-2003 at 08:58 PM.
 
Old 12-10-2003, 09:36 PM   #6
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 31
yes, to use sendmail as a MTA you need to forward 25 on your router and be sure you have removed the loopback address in the config file. Youll need to tell it to listen on your boxes ip and then make the config file again. Also, if you are running IPtables, make sure ports for pop3 and smtp are open
 
Old 12-11-2003, 06:32 AM   #7
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
you need the loopback ip listed in the sendmail.mc as well as the public one.

otherwise you wont get localmail and tones of errors like i did!

G
 
Old 12-11-2003, 10:39 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Basically the line we're talking about here is limiting what interfaces sendmaill listens on. Instead of listing them all if you list none of them it will listen on all interfaces


DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl


If you change it to

DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl


It should work on all interfaces. It will work if you add the ip address you want on the interface as well but if it might change it's best to not limit it to a certain interface.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 08:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 03:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 02:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 12:47 PM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 10:57 PM


All times are GMT -5. The time now is 08:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration