Incoming connections to port 25

0

Is it necessary to allow incoming connections to port 25 to send (not receive) mail?

Fide Rogers

Posted 2013-04-12T09:56:45.300

Reputation: 3

nope. outgoing to 25 are necessary for SMTP (sending email). incoming to 25 are necessary only if you have mail server on your machine. – mnmnc – 2013-04-12T10:14:26.730

@mnmnc What if I have an exchange server and I want to send email from that Exchange server to another domain? – Fide Rogers – 2013-04-12T10:16:27.987

if you want to send emails from your own server and you want to use SMTP protocol then port 25 should be opened. But if you are sending only localy to your server - so you log in to server and send email from server's local account - then you should open the port 25 only on 127.0.0.1 interface so it will not be accessible from outside of the server. If You are sending emails from other computer via this Exchange server using SMTP - then you must open port 25 on interface with external IP address - for example eth0. – mnmnc – 2013-04-12T10:22:45.573

@mnmnc It's the first case you mentioned, I want to send emails from my server using Exchange SMTP. So to clarify, do I need to open port 25 incoming on that server or will port 25 outgoing suffice? – Fide Rogers – 2013-04-12T10:26:39.807

You need to allow incomming connections to port 25 on loopback interface 127.0.0.1 to your server. In order to allow your server to send/relay this message to other mailing server, You need to allow connections to port 25 from your server - meaning outgoing to 25. – mnmnc – 2013-04-12T11:03:36.480

Answers

0

Some mail server somewhere must receive mail sent to your domain. Provided you're not talking about that mail server and that mail server exists somewhere else, then no. Not every machine that sends mail must be capable of receiving it. However, to have a domain that operates as a legal source for email, it must have a mail server somewhere that accepts postmaster mail and bounces.

David Schwartz

Posted 2013-04-12T09:56:45.300

Reputation: 58 310