Solved

postfix configuration on centos

Posted on 2014-01-21
5
399 Views
Last Modified: 2014-01-31
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
Comment
Question by:sunnybrad
  • 3
  • 2
5 Comments
 
LVL 33

Accepted Solution

by:
Dave Howe earned 500 total points
ID: 39799412
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
 

Author Comment

by:sunnybrad
ID: 39807728
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
 
LVL 33

Expert Comment

by:Dave Howe
ID: 39807743
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
 

Author Comment

by:sunnybrad
ID: 39812669
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
 
LVL 33

Expert Comment

by:Dave Howe
ID: 39813216
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create high volume marketing opportunities using email signatures with these top 10 DOs and DON'Ts of email signature marketing.
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question