LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't receive outside mail with sendmail (https://www.linuxquestions.org/questions/linux-software-2/cant-receive-outside-mail-with-sendmail-362769/)

joe.biz 09-12-2005 05:02 PM

can't receive outside mail with sendmail
 
what configuratiosn changes do i need to make to allow sendmail to receive mail from the outside? i want it to be able to accept mail when its sent to the server's ip address like user@68.23.23.232

pnellesen 09-13-2005 01:42 PM

(Assuming you've got sendmail running) - can you telnet to port 25 on that machine ("telnet localhost 25")? If so, does your IP allow incoming port 25 traffic?

joe.biz 09-13-2005 01:52 PM

situation resolved. for searchers finding this page in the future this is how i fixed it:




dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl


the last line there in the sendmail.mc didnt have the 'dnl' in front of it, so i just added it and then m4 it to a .cf. also i had to add the domain that mail be sent to in /etc/local-host-names and then restart sendmail with /sbin/service sendmail restart

minhkhoa 10-05-2005 10:54 AM

what if my server has a nat ip
 
the same situtation, but my server is sit behind a firewall. it has a private ip address of 192.168.30.10. I have a isp ip address statically nat to the private ip address. my firewall has port 25 smtp open, but i cannot telnet to it. I can send email to outside but cannot receive email from other email like from yahoo.com. when i telnet from outside, i telnet to my server using the isp ip address which my firewall then forward to the private ip addresss. please let me know if i am missing any configuration.


All times are GMT -5. The time now is 10:59 PM.