LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-23-2009, 08:50 PM   #1
nad4
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
Angry Can send but no receive mail


I have Linux mail server, It always encounter this problem, when i shut down or restart the server. You cannot receive mail but you can send..
i use the following services:
iptables -F
service iptables restart
service sendmail restart
service dovecot restart

before when i run this services the email can send and receive..
hope you can help me..
thanks
 
Old 06-23-2009, 08:57 PM   #2
zll5267
LQ Newbie
 
Registered: Jun 2009
Location: shanghai,china
Posts: 19

Rep: Reputation: 0
sorry ,I am a new one,I can't answer you question,but i hope you resolve your question soon,good luck!
 
Old 06-24-2009, 03:58 AM   #3
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
What order are you running the above commands?
Quote:
iptables -F
flushes out firewall rules, but then if you restart iptables, the rules are applied again. So you may skip
Quote:
iptables restart
 
Old 06-24-2009, 04:06 AM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
Sounds like iptables is blocking ports, can you post the output from this command so we can see what rules are in place

Quote:
iptables -L -n
 
Old 06-24-2009, 10:36 AM   #5
luisduenas
LQ Newbie
 
Registered: Dec 2008
Distribution: Debian - pero ya no.
Posts: 21

Rep: Reputation: 0
I use this rule to receive.

-A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 25 --state NEW -j ACCEPT
 
Old 06-24-2009, 06:38 PM   #6
nad4
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
i use the nmap application to check all ports.
pop3 110 port was not open.
how can i start the pop3 ports..
 
Old 06-24-2009, 09:27 PM   #7
nad4
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
sir here is the output for
Quote:
iptables -L -n
Quote:
[root@mail ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
as you see there in no port 110. i think that is the problem why there is no receive mail.. how can i configured the pop3 port

Last edited by nad4; 06-24-2009 at 09:29 PM. Reason: additional inforamation.
 
Old 06-25-2009, 07:03 AM   #8
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
OK you are restarting iptables but you do not have a rule to open the POP3 port, try adding this rule and see if it helps

Quote:
iptables -A INPUT -p tcp -i eth0 --dport 110 -m state --state NEW -j ACCEPT
 
Old 06-25-2009, 06:16 PM   #9
nad4
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
now i can receive mail..
when i use the iptables -F and with out restart the iptables services.
just like what you said.
Quote:
What order are you running the above commands?
Quote:
iptables -F
flushes out firewall rules, but then if you restart iptables, the rules are applied again. So you may skip
Quote:
iptables restart
but i think there is no rule for may port 110, because when restarting the server same problem occurs.i must try this..
Quote:
OK you are restarting iptables but you do not have a rule to open the POP3 port, try adding this rule and see if it helps

Quote:
iptables -A INPUT -p tcp -i eth0 --dport 110 -m state --state NEW -j ACCEPT
 
Old 06-26-2009, 02:58 AM   #10
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,276

Rep: Reputation: 61
To really flush the rules you also need to delete any user created chains, try this to get a full flush of any rules.

Quote:
iptables -F
iptables -F -t mangle
iptables -F -t nat
iptables -X
iptables -X -t mangle
iptables -X -t nat

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
 
  


Reply

Tags
mail, server


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
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
can't send mail but can receive jez_pag Linux - Newbie 11 04-24-2007 03:36 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
Why can't I receive or send mail unless jobesd Linux - General 0 12-05-2001 10:49 PM


All times are GMT -5. The time now is 05:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration