Postfix 3.1.0, set up with virtual domains and users in a database via virtual_ directives in main.cf rspamd set up as a milter -> everything works just fine.
I have one server where the client wants to get mail delivered to his Exchange server remotely instead. He wants to have the mail floating through my postfix and use the spam marking by rspamd and then get it delivered to his Exchange. So I: - commented out all virtual_ lines - added the domain to $mydestination - added this to the transport map: example.com smtp:[IP] (and compiled with postmap, of course, and) (transport_maps = hash:/etc/mail/transport) Unfortunately, this doesn't work. It seems that the transport map is either not getting consulted or that line not getting used. The mail gets accepted but I get this error: Recipient address rejected: User unknown in local recipient table (or: if the user exists it gets delivered locally) I know I have done this in the past when I didn't use a virtual_ setup. What am I missing? Should I remove the domain from $mydestination ? What do I have to set additionally so that transport is getting consulted? Thanks a lot! Kai