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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Cyborg
Date:  
À: exim-users
Sujet: 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