+ * New option for iredapd-rr: bypass_mynetworks. Used to bypass mails sent
+ from postfix mynetworks.
* Bypass user alias addresses (shadowAddress) if user is allowed to send
to mail list. Thanks Henri Veldsink for his feedback and testing.
* Allow to use same logging hander in plugins, print plugin debug message.
+# Bypass clients listed in postfix 'mynetworks': yes, no.
if len(self.plugins) > 0:
# Get account dn and LDIF data.
- senderDN, senderLdif = self.__get_sender_dn_ldif(map['sasl_username'])
+ bypass_mynetworks = cfg.get('general', 'bypass_mynetworks', 'no')
+ if bypass_mynetworks == 'yes':
+ sender = map['sasl_username']
+ senderDN, senderLdif = self.__get_sender_dn_ldif(sender)
# Return if recipient account doesn't exist.
if senderDN is None or senderLdif is None: