LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail is a b....... (https://www.linuxquestions.org/questions/linux-software-2/sendmail-is-a-b-124429/)

neozero62 12-09-2003 09:55 PM

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:cry:

ezra143 12-10-2003 07:42 AM

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.

GraemeK 12-10-2003 08:32 AM

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

neozero62 12-10-2003 11:36 AM

Ok, so I need to foward smtp also? and do I need to past here from my mc file GraemeK?
Thanks again.
Randy

DavidPhillips 12-10-2003 07:54 PM

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



ezra143 12-10-2003 08:36 PM

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

GraemeK 12-11-2003 05:32 AM

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

DavidPhillips 12-11-2003 09:39 PM

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.


All times are GMT -5. The time now is 09:52 AM.