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 "test.guy@example.com".
When the "content_filter" line in master.cf is disabled, Postfix will send a single message to both "test" and "test.guy@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:
Message 1-- destined to "test.guy@example.com" Message 2 -- destined to both "test" and "test.guy@example.com"
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