Output of commands:
(4)[root@mx2 ~]$ cd /opt/iredapd/tools/
Sun Sep 10 17:43:22
(5)[root@mx2 tools]$ python wblist_admin.py --list --whitelist --account thomas@ansspc.com
* Establishing SQL connection.
* List all inbound whitelist for account: thomas@ mydomain.com
...
Sun Sep 10 17:43:39
(6)[root@mx2 tools]$ python wblist_admin.py --list --blacklist --account thomas@mydomain.com
* Establishing SQL connection.
* List all inbound blacklist for account: thomas@ansspc.com
@.
Sun Sep 10 17:43:59
(7)[root@mx2 tools]$
Here is the log from the test message. Let me know if I am missing anything.
2017-09-10 17:47:49 INFO Starting iRedAPD (version: 2.1, backend: ldap), listening on 127.0.0.1:7777.
2017-09-10 17:47:49 INFO Log rotate type: time, interval: W6, backup copies: 12.
2017-09-10 17:47:49 INFO Loading plugin (priority: 100): reject_null_sender
2017-09-10 17:47:49 INFO Loading plugin (priority: 99): wblist_rdns
2017-09-10 17:47:49 INFO Loading plugin (priority: 90): reject_sender_login_mismatch
2017-09-10 17:47:49 INFO Loading plugin (priority: 80): greylisting
2017-09-10 17:47:49 INFO Loading plugin (priority: 60): throttle
2017-09-10 17:47:49 INFO Loading plugin (priority: 50): ldap_maillist_access_policy
2017-09-10 17:47:49 INFO Loading plugin (priority: 40): amavisd_wblist
2017-09-10 17:48:01 DEBUG Connect from 127.0.0.1, port 53302.
2017-09-10 17:48:01 DEBUG smtp session: request=smtpd_access_policy
2017-09-10 17:48:01 DEBUG smtp session: protocol_state=END-OF-MESSAGE
2017-09-10 17:48:01 DEBUG smtp session: protocol_name=ESMTP
2017-09-10 17:48:01 DEBUG smtp session: client_address=108.60.195.213
2017-09-10 17:48:01 DEBUG smtp session: client_name=cx-a.mxthunder.net
2017-09-10 17:48:01 DEBUG smtp session: reverse_client_name=cx-a.mxthunder.net
2017-09-10 17:48:01 DEBUG smtp session: helo_name=cx-a.mxthunder.net
2017-09-10 17:48:01 DEBUG smtp session: sender=cotton59@gmail.com
2017-09-10 17:48:01 DEBUG smtp session: recipient=thomas@mydomain.com
2017-09-10 17:48:01 DEBUG smtp session: recipient_count=1
2017-09-10 17:48:01 DEBUG smtp session: queue_id=E2AB15CA
2017-09-10 17:48:01 DEBUG smtp session: instance=4073.59b57ad1.e0be5.0
2017-09-10 17:48:01 DEBUG smtp session: size=3091
2017-09-10 17:48:01 DEBUG smtp session: etrn_domain=
2017-09-10 17:48:01 DEBUG smtp session: stress=
2017-09-10 17:48:01 DEBUG smtp session: sasl_method=
2017-09-10 17:48:01 DEBUG smtp session: sasl_username=
2017-09-10 17:48:01 DEBUG smtp session: sasl_sender=
2017-09-10 17:48:01 DEBUG smtp session: ccert_subject=
2017-09-10 17:48:01 DEBUG smtp session: ccert_issuer=
2017-09-10 17:48:01 DEBUG smtp session: ccert_fingerprint=
2017-09-10 17:48:01 DEBUG smtp session: ccert_pubkey_fingerprint=
2017-09-10 17:48:01 DEBUG smtp session: encryption_protocol=TLSv1.2
2017-09-10 17:48:01 DEBUG smtp session: encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384
2017-09-10 17:48:01 DEBUG smtp session: encryption_keysize=256
2017-09-10 17:48:01 DEBUG LDAP connection initialied success.
2017-09-10 17:48:01 DEBUG LDAP bind success.
2017-09-10 17:48:02 DEBUG Skip plugin: reject_null_sender (protocol_state != END-OF-MESSAGE)
2017-09-10 17:48:02 DEBUG Skip plugin: wblist_rdns (protocol_state != END-OF-MESSAGE)
2017-09-10 17:48:02 DEBUG Skip plugin: reject_sender_login_mismatch (protocol_state != END-OF-MESSAGE)
2017-09-10 17:48:02 DEBUG Skip plugin: greylisting (protocol_state != END-OF-MESSAGE)
2017-09-10 17:48:02 DEBUG --> Apply plugin: throttle
2017-09-10 17:48:02 DEBUG Check sender throttling.
2017-09-10 17:48:02 DEBUG [SQL] Query throttle setting:
SELECT id, account, priority, period, max_msgs, max_quota, msg_size
FROM throttle
WHERE kind='external' AND account IN ('108.60.195.213', '@ip', 'cotton59@gmail.com', '@gmail.com', '@.', '@.gmail.com', '@.com', '108.60.195.*', '108.60.*.213')
ORDER BY priority DESC
2017-09-10 17:48:02 DEBUG [SQL] Query result:
[]
2017-09-10 17:48:02 DEBUG No sender throttle setting.
2017-09-10 17:48:02 DEBUG Check recipient throttling.
2017-09-10 17:48:02 DEBUG [SQL] Query throttle setting:
SELECT id, account, priority, period, max_msgs, max_quota, msg_size
FROM throttle
WHERE kind='inbound' AND account IN ('108.60.195.213', '@ip', 'thomas@mydomain.com', '@ansspc.com', '@.', '@.ansspc.com', '@.com', '108.60.195.*', '108.60.*.213')
ORDER BY priority DESC
2017-09-10 17:48:02 DEBUG [SQL] Query result:
[]
2017-09-10 17:48:02 DEBUG No recipient throttle setting.
2017-09-10 17:48:02 DEBUG <-- Result: DUNNO
2017-09-10 17:48:02 DEBUG Skip plugin: ldap_maillist_access_policy (protocol_state != END-OF-MESSAGE)
2017-09-10 17:48:02 DEBUG Skip plugin: amavisd_wblist (protocol_state != END-OF-MESSAGE)
2017-09-10 17:48:02 DEBUG Session ended.
2017-09-10 17:48:02 INFO [108.60.195.213] END-OF-MESSAGE, cotton59@gmail.com -> thomas@ mydomain.com, DUNNO [0.0413s]
2017-09-10 17:48:02 DEBUG Close LDAP connection.
2017-09-10 17:48:05 DEBUG Connect from 127.0.0.1, port 53318.
2017-09-10 17:48:05 DEBUG smtp session: request=smtpd_access_policy
2017-09-10 17:48:05 DEBUG smtp session: protocol_state=END-OF-MESSAGE
2017-09-10 17:48:05 DEBUG smtp session: protocol_name=ESMTP
2017-09-10 17:48:05 DEBUG smtp session: client_address=209.59.182.9