Desktop mail forwarding
| Server setup | |
| ← 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
- Edit
/etc/ssmtp/ssmtp.confto these non-comment lines:
root=root@domain.tld 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" root@domain.tld