P
P
Puma Thailand2013-09-04 15:28:57
linux
Puma Thailand, 2013-09-04 15:28:57

How to disable all mail except postfix in iptables?

Is it possible in iptables to access external ports 25 to send mail to everyone except postfix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2013-09-04
@BuriK666

I have a rule.

iptables -A OUTPUT -p tcp -m owner --uid-owner postfix -m tcp --dport 25 -j ACCEPT 
iptables -A OUTPUT -p tcp -m tcp --dport 25 -j DROP 

--uid-owner postfix - user running postfix

S
shadowalone, 2013-09-04
@shadowalone

At the level of iptables in any way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question