Postfix split domain setup

Discuss

Hi!

I have Yunohost setup and working ok. But unfortunately one of the domains that i handle with this install is used by others beyond my users.

This works nicely and i have setup multiple DKIM entries and modified the SPF DNS entry so that using the domains from two contexts works ok.

The problem i have is however that i can’t send email to users on the shared domain that is not hosted on my Yunohost instance since postfix tries to deliver these emails locally and the user or alias does not exist.

I have thought long about this and the only solution would end up in a rather complicated reconfiguration of Postfix which most likely would be overwritten on the next user update.

Update: What about creating the remote users in my Yunohost and then try using something like procmail/dovecote to forward the emails to the remote server.

Does anyone here have an idea on how to solve this problem in a nice way?