Source

iredapd / plugins / sql_user_restrictions.py

Diff from to

File plugins/sql_user_restrictions.py

 
             if all_allowed_recipients:
                 if recipient in all_allowed_recipients \
-                   or recipient_domain in all_allowed_recipients \
+                   or '@' + recipient_domain in all_allowed_recipients \
                    or '@.' + recipient_domain in all_allowed_recipients \
                    or '@.' in all_allowed_recipients:
                     return SMTP_ACTIONS['accept']
 
             if all_rejected_recipients:
                 if recipient in all_rejected_recipients \
-                   or recipient_domain in all_rejected_recipients \
+                   or '@' + recipient_domain in all_rejected_recipients \
                    or '@.' + recipient_domain in all_rejected_recipients \
                    or '@.' in all_rejected_recipients:
                     return SMTP_ACTIONS['reject']