Skip to contentSkip to conversation

mails not coming thru'

DISCUSSION Varun Pabrai 2 participants 2 messages Dec 5, 2004

lore
Share & tools
lore
#0 lore raw

Hello,
My server is on Mandrake 10.1 off.
eth0 is gateway with static IP connected to 512Kbps DSL. eth1 is LAN.

I went to webmin ->networking -> linux firewall.
I did a NAT on eth0.

Then I added rules using packet filtering for
sending and recieving mails as follows :

accept if network protocol is TCP and destination port is 110

accept if network protocol is TCP and destination port is 25

saved and applied configuration and rebooted.

But I am not able to send or recieve mails on client machines. Why ?

Anybody has any idea please help.

Thanks

Varun

#1 lore raw
Quoted 5 lines · Varun Pabrai

Then I added rules using packet filtering for sending and recieving mails as follows :

accept if network protocol is TCP and destination port is 110

add: accept if network protocol is TCP and source port is 110

Quoted 3 lines

accept if network protocol is TCP and destination port is 25

add: accept if network protocol is TCP and source port is 25

Quoted 5 lines

saved and applied configuration and rebooted.

But I am not able to send or recieve mails on client machines. Why ?

What happens is (I guess) your mailserver receives the packet, but when answering, it gets dropped because the source port is now 25.

Same thing for your POP server.

Quoted 3 lines

Anybody has any idea please help.

HTH,

Samuel