Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hello. Please tell me - how to open a port in debian 9, for example, 25th. And then there are so many benefits that simply contradict each other and there is nothing clear and intelligible
Unless you are running a firewall, the only requirement to open a port is that you have an application running to service that port with enough authority to request the port access.
Port 25 is used for SMTP, so if you start a mail server that listens on all interfaces you will then see that port 25 is open.
If you DO run a firewall, you need also use a command to open the firewall for that port traffic. What that command would look like depends upon what firewall you are running.
PS: if you are behind a NAT interface or an edge security device to protect your network from the wild, there are also routing issues to get internet mail traffic inside and to your server. Those are managed at that edge device, and not on the local (internal) server and would be an entirely different topic.
Unless you are running a firewall, the only requirement to open a port is that you have an application running to service that port with enough authority to request the port access.
Port 25 is used for SMTP, so if you start a mail server that listens on all interfaces you will then see that port 25 is open.
If you DO run a firewall, you need also use a command to open the firewall for that port traffic. What that command would look like depends upon what firewall you are running.
PS: if you are behind a NAT interface or an edge security device to protect your network from the wild, there are also routing issues to get internet mail traffic inside and to your server. Those are managed at that edge device, and not on the local (internal) server and would be an entirely different topic.
You left out many ISPs block that port 25 so the clueless who run a mail server at home do not get owned and become spam bots. Then add in all the mail servers around the world that will refuse to even connect to it when discovery from them turns up none of the requirements for sending mail on the modern internet. It is no longer a setup and send mail, you need the proper configurations in place for the verification's or they refuse to connect to some random mail server on the net.
So, I am describing the situation in more detail. There is a server on Debian 9, on it you need to organize virtual hosts \ subdomains, which will each be tied to its own IP, from which mailings will go. I did it through Postfix instances, prescribing through main.cf and master.cf. As a result, everything works on the main host, but two virtuals do not work - port 25 and the rest are closed for them. I registered everything that is possible in iptables - complete zero. If I write in the main main.cf, forcibly: smtp_bind_address = Х.Х.Х.Х smtp_helo_name = mail1.new.com myhostname = mail1.new.com Then only then the port is somehow opened for him and the mailing is going on. But they don't work together, only separately. The virtual hosts themselves do not open through the browser, ERR Connection Timed Out, the main site opens itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.