Originally Posted by
ameinild
So just to understand your point, you have to install postfix (or something similar) on all servers, even if my "satellite" servers should use the central postfix server to actually send the mail off to my internet email address?
There are many ways, but UNIX is designed around each system running an MTA. sendmail, postfix, exim are each MTAs. The configuration controls whether any inbound SMTP is allowed or not. Postfix in "satellite" configuration doesn't accept inbound email over the network, so only local email ... like what a cron job would create or what Mail creates would be accepted. The listener doesn't even run on port 25/tcp, so there's ZERO risk for network attacks to these satellite setups.
Where that mail goes is dependent on the satellite setup - really the relayhost setting which would be to your main mailserver. It is about 30 seconds to configure this stuff and all programs on the system can use it. If the /etc/aliases doesn't point email to be forwarded to your main server, then that email will sit on the local machine.
There's a trivial manpage for the aliases file.
Code:
MAILER-DAEMON: postmaster
postmaster: root
root: my-real-account@domain.com
www-data: my-real-account@domain.com
...
The just remember to run sudo newaliases and that's it.
Use the same MTA on all the systems and you don't need to worry about funky other programs and those configs.
Bookmarks