I have PostFix up and running on a CentOS box and would like to send mail from a Windows server on the same network out through the PostFix server.
When I try to telnet from the Windows server into port 25 on the PostFix server currently the connection fails.
Where do I set this up within PostFix/CentOS?
Thanks in advance!
You will need to configure relay. However when postfix is running you should be able to still connect to port 25. Might there be a firewall blocking this connection?
When you open main.cf, you can need to add this directive:
example:
do not put 0.0.0.0 or you will become an open relay.
My Postfix server has something of the sort in its IPtables to enable connections.
Your server might be restricted even further, depending on what you are trying to do. But if telneting to it on port 25 fails do not expect the machine to function as an SMTP server (unless of course you change the ports - which is not what you said). Note that it is possible, many time preferable to accept connections on other ports.
@LucasKauffman is correct, mynetworks is the way to go --- but be sure that
smtpd_recipient_restrictions
haspermit_mynetworks
, something like this:smtpd_recipient_restrictions = permit_mynetworks, ...
This is the default, but if you have
-o smtpd_recipient_restrictions=something
on an smtpd line inmaster.cf
then it will overridemain.cf
setting.