Desktop mail forwarding
|← Previous||Next →|
|MTA (Postfix)||MySQL config|
The Postfix installation will handle receiving mail and will allow MUAs to connect, we need an extra bit to allow automated mail originating from other machines to be delivered to Postfix. sSMTP does just that.
- Install sSMTP:
root@desktop:~# aptitude install ssmtp
/etc/ssmtp/ssmtp.confto these non-comment lines:
email@example.com mailhub=server.domain.tld hostname=desktop.domain.tld rewriteDomain=domain.tld
- Note that the machine names should be the hostnames directly, not aliases set up by DNS.
- Test the setup by attempting to send a message:
user@desktop:~$ echo "this is the body" | mail -s "Subject" firstname.lastname@example.org