Re: [exim] Limiting outside world to ports 465 and 587

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Cyborg
日付:  
To: exim-users
題目: Re: [exim] Limiting outside world to ports 465 and 587
Am 13.03.22 um 02:00 schrieb The Doctor via Exim-users:
> I was wonder if it is doable that the outside world
> can only see ports 587 and 465
> while limiting port 25 to localhost only.
>


a universal solution would be:

iptables -A INPUT -s 127.0.0.1/32 -p tcp -m tcp --dport 25 -j ACCEPT
iptables -A INPUT -s 0.0.0.0/0 -p tcp -m tcp --dport 25 -j DROP

best regards,
Marius