Redirecting mails

As explained in man aliases(5), you can redirect mails to various destination.

As example, you host jdoe@athome.tld and want to redirect every mails received by jdoe to

Edit /etc/mail/virtuals and add :


You can set redirections in /etc/mail/aliases too. For system users, you can use their login only :

root: jdoe
hostmaster: root
postmaster: root
webmaster:  bruce
jdoe: jdoe@domain.tld

Remember to restart smtpd so changes are considered :

# rcctl restart smtpd

Easy. 😎