Avatar of Caner SAYGIN
Caner SAYGIN
Flag for Turkey asked on

How to set a mail server (POSTFIX) behind NAT and blocked port #25 by ISP on CentOS 7

I am trying to build a web server in my home. I have static IP address and my web server works really nice but my mail server is not. I also want to send mails from my computer but my ISP is blocking port #25 . I tried to use port #587  and set the important settings but my mail server POSTFIX is trying to connect other mail servers (like google's or msn's) over port #25. How can i achieve this. I have made hours of searches on internet but i could not solve my problem. I am a real newbie so i need help very much.

Thank you,
Caner
Email ServersLinux

Avatar of undefined
Last Comment
Caner SAYGIN

8/22/2022 - Mon
arnold

Yum install postfix
Within main.cf look at relay and transport forward all outgoing to your ISPs server using port 465 or 587.

For inbound, you would need to setup postfix to listen on ports 465 SSL and 587 off port 25
On the external firewall forward ports.....

If your ISP is blocking incoming port 25 to you, your options are limited to finding a provider that will accept messages destined to your domain that can be configured to direct the traffic to a preferred port, or use a different set of mechanisms where your server will connect to the remote and retrieve ............
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Caner SAYGIN

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

You're welcome, glad to help.
Caner SAYGIN

ASKER
Because i solve my problem by myself.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23