Link to home
Create AccountLog in
Avatar of Jasmin shahrzad
Jasmin shahrzad

asked on

send only smtp

is there any documentation for how to create a send only smtp on ubuntu lxd server?
not get mail only send.
Avatar of Dr. Klahn
Dr. Klahn

Install your preferred MTA.
Install iptables.

Set iptables rules:

iptables -t filter -A INPUT -p tcp --dport 25 -j REJECT
iptables -t filter -A INPUT -p tcp --dport 587 -j REJECT

Open in new window

Bless me if I know how you're going to get mail into the system with the incoming ports blocked, though.  This looks like a sealed water tank with a hole in the bottom; water can flow out but eventually it will run dry.
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account