I have a website on a server with a postfix mail server to send the site's emails. Let's say the domain is example.com.
The site can send mails to mailboxes of his own domain (like email@example.com), which is hosted on another server and to any other domains.
As I don't want any local delivery, even for example.com, the mydestination parameter is empty.
This worked great, but I can't redirect mails to local users.
For example, if
mdadm send a mail to
root, the mail will be sent to firstname.lastname@example.org directly, without going throw /etc/aliases.
How can I deliver localy mails to local users, and keep sending mails to mailboxes @example.com?