*) Did you migrate greylisting settings after migrating from Cluebringer?
I'm not sure, honestly; however, the example I posted is from a whitelist I added after the upgrade.
My graylisting settings look pretty minimal:
[root@mail tools]# python greylisting_admin.py --list
Status Sender -> Local Account
------------------------------------------------------------------------------
enabled @. (anyone) -> @. (anyone)
[root@mail tools]#
Anticipating this request, I had previously turned on debugging. Here is the relevant debug log:
2017-05-05 09:51:46 DEBUG smtp session: request=smtpd_access_policy
2017-05-05 09:51:46 DEBUG smtp session: protocol_state=RCPT
2017-05-05 09:51:46 DEBUG smtp session: protocol_name=ESMTP
2017-05-05 09:51:46 DEBUG smtp session: client_address=216.40.44.103
2017-05-05 09:51:46 DEBUG smtp session: client_name=smtprelay0103.hostedemail.com
2017-05-05 09:51:46 DEBUG smtp session: reverse_client_name=smtprelay0103.hostedemail.com
2017-05-05 09:51:46 DEBUG smtp session: helo_name=smtprelay.hostedemail.com
2017-05-05 09:51:46 DEBUG smtp session: sender=pete@customer.net
2017-05-05 09:51:46 DEBUG smtp session: recipient=sales@mydomain.com
2017-05-05 09:51:46 DEBUG smtp session: recipient_count=0
2017-05-05 09:51:46 DEBUG smtp session: queue_id=
2017-05-05 09:51:46 DEBUG smtp session: instance=e63.590cada2.dbc2.0
2017-05-05 09:51:46 DEBUG smtp session: size=50483
2017-05-05 09:51:46 DEBUG smtp session: etrn_domain=
2017-05-05 09:51:46 DEBUG smtp session: stress=
2017-05-05 09:51:46 DEBUG smtp session: sasl_method=
2017-05-05 09:51:46 DEBUG smtp session: sasl_username=
2017-05-05 09:51:46 DEBUG smtp session: sasl_sender=
2017-05-05 09:51:46 DEBUG smtp session: ccert_subject=
2017-05-05 09:51:46 DEBUG smtp session: ccert_issuer=
2017-05-05 09:51:46 DEBUG smtp session: ccert_fingerprint=
2017-05-05 09:51:46 DEBUG smtp session: ccert_pubkey_fingerprint=
2017-05-05 09:51:46 DEBUG smtp session: encryption_protocol=TLSv1.2
2017-05-05 09:51:46 DEBUG smtp session: encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384
2017-05-05 09:51:46 DEBUG smtp session: encryption_keysize=256
2017-05-05 09:51:46 DEBUG LDAP connection initialied success.
2017-05-05 09:51:46 DEBUG LDAP bind success.
2017-05-05 09:51:46 DEBUG --> Apply plugin: reject_null_sender
2017-05-05 09:51:46 DEBUG <-- Result: DUNNO
2017-05-05 09:51:46 DEBUG --> Apply plugin: greylisting
2017-05-05 09:51:46 DEBUG [SQL] Query greylisting whitelists:
SELECT id, sender, comment
FROM greylisting_whitelists
WHERE account IN ('sales@mydomain.com', '@mydomain.com', '@.')
2017-05-05 09:51:46 DEBUG No whitelist found.
2017-05-05 09:51:46 DEBUG [SQL] query greylisting settings:
SELECT id, account, sender, sender_priority, active
FROM greylisting
WHERE account IN ('sales@mydomain.com', '@mydomain.com', '@.')
ORDER BY priority DESC, sender_priority DESC
2017-05-05 09:51:46 DEBUG [SQL] query result: [(1L, '@.', '@.', 0, 1)]
2017-05-05 09:51:46 DEBUG Greylisting should be applied according to SQL record: (id=1, account='@.', sender='@.')
2017-05-05 09:51:46 DEBUG [SQL] check whether client address (216.40.44.103) passed greylisting:
SELECT id
FROM greylisting_tracking
WHERE client_address='216.40.44.103'
AND passed=1
LIMIT 1
2017-05-05 09:51:46 DEBUG Client address (216.40.44.103) didn't pass greylisting.
2017-05-05 09:51:46 DEBUG [SQL] query greylisting tracking:
SELECT init_time, blocked_count, block_expired, record_expired
FROM greylisting_tracking
WHERE sender='pete@customer.net'
AND recipient='sales@mydomain.com'
AND client_address='216.40.44.103'
LIMIT 1
2017-05-05 09:51:46 INFO [216.40.44.103] Client has not been seen before, greylisted.
2017-05-05 09:51:46 DEBUG [SQL] New tracking:
INSERT INTO greylisting_tracking (sender, sender_domain,
recipient, rcpt_domain,
client_address,
init_time,
block_expired, record_expired,
blocked_count)
VALUES ('pete@customer.net', 'customer.net', 'sales@mydomain.com', 'mydomain.com', '216.40.44.103', 1494003106, 1494004006, 1494089506, 1)
2017-05-05 09:51:46 DEBUG <-- Result: 451 4.7.1 Intentional policy rejection, please try again later
2017-05-05 09:51:46 DEBUG Session ended.
2017-05-05 09:51:46 INFO 216.40.44.103 RCPT, pete@customer.net -> sales@mydomain.com, 451 4.7.1 Intentional policy rejection, please try again later [0.0099s]
2017-05-05 09:51:46 DEBUG Close LDAP connection.
I have a bunch of similar entries, as hostedemail.com sends from multiple IP addresses.
The admin log does show that I whitelisted the @customer.net at 9:42 on May 5th, so the system should have acted on that whitelist. I don't see anything in the logs where it checks against any whitelist other than the standard client / mailto graylist.