LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2010, 07:23 PM   #1
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Rep: Reputation: 0
post/dovecot


HI,

our company is running postfix and dovecot as mail servers on centOS. the outgoing mail has no problem but we cannot receive any mails.

i have no idea if its a firewall issue, a misconfigured mail server.

thank you and God bless.
 
Old 09-21-2010, 07:26 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Can you provide more details as to the nature of the problem? What do the log files say? Where does mail stop getting delivered. Have you checked the three way handshake and the MX records?

Regards,

Alunduil
 
Old 09-21-2010, 07:34 PM   #3
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
post/dovecot

honestly sir i have no idea where to start. in mxtool.com when doing port scan it says that the ports 110 and 25 are closed. only port 80 is open.
 
Old 09-21-2010, 07:36 PM   #4
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
post/dovecot

in ms outlook 2003 we can send email to anywhere and has no error, but we cannot receive any incoming mails.
 
Old 09-21-2010, 07:42 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What kind of firewall do you have in front of the postfix service? To check for iptables you can use: `iptables -vL` but if it's a hardware firewall you'll have to talk to your hosting company about how to modify the hardware firewall.

Out of curiosity, which hosting provider do you use?

Regards,

Alunduil
 
Old 09-21-2010, 07:46 PM   #6
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
our firewall is pfsense 1.2.3-RC1. is iptables the default firewall of cent0S?
 
Old 09-21-2010, 07:49 PM   #7
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

This is the output sir.
 
Old 09-21-2010, 09:09 PM   #8
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
There isn't really a default firewall of CentOS but it does ship with iptables. Is port 25 blocked by your pfsense firewall?
 
Old 09-21-2010, 09:20 PM   #9
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
it is in the NAT of pfsense, along with the pop3 and the email servers IP.
 
Old 09-21-2010, 09:31 PM   #10
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
I don't understand what you mean. pfsense is a NATing firewall that maps to a private IP on the server?

Regards,

Alunduil
 
Old 09-21-2010, 09:42 PM   #11
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
Yes, I think so.
 
Old 09-21-2010, 09:44 PM   #12
krishnakant
LQ Newbie
 
Registered: May 2009
Location: Chennai
Distribution: CentOS, RHEL and fedora
Posts: 22

Rep: Reputation: 0
As per my understanding first you check mail server iptable status . If it is running then you first stop it and check you mails. If iptables not running your server then need to open port
in your firewall. You also analysis your log files and hope you understand your problem.

Best of Luck..
 
Old 09-21-2010, 09:49 PM   #13
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
Applying iptables firewall rules: iptables-restore: line 3 failed
[FAILED]
This is the result of stop/start iptables.

Where do I locate the iptables?

Thanks
 
Old 09-22-2010, 08:33 AM   #14
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
The iptables rules are stored in /etc/sysconfig but if you're not using iptables you want to simply leave it off and make sure chkconfig lists it as off as well.

Regards,

Alunduil
 
Old 09-22-2010, 11:47 AM   #15
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
If ports 110 and 25 are closed it is also possible that the applications that run on them (postfix and dovecot) are not running. What is the output of:
Code:
 netstat aux | grep postfix and netstat aux | grep dovecot
Does it show the daemon processes or just you grepping for them?

If they aren't running, try telling them to restart and check the processes again. Then look at your syslog to see if you get any sort of error message that tells you what is going on. Of course, this is all assuming that the problem isn't caused by your firewall.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VectorLinux user, must make post before I can post url The Headacher LinuxQuestions.org Member Intro 2 07-02-2011 11:55 AM
Forum suggested I post a first post. So here it is. Linux user Michigan. MixAndMatch LinuxQuestions.org Member Intro 3 01-20-2010 05:52 PM
Suggestion: Minimum post count to post in old inactive threads Eternal_Newbie LQ Suggestions & Feedback 5 04-28-2008 09:34 AM
i dont want to post here but i guess i have to to post relevent links in another thre sluckz LinuxQuestions.org Member Intro 8 10-02-2007 12:55 PM


All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration