Hello everyone. Does anyone know how to achieve the following: 1) there is domainA.com on serverA (production website) 2) serverB is ispconfig installation with postfix/rspamd setup - which is being used as a remote SMTP server - domainA.com (and e.g. subdomain additionally) are configured in the panel, DKIM is active and generate and configured in the DNS zone, email mailboxes created, standard stuff 3) domainA.com or subdomain.domainA.com on serverA is using serverB as a remote SMTP server and everything is working properly when we're sending emails to external accounts - they also pass all the checks like spf/dkim/dmarc, it's all being configured Problem is now, if we want to send an email to e.g. [email protected] - since the mail service is active on serverB, postfix lookup locally and it sees in the virtual maps that this exist and tries to deliver this locally and fails with an error that user does not exist in virtual......etc - and this is correct, as it doesn't go outside. While I've found a way to solve this temporary, I don't like how it's done. I do a backup of dkim keys and selector/domain maps in rspamd, disable the mail service in ispconfig (which then deletes dkim keys and maps from rspamd) - afterwards I simply return back these keys and maps in right places, adjust configuration, restart services and it works again and now I can send emails also to the same domainA.com because this no longer exist in the virtual mailbox/domain maps. Is there any better way to simply disable local delivery/skip local lookup in virtual maps and that it goes external immediately? Like some override in postfix to ignore specific domains? Or disable mail service that doesn't delete everything (dkim keys, rspamd maps, etc) - just removal from virtual maps?
Where should this mail go then? If "serverB" is the mailserver for domainA.com then it should deliver the mail locally.