Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iptables firewall rule for incoming mail

167 views
Skip to first unread message

MIke Brearley

unread,
Feb 25, 2003, 1:41:11 PM2/25/03
to
I have a mail server on the inside of my network and just put up a linux
firewall.

Mail is getting bounced back to the sender saying that the system is not
accepting mail. What do I need to do to get mail forwarded to my internal
e-mail server?

I've set up a firewall rule to forward incoming port 25 to my internal IP
address, but it's not working, the same rule works to forward incoming port
80 (internet) traffic to my internal server, but not e-mail.

HELP HELP HELP....

Thanks,
Mike

MIke Brearley

unread,
Feb 25, 2003, 1:38:23 PM2/25/03
to

mik...@hoplite.org

unread,
Mar 5, 2003, 1:52:01 AM3/5/03
to

Can you 'telnet localhost 25' on the mailserver? The default config only
listens on 127.0.0.1 and not external interfaces.

--
Michael P. Brininstool mik...@hoplite.org
"The whole aim of practical politics is to keep the populace alarmed
(and hence clamorous to be led to safety) by menacing it with an
endless series of hobgoblins; all of them imaginary." -- H.L. Mencken

Stan Markham

unread,
Mar 5, 2003, 9:07:53 PM3/5/03
to
"MIke Brearley" <mbre...@rochester.rr.com> wrote in message news:<zKO6a.20094$%r1.1...@twister.nyroc.rr.com>...

> I have a mail server on the inside of my network and just put up a linux
> firewall.
>
> Mail is getting bounced back to the sender saying that the system is not
> accepting mail. What do I need to do to get mail forwarded to my internal
> e-mail server?

I'm running a dual homed mail server: eth1 is the inside and has very
few restrictions, the outside world (eth0) passes mail thru using:

iptables -A INPUT -p tcp -i eth0 --dport 25 -j ACCEPT #Open smtp
iptables -A INPUT -p udp -i eth0 --dport 25 -j ACCEPT

yuke

unread,
Mar 19, 2003, 2:51:54 PM3/19/03
to
Are you using a dhcp or static ip address

"MIke Brearley" <mbre...@rochester.rr.com> wrote in message
news:zKO6a.20094$%r1.1...@twister.nyroc.rr.com...

0 new messages