app-mail-routing: 0011481: Add duplicate check for mail forwarders
Migrated from: https://tracker.clearos.com/view.php?id=11481
Reported by: PBaldwin
Scenario: the user "test" has a mail forwarder configured with "firstname.lastname@example.org".
When the "content_filter" line in master.cf is disabled, Postfix will send a single message to both "test" and "email@example.com". That's the expected behavior. However, when the "content_filter" line in master.cf is enabled and LDAP is used for aliases/forwarders, Postfix will send two separate messages to the specified content_filter:
The first message is a redundant. Perhaps there's a magic configuration parameter to disable this behavior? That would be best. In the meantime, we can add a duplicate check in the mail routing engine (mailprefilter/Filter.php).
Duplicate check needs to be disabled for remote forwarding (i.e. domains in the transport table).
related to 0001912 acknowledged Mail redirect to external domain related to 0011421 closed user2 Add server-side mail forwarding support related to 0011431 closed user2 Add server-side mail forwarding support in extension