power-mailinabox
power-mailinabox copied to clipboard
feature - local delivery disabled for certain mailboxes
Hi I was wondering if local delivery could be disabled for certain mailboxes.
The use case for this would be, I have some wordpress sites to connect to the box to send email, DNS is external and the MX record points to say gmail, wordpress connects to the box using [email protected] but the email is to be sent to [email protected] which doesn't exist on the box as email is hosted on gmail.
This looks fairly simple by amending the query in
/etc/postfix/virtual-mailbox-domains.cf
adding the below to the end of the query
AND source NOT LIKE '%%@domain.com'
With an Ui update next to the domain to disable local delivery
Thanks in advance