power-mailinabox icon indicating copy to clipboard operation
power-mailinabox copied to clipboard

feature - local delivery disabled for certain mailboxes

Open stevetoza opened this issue 3 years ago • 0 comments

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

stevetoza avatar Nov 27 '22 14:11 stevetoza