Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now, I have a problems... it is very trouble for me, it is the SMTP service is not work ...
My Linux is setting a firewall, but I setting let the SMTP, HTTP, SSH, FTP to across the firewall....
When I enter "nmap 205.120.55.156"
It show the SSH, HTTP, POP3 port are opened, but haven't see the SMTP port are open...
My sendmail is settied will run after each time boot up...
Can anyone let me know how to open the SMTP port?
Else now my mail server just can send e-mail to outside, but outside like YAHOO, EXCITE.com can't send any e-mail to our server's user to recevied the e-mail
Your best option is to setup ipchains to open port 25 from my understanding. I've never messed with setting up a mail server personally so I couldn't tell you how exactly how to do it. But from what I have read or seen so far, ipchains or setting up your firewall rules is the best way I would presume.
Look in /etc/mail/sendmail.mc for "DAEMON_OPTIONS", the "Addr" part, meaning the interface it listens on.
Don't forget to rebuild /etc/sendmail.cf and restart sendmail after you change it.
My /etc/mail/sendmail.mc setting is show below, what is wrong?
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
The questions is do I need add this code to it then the sendmail then will open the SMTP port to received the outside's e-mail?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.