Networking Forums

Networking Forums > Computer Networking > Linux Networking > imap & iptables

Reply
Thread Tools Display Modes

imap & iptables

 
 
jorge
Guest
Posts: n/a

 
      01-03-2005, 12:47 PM
Hi people!

There's an imap mail server (courier) running on my server. The problem
is when iptables is also running, downloading headers and mails is slow
slow slow. I'm using Outlook and Thunderbird and I have to wait for
server for about 5 minutes and at last headers are downloaded.

A telnet against mail server takes a few minutes when explore Inbox,
same as using Thunderbird/outllok.

The iptables rule is: iptables -A INPUT -t tcp --dport 143 -j ACCEPT
I know it's a iptables misconfiguration because if I add the rule:
iptables -A INPUT -p tcp -j ACCEPT then imap server is running ok but I
don't want to use that rule

I tried accepting all ICMP and UDP packets and doesn't work.

What I'm doing wrong?

thanks!
 
Reply With Quote
 
 
 
 
Juha Laiho
Guest
Posts: n/a

 
      01-03-2005, 02:37 PM
jorge <"jorge.ghm["@]wanadoo[.]es> said:
>There's an imap mail server (courier) running on my server. The problem
>is when iptables is also running, downloading headers and mails is slow
>slow slow. I'm using Outlook and Thunderbird and I have to wait for
>server for about 5 minutes and at last headers are downloaded.

....
>The iptables rule is: iptables -A INPUT -t tcp --dport 143 -j ACCEPT
>I know it's a iptables misconfiguration because if I add the rule:
>iptables -A INPUT -p tcp -j ACCEPT then imap server is running ok but I
>don't want to use that rule


Well, after the rule
iptables -A INPUT -p tcp --dport 143 -j ACCEPT
add another with
iptables -A INPUT -p tcp -j LOG
.... and have a look in your system log file to find out what was dropped.
The add new '-j ACCEPT' selectively from the list of dropped packets.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
Philippe WEILL
Guest
Posts: n/a

 
      01-04-2005, 01:49 PM


jorge wrote:
> Hi people!
>
> There's an imap mail server (courier) running on my server. The problem
> is when iptables is also running, downloading headers and mails is slow
> slow slow. I'm using Outlook and Thunderbird and I have to wait for
> server for about 5 minutes and at last headers are downloaded.
>
> A telnet against mail server takes a few minutes when explore Inbox,
> same as using Thunderbird/outllok.
>
> The iptables rule is: iptables -A INPUT -t tcp --dport 143 -j ACCEPT
> I know it's a iptables misconfiguration because if I add the rule:
> iptables -A INPUT -p tcp -j ACCEPT then imap server is running ok but I
> don't want to use that rule
>
> I tried accepting all ICMP and UDP packets and doesn't work.
>
> What I'm doing wrong?
>
> thanks!


Perhaps your imap server is waiting ident (tcp 113) response
in this case you could block with icmp response or tcp-reset outgoing ident
request on imap server
--
Weill Philippe - Administrateur Systeme et Reseaux
CNRS Service Aeronomie - Universite Pierre et Marie Curie -
Tour 45/46 3e Etage B302 - 4 Place Jussieu - 75252 Paris Cedex 05 - FRANCE
Email(E-Mail Removed) | tel:+33 0144274759 Fax:+33 0144273776
 
Reply With Quote
 
Robert
Guest
Posts: n/a

 
      01-04-2005, 08:21 PM
On Mon, 03 Jan 2005 14:47:11 +0100, jorge wrote:

> The iptables rule is: iptables -A INPUT -t tcp --dport 143 -j ACCEPT


Have you thought about using the following?

iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT --dport 143 -m state --state NEW -j ACCEPT

> I know it's a iptables misconfiguration because if I add the rule:
> iptables -A INPUT -p tcp -j ACCEPT then imap server is running ok but I
> don't want to use that rule


I don't blame you, I would not want to do that either.

> I tried accepting all ICMP and UDP packets and doesn't work.
>
> What I'm doing wrong?


Not too sure without seeing the whole rule setup. Try the above and if
that doesn't work we'll work from there.


--

Regards
Robert

Smile... it increases your face value!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the point of IMAP? Doug Laidlaw Linux Networking 10 03-17-2009 04:28 AM
BY IMAP on mobile Mark Broadband 5 09-06-2006 11:55 AM
imap dale pierce Windows Networking 1 09-24-2004 07:32 AM
IMAP with fetchmail Christian Linux Networking 2 07-03-2004 08:41 PM
postfix + cyrus IMAP: central sent-mail folder on IMAP server Thomas Schamberg Linux Networking 0 01-08-2004 01:31 PM



1 2 3 4 5 6 7 8 9 10 11