Hi Zhang thanks for the reply
Here is the iredapd log after I change to debug mode, restart iredapd and send trial email.
2016-01-08 08:57:12 DEBUG Connect from 127.0.0.1, port 59946.
2016-01-08 08:57:12 DEBUG smtp session: request=smtpd_access_policy
2016-01-08 08:57:12 DEBUG smtp session: protocol_state=RCPT
2016-01-08 08:57:12 DEBUG smtp session: protocol_name=ESMTP
2016-01-08 08:57:12 DEBUG smtp session: client_address=127.0.0.1
2016-01-08 08:57:12 DEBUG smtp session: client_name=mail.mydomain.com
2016-01-08 08:57:12 DEBUG smtp session: reverse_client_name=mail.mydomain.com
2016-01-08 08:57:12 DEBUG smtp session: helo_name=10.0.1.8
2016-01-08 08:57:12 DEBUG smtp session: sender=test@mydomain.com
2016-01-08 08:57:12 DEBUG smtp session: recipient=testing@outlook.com
2016-01-08 08:57:12 DEBUG smtp session: recipient_count=0
2016-01-08 08:57:12 DEBUG smtp session: queue_id=
2016-01-08 08:57:12 DEBUG smtp session: instance=384e.568f1778.46b1d.0
2016-01-08 08:57:12 DEBUG smtp session: size=0
2016-01-08 08:57:12 DEBUG smtp session: etrn_domain=
2016-01-08 08:57:12 DEBUG smtp session: stress=
2016-01-08 08:57:12 DEBUG smtp session: sasl_method=LOGIN
2016-01-08 08:57:12 DEBUG smtp session: sasl_username=test@mydomain.com
2016-01-08 08:57:12 DEBUG smtp session: sasl_sender=
2016-01-08 08:57:12 DEBUG smtp session: ccert_subject=
2016-01-08 08:57:12 DEBUG smtp session: ccert_issuer=
2016-01-08 08:57:12 DEBUG smtp session: ccert_fingerprint=
2016-01-08 08:57:12 DEBUG smtp session: ccert_pubkey_fingerprint=
2016-01-08 08:57:12 DEBUG smtp session: encryption_protocol=TLSv1
2016-01-08 08:57:12 DEBUG smtp session: encryption_cipher=ECDHE-RSA-AES256-SHA
2016-01-08 08:57:12 DEBUG smtp session: encryption_keysize=256
2016-01-08 08:57:12 DEBUG --> Apply plugin: reject_null_sender
2016-01-08 08:57:12 DEBUG Local sender.
2016-01-08 08:57:12 DEBUG <-- Result: DUNNO
2016-01-08 08:57:12 DEBUG --> Apply plugin: greylisting
2016-01-08 08:57:12 DEBUG Found SASL username, bypass greylisting for outbound email.
2016-01-08 08:57:12 DEBUG <-- Result: DUNNO
2016-01-08 08:57:12 DEBUG --> Apply plugin: amavisd_wblist
2016-01-08 08:57:12 DEBUG Possible policy senders: ['@.', 'test@mydomain.com', '@mydomain.com', '@.mydomain.com', '@com', '@.com']
2016-01-08 08:57:12 DEBUG Possible policy recipients: ['@.', 'testing@outlook.com', '@outlook.com', '@.outlook.com', '@com', '@.com']
2016-01-08 08:57:12 DEBUG Apply wblist for outbound message.
2016-01-08 08:57:12 DEBUG [SQL] Query local addresses:
SELECT id, email
FROM users
WHERE email IN ('@.', 'test@mydomain.com', '@mydomain.com', '@.mydomain.com', '@com', '@.com')
ORDER BY priority DESC
2016-01-08 08:57:12 DEBUG Local addresses (in `users`): [(201L, 'test@mydomain.com'), (2L, '@mydomain.com'), (1L, '@.')]
2016-01-08 08:57:12 DEBUG [SQL] Query external addresses:
SELECT id, email
FROM mailaddr
WHERE email IN ('@.', 'testing@outlook.com', '@outlook.com', '@.outlook.com', '@com', '@.com')
ORDER BY priority DESC
2016-01-08 08:57:12 DEBUG Addresses (in `mailaddr`): [(2143L, '@outlook.com'), (1651L, '@.')]
2016-01-08 08:57:12 DEBUG [SQL] Query outbound wblist:
SELECT rid, sid, wb
FROM outbound_wblist
WHERE sid IN (201, 2, 1) AND rid IN (2143, 1651)
2016-01-08 08:57:12 DEBUG Found wblist: [(1651L, 201L, 'W'), (2143L, 2L, 'B')]
2016-01-08 08:57:12 INFO Blacklisted: wblist=(2143, 2, 'B')
2016-01-08 08:57:12 DEBUG <-- Result: REJECT Blacklisted
2016-01-08 08:57:12 DEBUG INSERT INTO log (admin, ip, msg, timestamp, event)
VALUES ('iredapd', '127.0.0.1', 'REJECT Blacklisted (test@mydomain.com -> testing@outlook.com, amavisd_wblist)', NOW(), 'iredapd')
2016-01-08 08:57:12 INFO [127.0.0.1] RCPT, => test@mydomain.com -> testing@outlook.com, REJECT Blacklisted
2016-01-08 08:57:12 DEBUG Session ended