preventing postfix from listening on port 25
Hi,
how can I prevent postfix from listening on port 25? I want postfix to be used for sending mails from the local system only, not as a mail server. I am running Debian (2.6.18-5) Thanks for you help. |
it will always need to listen on 25 locally, but you can stop it listening externally by using the inet_interfaces option, e.g. "inet_interfaces=localhost" in your main.cf
|
Or just use iptables to block all incoming or outside port 25 requests outside of your local network. Allow outgoing though.
|
Or just do not run postfix in daemon mode.
|
Quote:
You can also block out the port 25 for incoming connections with iptables. # iptables -I INPUT -p tcp --dport 25 -j DROP |
You might consider putting this in main.cf:
Code:
inet_interfaces = loopback-only [edit]i see acid_kewpie already gave the same advice. just add my vote to his reponse.[/edit] |
All times are GMT -5. The time now is 10:07 AM. |