1. Zhang Huangbin
  2. iredapd

Source

iredapd / plugins / ldap_recipient_restrictions.py

Diff from to

File plugins/ldap_recipient_restrictions.py

  • Ignore whitespace
 
 def restriction(**kwargs):
     ldapSenderLdif = kwargs['senderLdif']
-    smtpSessionData = kwargs['smtpSessionData']
+    smtp_session_data = kwargs['smtp_session_data']
 
     # Get recipient address.
-    smtpRecipient = smtpSessionData.get('recipient').lower()
+    smtpRecipient = smtp_session_data.get('recipient').lower()
     splited_recipient_domain = str(smtpRecipient.split('@')[-1]).split('.')
 
     # Get correct domain name and sub-domain name.