Topic: Blacklist strange behavior
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue:
I'm add blacklist for two adress and
adress `a@domain.com` id added to table `mailaddr` this same like `b@domain.com`.
`id / priority/ adress`
`540 / 10 / a@domain.com`
`496 / 10 / b@domain.com`
in table `wblist`
`idDomeny / idUsera / w/b`
`185 / 540 / B`
`185 / 496 / B`
but when I'm send message from
a@domain.com message is rejected
when I'm send from b@domain.com message is not rejected but marked like spam
logs from incorrect behavior:
2016-10-12 08:42:14 DEBUG smtp session: sender=b@domain.com
2016-10-12 08:42:14 DEBUG smtp session: sasl_username=b@domain.com
WHERE kind='outbound' AND account IN ('185.23.21.92', '@ip', '@.', 'b@domain.com', '@domain.com', '@.domain.com', '@pl', '@.pl', '185.23.21.*', '185.23.*.92')
2016-10-12 08:42:15 INFO [0.4919s] [185.23.21.92] END-OF-MESSAGE, b@domain.com => recipient@domain.pl, DUNNO
Oct 12 08:42:14 mail1 postfix/smtpd[6853]: BCAD270903: client=ip-[185., sasl_method=PLAIN, sasl_username=b@domain.com
Oct 12 08:42:15 mail1 postfix/cleanup[6897]: BCAD270903: messaged=<7bbe51ae349ade1dedddb778b4777e07@reczkowski.pl>
Oct 12 08:42:15 mail1 postfix/qmgr[28153]: BCAD270903: from=<SRS0=prJZ=V6=domain.com=b@mail1.pl>, size=633, nrcpt=1 (queue active)
Oct 12 08:42:15 mail1 amavis[5192]: (05192-10-2) Passed SPAM {RelayedTaggedInbound}, [185….]:16713 [185….] <SRS0=prJZ=V6=domain.com=b@mail1.pl> -> <whois@portaldomenowy.pl>, Queue-ID: BCAD270903, Message-ID: <7bbe51ae349ade1dedddb778b4777e07@ski.pl>, mail_id: krn_I8sil-7A, Hits: -, size: 1135, queued_as: BDF9B70929, dkim_sd=x:ski.pl, 120 ms
Oct 12 08:42:15 mail1 postfix/smtp[6968]: BCAD270903: to=<whois@portaldomenowy.pl>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=2, delay=1, delays=0.92/0/0/0.12, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as BDF9B70929)
Oct 12 08:42:15 mail1 postfix/qmgr[28153]: BCAD270903: removed
correct ban
2016-10-12 08:49:34 DEBUG smtp session: sender=a@domain.com
2016-10-12 08:49:34 DEBUG Possible policy senders: ['@.', 'b@domain.com', '@domain.com', '@.domain.com', '@com', '@.com', 'b@*', '188.116.37.171', '188.116.37.*', '188.116.*.171']
WHERE email IN ('@.', 'b@domain.com', '@domain.com', '@.domain.com', '@com', '@.com', 'b@*', '188.116.37.171', '188.116.37.*', '188.116.*.171')
2016-10-12 08:49:34 DEBUG Addresses (in `mailaddr`): [(540L, 'b@domain.com'), (166L, '@.')]
2016-10-12 08:49:34 INFO [0.0908s] [188.116.37.171] RCPT, b@domain.com -> whois@portaldomenowy.pl, DISCARD Blacklisted
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.