Hi There,
I have a firewall issue. I'm trying to let fetchmail retrieve my email from my ISP's pop3 server. When I execute fetchmail to this, he can connect ok, but isn't able to retrieve the message.
/usr/bin/fetchmail -v gives the following output.
fetchmail: 6.2.5 querying mail.chello.nl (protocol POP3) at Sun Aug 22 11:19:32 2004: poll started
fetchmail: POP3< +OK InterMail POP3 server ready.
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< RESP_CODES
fetchmail: POP3< PIPELINING
fetchmail: POP3< EXPIRE 365
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION Openwave Email vM.5.01.06.04 201-253-122-130-104fetchmail: POP3< -20030726
fetchmail: POP3< .
fetchmail: POP3> USER MyUsername
fetchmail: POP3< +OK please send PASS command
fetchmail: POP3> PASS *
fetchmail: POP3< +OK MyUsername is welcome here
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 941
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
1 message for MyUsername at mail.ISP.nl (941 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 941
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK 941 octets
reading message
MyUsername@mail.ISP.nl:1 of 1 (941 octets)
fetchmail: SMTP connect to localhost failed
fetchmail: POP3> QUIT
fetchmail: POP3< Another test message
fetchmail: SMTP transaction error while fetching from mail.ISP.nl
fetchmail: 6.2.5 querying mail.ISP.nl (protocol POP3) at Sun Aug 22 11:22:45 2004: poll completed
fetchmail: Query status=10 (SMTP)
fetchmail: normal termination, status 10
I know this a firewall issue, 'cause when I open up the SMTP and POP3 ports everything works fine. But then I'm stuck with two open ports. In my firewall script I have the following two rules:
iptables -A INPUT -j ACCEPT -p tcp --dport 110 -i eth1
iptables -A INPUT -j ACCEPT -p tcp --dport 25 -i eth1
eth1 is my LAN NIC, eht0 is connected to the internet.
When I remove "-i eth1" fom both lines I end up with two open ports. (Checked on grc.com)
What should I put in my firewall script in order to make this work and to keep my ports closed? (Preferably stealth)