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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Cyborg
Fecha:  
A: exim-users
Asunto: 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