Commits

Zhang Huangbin committed 58b86a7

Fixed: Cannot handle '@.' (without quotes) to match all destinations.

Comments (0)

Files changed (3)

 iRedAPD-1.3.8:
     * Add rc scripts for OpenBSD.
+    * Fixed:
+        + Cannot handle '@.' (without quotes) to match all destinations.
 
 iRedAPD-1.3.7:
     * New plugin for LDAP backend: ldap_expired_password. Used to force mail

src/plugins-rr/ldap_recipient_restrictions.py

     #   -> .sub1.com.cn
     #   -> .com.cn
     #   -> .cn
-    recipients = [smtpRecipient, '@' + smtpRecipient.split('@')[-1],]
+    recipients = ['@.', smtpRecipient, '@' + smtpRecipient.split('@')[-1],]
     for counter in range(len(splited_recipient_domain)):
         # Append domain and sub-domain.
         recipients += ['@.' + '.'.join(splited_recipient_domain)]

src/plugins/block_amavisd_blacklisted_senders.py

     #   -> @.cn
     splited_sender_domain = str(sender.split('@', 1)[-1]).split('.')
 
-    # Default senders (user@domain.ltd): ['user@domain.ltd', @domain.ltd']
-    valid_amavisd_senders = set([sender, '@'+sender.split('@', 1)[-1],])
+    # Default senders (user@domain.ltd): ['@.', 'user@domain.ltd', @domain.ltd']
+    valid_amavisd_senders = set(['@.', sender, '@'+sender.split('@', 1)[-1],])
     for counter in range(len(splited_sender_domain)):
         # Append domain and sub-domain.
         valid_amavisd_senders.update(['@.' + '.'.join(splited_sender_domain)])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.