• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • Last Modified:

postfix configuration on centos

Hi:

I have configured a postfix linux server. I can get mail from root to outside email accounts.
My mails from outside world, I don't receive. I have followed the steps from the following links which does not seem to work.

http://www.linux.com/learn/tutorials/308917-install-and-configure-a-postfix-mail-server

  iptables -I INPUT 2 -p tcp --dport 587 -j ACCEPT
  iptables -I INPUT 3 -p tcp --dport 110 -j ACCEPT
  iptables -I INPUT 4 -p tcp --dport 143 -j ACCEPT
  iptables -I INPUT 5 -p tcp --dport 993 -j ACCEPT
  iptables -I INPUT 6 -p tcp --dport 995 -j ACCEPT
  /etc/init.d/iptables save
  /etc/init.d/iptables restart
Also please point me to appropriate mailbox setup. I have a setup of info@mydomain.com

then I don't receive any email for user info from root user or outside world.

Look forward to your comments.

Best Regards,

-Sunnybrad
0
sunnybrad
Asked:
sunnybrad
  • 3
  • 2
1 Solution
 
Dave HoweSoftware and Hardware EngineerCommented:
That is just the firewall settings.
fastest way to discover if you are actually using those ports is the netstat command.

AS ROOT, type at the command prompt "netstat -nap" and look for the keyword LISTEN

that will show you lines like this:
~# netstat -nap | grep LISTEN
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      944/mysqld
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1317/apache2
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      812/sshd

Open in new window


taking the second output line as an example, that is apache2 (webserver), process id 1317, listening on the universal ip address (0.0.0.0) port 80

ensure you have lines for each of the ports of interest - given normally postfix won't be handling imap etc itself, you would be expecting to see a different process for those (for instance, my imap (143) line is supplied by 816/couriertcpd )
0
 
sunnybradAuthor Commented:
Hi:

I corrected all my firewall settings. I can send mail to outside world but I cannot receive mail from other domains or outside world.

Please let me know any thoughts.

Best Regards,

-Sunnybrad
0
 
Dave HoweSoftware and Hardware EngineerCommented:
Did you check that there is a process listening on port 25? Is there a DNS record or other record pointing at this server?
0
 
sunnybradAuthor Commented:
Hi:

Firewall issue was resolved but I was not seeing the right result.

There was an small configuration issue where all mail to account info was forwarded to postmaster.

Once resolved things worked properly.

Thanks for all your comments.

Best Regards,

Sunnybrad
0
 
Dave HoweSoftware and Hardware EngineerCommented:
odd. about the only way I can think of for that to happen "accidentally" is if there was an alias defined, and I am sure you would have mentioned that :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now