1

Topic: Blacklist not worked

==== Required information ====
- iRedMail version: 2.1.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: 6.5
- Related log if you're reporting an issue:
====

We have a spammer which still come even we blacklist the user on the blacklist feature, is any set to blacklist the user ? i input the IP of the sender on iptables too..

Regards,

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Blacklist not worked

What do you mean "still come"? How?

3

Re: Blacklist not worked

Dear Zhang,

I mean with still come is the email still come to our mailbox even we already input their domain into the blacklist feature on iredmail. is any other setting to prevent the spammer?

Regards,

Marcel

4

Re: Blacklist not worked

Could you please help extract log from Postfix log file (/var/log/maillog) related to this spammer? so that i can know how it entered your mail queue.

Note: please extract log of full smtp session, not just one line contains spammer IP/email.

5

Re: Blacklist not worked

Dear,

Sorry for late reply,

I already check the log for maillog but i didnt get the spammer.. is any log for reject sender?
Sorry i am ask too much, because i am newbie on iredmail

Regards

6

Re: Blacklist not worked

Which is the spammer you want to blacklist? an IP address or an email address? Try to find it out in Postfix log file please.

7

Re: Blacklist not worked

I think, i've got same problem:
I add sender or domain to black- or whitelist in webUI. it appends to "cluebringer-policy_group_members" base. But emails from this senders still come =\

For example:
I added my own adress "deviance@rambler.ru" to BLblacklist
Then i send mail from this mail adress:

/var/log/mail.log

Nov 12 11:38:22 mail postfix/qmgr[23973]: C2AE7E07D5: from=<deviance@rambler.ru>, size=1287, nrcpt=1 (queue active)
Nov 12 11:38:23 mail postfix/qmgr[23973]: 3FD05E07DD: from=<deviance@rambler.ru>, size=1698, nrcpt=1 (queue active)
Nov 12 11:38:23 mail amavis[28263]: (28263-02) Passed CLEAN {RelayedInternal}, LOCAL [81.19.67.58]:22879 [80.237.85.2] <deviance@rambler.ru> -> <parfenov@etpz.ru>, Queue-ID: C2AE7E07D5, Message-ID: <1415781501.899227.15135.31552@mail.rambler.ru>, mail_id: ON3gc7Nl7hsY, Hits: 1.211, size: 1287, queued_as: 3FD05E07DD, 457 ms

/var/log/iredapd.log

2014-11-12 11:38:21 DEBUG Connect from 127.0.0.1, port 45462.
2014-11-12 11:38:21 DEBUG smtp session: request=smtpd_access_policy
2014-11-12 11:38:21 DEBUG smtp session: protocol_state=RCPT
2014-11-12 11:38:21 DEBUG smtp session: protocol_name=ESMTP
2014-11-12 11:38:21 DEBUG smtp session: client_address=81.19.67.58
2014-11-12 11:38:21 DEBUG smtp session: client_name=mxout1.rambler.ru
2014-11-12 11:38:21 DEBUG smtp session: reverse_client_name=mxout1.rambler.ru
2014-11-12 11:38:21 DEBUG smtp session: helo_name=mxout1.rambler.ru
2014-11-12 11:38:21 DEBUG smtp session: sender=deviance@rambler.ru
2014-11-12 11:38:21 DEBUG smtp session: recipient=parfenov@etpz.ru
2014-11-12 11:38:21 DEBUG smtp session: recipient_count=0
2014-11-12 11:38:21 DEBUG smtp session: queue_id=
2014-11-12 11:38:21 DEBUG smtp session: instance=6e9d.54631c7d.b998c.0
2014-11-12 11:38:21 DEBUG smtp session: size=1141
2014-11-12 11:38:21 DEBUG smtp session: etrn_domain=
2014-11-12 11:38:21 DEBUG smtp session: stress=
2014-11-12 11:38:21 DEBUG smtp session: sasl_method=
2014-11-12 11:38:21 DEBUG smtp session: sasl_username=
2014-11-12 11:38:21 DEBUG smtp session: sasl_sender=
2014-11-12 11:38:21 DEBUG smtp session: ccert_subject=
2014-11-12 11:38:21 DEBUG smtp session: ccert_issuer=
2014-11-12 11:38:21 DEBUG smtp session: ccert_fingerprint=
2014-11-12 11:38:21 DEBUG smtp session: ccert_pubkey_fingerprint=
2014-11-12 11:38:21 DEBUG smtp session: encryption_protocol=
2014-11-12 11:38:21 DEBUG smtp session: encryption_cipher=
2014-11-12 11:38:21 DEBUG smtp session: encryption_keysize=0
2014-11-12 11:38:21 DEBUG LDAP connection initialied success.
2014-11-12 11:38:21 DEBUG LDAP bind success.
2014-11-12 11:38:21 DEBUG [+] Getting LDIF data of account: parfenov@etpz.ru
2014-11-12 11:38:21 DEBUG search filter: (&(|(mail=parfenov@etpz.ru)(shadowAddress=parfenov@etpz.ru))(|(objectClass=mailUser)(objectClass=mailList)(objectClass=mailAlias)))
2014-11-12 11:38:21 DEBUG search attributes: ['objectClass', 'listAllowedUser', 'accessPolicy', 'amavisBlacklistSender', 'amavisWhitelistSender']
2014-11-12 11:38:21 DEBUG result: [('mail=parfenov@etpz.ru,ou=Users,domainName=etpz.ru,o=domains,dc=etpz,dc=ru', {'objectClass': ['inetOrgPerson', 'mailUser', 'shadowAccount', 'amavisAccount']})]
2014-11-12 11:38:21 DEBUG --> Apply plugin: ldap_maillist_access_policy
2014-11-12 11:38:21 DEBUG <-- Result: DUNNO (Not a mail list account)
2014-11-12 11:38:21 DEBUG --> Apply plugin: ldap_amavisd_block_blacklisted_senders
2014-11-12 11:38:21 DEBUG Sender: deviance@rambler.ru
2014-11-12 11:38:21 DEBUG Whitelisted senders: set([])
2014-11-12 11:38:21 DEBUG Blacklisted senders: set([])
2014-11-12 11:38:21 DEBUG <-- Result: DUNNO (No white/blacklist records found)
2014-11-12 11:38:21 DEBUG [+] Getting LDIF data of account:
2014-11-12 11:38:21 DEBUG search filter: (&(|(mail=)(shadowAddress=))(|(objectClass=mailUser)(objectClass=mailList)(objectClass=mailAlias)))
2014-11-12 11:38:21 DEBUG search attributes: ['objectClass', 'mailBlacklistRecipient', 'mailWhitelistRecipient']
2014-11-12 11:38:21 DEBUG Not a local account.
2014-11-12 11:38:21 DEBUG --> Apply plugin: ldap_recipient_restrictions
2014-11-12 11:38:21 DEBUG <-- Result: DUNNO (No sender LDIF data)
2014-11-12 11:38:21 INFO [81.19.67.58] deviance@rambler.ru -> parfenov@etpz.ru, DUNNO
2014-11-12 11:38:21 DEBUG Connection closed
2014-11-12 11:38:21 DEBUG Close LDAP connection.

As far as I can see

2014-11-12 11:38:21 DEBUG Whitelisted senders: set([])
2014-11-12 11:38:21 DEBUG Blacklisted senders: set([])

means that i havent got black or whitelist records. and i dunno why(
plz help.

P.S. Sorry for my english(

8

Re: Blacklist not worked

Blacklist is stored in Cluebringer database, not iRedAPD, you have to turn on debug in Cluebringer to figure it out.
Reference: http://www.iredmail.org/docs/turn.on.de … inger.html

9 (edited by deviance 2014-11-12 18:17:53)

Re: Blacklist not worked

[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '1' in policy 'Default'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '2' in policy 'Default Outbound'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '3' in policy 'Default Inbound'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '4' in policy 'Default Internal'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '6' in policy 'whitelists'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '7' in policy 'blacklists'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '8' in policy 'no_greylisting'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: Found policy member with ID '9' in policy 'no_greylisting'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:1/Name:Default]: Source not defined or 'any', explicit match: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:1/Name:Default]: Source matching result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:1/Name:Default]: Destination not defined or 'any', explicit match: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:1/Name:Default]: Destination matching result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]: Main policy sources '%internal_ips,%internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]: Group 'internal_ips' has 1 source(s) => 10.0.0.0/8
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]=>(group:internal_ips): - Resolved source '10.0.0.0/8' to a IP/CIDR specification, match = 0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:2/Name:Default Outbound]=>(group:internal_ips): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:2/Name:Default Outbound]: Source matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]: Main policy sources '!%internal_ips,!%internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]: Group 'internal_ips' has 1 source(s) => 10.0.0.0/8
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]=>(group:internal_ips): - Resolved source '10.0.0.0/8' to a IP/CIDR specification, match = 0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]=>(group:internal_ips): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]: Group 'internal_domains' has 0 source(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:3/Name:Default Inbound]: No group members for source group 'internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]=>(group:internal_domains): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:3/Name:Default Inbound]: Source matching result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]: Main policy destinations '%internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]: Group 'internal_domains' has 0 destination(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:3/Name:Default Inbound]: No group members for destination group 'internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:3/Name:Default Inbound]=>(group:internal_domains): Destination group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:3/Name:Default Inbound]: Destination matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:4/Name:Default Internal]: Main policy sources '%internal_ips,%internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:4/Name:Default Internal]: Group 'internal_ips' has 1 source(s) => 10.0.0.0/8
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:4/Name:Default Internal]=>(group:internal_ips): - Resolved source '10.0.0.0/8' to a IP/CIDR specification, match = 0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:4/Name:Default Internal]=>(group:internal_ips): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:4/Name:Default Internal]: Source matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:6/Name:whitelists]: Main policy sources '%whitelists'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:6/Name:whitelists]: Group 'whitelists' has 0 source(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:6/Name:whitelists]: No group members for source group 'whitelists'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:6/Name:whitelists]=>(group:whitelists): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:6/Name:whitelists]: Source matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]: Main policy sources '%blacklists'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]: Group 'blacklists' has 1 source(s) => deviance@rambler.ru
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]=>(group:blacklists): - Resolved source 'deviance@rambler.ru' to a email address specification, match = 1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]=>(group:blacklists): Source group result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:7/Name:blacklists]: Source matching result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]: Main policy destinations '%internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]: Group 'internal_domains' has 0 destination(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:7/Name:blacklists]: No group members for destination group 'internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]=>(group:internal_domains): Destination group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:7/Name:blacklists]: Destination matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]: Main policy sources '!%internal_ips,!%internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]: Group 'internal_ips' has 1 source(s) => 10.0.0.0/8
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]=>(group:internal_ips): - Resolved source '10.0.0.0/8' to a IP/CIDR specification, match = 0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]=>(group:internal_ips): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]: Group 'internal_domains' has 0 source(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:8/Name:no_greylisting]: No group members for source group 'internal_domains'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]=>(group:internal_domains): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:8/Name:no_greylisting]: Source matching result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]: Main policy destinations '%no_greylisting_for_internal'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]: Group 'no_greylisting_for_internal' has 0 destination(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:8/Name:no_greylisting]: No group members for destination group 'no_greylisting_for_internal'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:8/Name:no_greylisting]=>(group:no_greylisting_for_internal): Destination group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:8/Name:no_greylisting]: Destination matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:9/Name:no_greylisting]: Main policy sources '%no_greylisting_for_external'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:9/Name:no_greylisting]: Group 'no_greylisting_for_external' has 0 source(s) =>
[2014/11/12-13:14:35 - 2734] [POLICIES] WARNING: [ID:9/Name:no_greylisting]: No group members for source group 'no_greylisting_for_external'
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:9/Name:no_greylisting]=>(group:no_greylisting_for_external): Source group result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:9/Name:no_greylisting]: Source matching result: matched=0
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: END RESULT: prio=0 => policy ids: 1
[2014/11/12-13:14:35 - 2734] [TRACKING] DEBUG: Policy resolved into: $VAR1 = {
          '0' => [
                   '1'
                 ]
        };
[2014/11/12-13:14:35 - 2734] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
          'Recipient' => 'parfenov@etpz.ru',
          'SASLUsername' => '',
          'QueueID' => '',
          'RecipientData' => '',
          'Instance' => 'acc.5463330b.5306e.0',
          'EncryptionCipher' => '',
          'Size' => '1141',
          'EncryptionKeySize' => '0',
          'ParsedClientAddress' => {
                                     'Broadcast_Long' => 1360216890,
                                     'Network' => '81.19.67.58',
                                     'IP_Long' => 1360216890,
                                     'Broadcast' => '81.19.67.58',
                                     'IP' => '81.19.67.58',
                                     'Mask_Long' => 4294967295,
                                     'Network_Long' => 1360216890
                                   },
          'ProtocolTransport' => 'Postfix',
          'EncryptionProtocol' => '',
          'Helo' => 'mxout1.rambler.ru',
          'ClientAddress' => '81.19.67.58',
          'ClientName' => 'mxout1.rambler.ru',
          'Sender' => 'deviance@rambler.ru',
          'SASLSender' => '',
          'Timestamp' => 1415787275,
          'ProtocolState' => 'RCPT',
          'Policy' => {
                        '0' => [
                                 '1'
                               ]
                      },
          'Protocol' => 'ESMTP',
          'ClientReverseName' => 'mxout1.rambler.ru',
          'SASLMethod' => ''
        };
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Got request, running modules...
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Running module: Access Control Plugin
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Running module: HELO/EHLO Check Plugin
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Running module: SPF Check Plugin
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Running module: Greylisting Plugin
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Running module: Quotas Plugin
[2014/11/12-13:14:35 - 2734] [CBPOLICYD] DEBUG: Done with modules
[2014/11/12-13:14:36 - 2443] [CORE] INFO: 2014/11/12-13:14:36 CONNECT TCP Peer: "[127.0.0.1]:37232" Local: "[127.0.0.1]:10031"
[2014/11/12-13:14:36 - 2443] [TRACKING] DEBUG: Protocol state is 'END-OF-MESSAGE', decoding policy...
[2014/11/12-13:14:36 - 2443] [TRACKING] DEBUG: Decoded into: $VAR1 = {
          'parfenov@etpz.ru' => {
                                  '0' => [
                                           '1'
                                         ]
                                }
        };
[2014/11/12-13:14:36 - 2443] [TRACKING] DEBUG: Request translated into session data: $VAR1 = {
          'SASLUsername' => '',
          'QueueID' => '5D717E07D5',
          'RecipientData' => '/<parfenov@etpz.ru>#0=1;',
          'EncryptionCipher' => '',
          'Instance' => 'acc.5463330b.5306e.0',
          'Size' => '1107',
          'EncryptionKeySize' => '0',
          'ParsedClientAddress' => {
                                     'Broadcast_Long' => 1360216890,
                                     'Network' => '81.19.67.58',
                                     'IP_Long' => 1360216890,
                                     'Broadcast' => '81.19.67.58',
                                     'IP' => '81.19.67.58',
                                     'Mask_Long' => 4294967295,
                                     'Network_Long' => 1360216890
                                   },
          'ProtocolTransport' => 'Postfix',
          'EncryptionProtocol' => '',
          'Helo' => 'mxout1.rambler.ru',
          'ClientAddress' => '81.19.67.58',
          'ClientName' => 'mxout1.rambler.ru',
          'Sender' => 'deviance@rambler.ru',
          'SASLSender' => '',
          'Timestamp' => 1415787276,
          'ProtocolState' => 'END-OF-MESSAGE',
          '_Recipient_To_Policy' => {
                                      'parfenov@etpz.ru' => {
                                                              '0' => [
                                                                       '1'
                                                                     ]
                                                            }
                                    },
          'Protocol' => 'ESMTP',
          'ClientReverseName' => 'mxout1.rambler.ru',
          'SASLMethod' => ''
        };
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Got request, running modules...
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Running module: Access Control Plugin
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Running module: HELO/EHLO Check Plugin
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Running module: SPF Check Plugin
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Running module: Greylisting Plugin
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Running module: Quotas Plugin
[2014/11/12-13:14:36 - 2443] [CBPOLICYD] DEBUG: Done with modules

[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]: Group 'blacklists' has 1 source(s) => deviance@rambler.ru
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]=>(group:blacklists): - Resolved source 'deviance@rambler.ru' to a email address specification, match = 1
[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:7/Name:blacklists]=>(group:blacklists): Source group result: matched=1
[2014/11/12-13:14:35 - 2734] [POLICIES] INFO: [ID:7/Name:blacklists]: Source matching result: matched=1

But message delivered sad

10

Re: Blacklist not worked

http://www.iredmail.org/forum/topic7023 … olved.html
i've got same problem & outputs from MYSQL commands.
is it possible to solve it by myself?
Thank you

11

Re: Blacklist not worked

deviance wrote:

[2014/11/12-13:14:35 - 2734] [POLICIES] DEBUG: [ID:1/Name:Default]: Source not defined or 'any', explicit match: matched=1
...
[2014/11/12-13:14:35 - 2734] [TRACKING] DEBUG: Policy resolved into: $VAR1 = {
          '0' => [
                   '1'
                 ]
        };

According to cluebringer log, the sender is not blacklisted in cluebringer.
Did you blacklist sender with iRedAdmin-Pro or cluebringer webui?

12

Re: Blacklist not worked

with iredadmin-pro.
Thats what i have in cluebringer database:

mysql> USE cluebringer
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SELECT * FROM policies \G
*************************** 1. row ***************************
         ID: 1
       Name: Default
   Priority: 0
Description: Default System Policy
   Disabled: 0
*************************** 2. row ***************************
         ID: 2
       Name: Default Outbound
   Priority: 10
Description: Default Outbound System Policy
   Disabled: 0
*************************** 3. row ***************************
         ID: 3
       Name: Default Inbound
   Priority: 10
Description: Default Inbound System Policy
   Disabled: 0
*************************** 4. row ***************************
         ID: 4
       Name: Default Internal
   Priority: 20
Description: Default Internal System Policy
   Disabled: 0
*************************** 5. row ***************************
         ID: 6
       Name: whitelists
   Priority: 6
Description: Whitelisted sender, domain, IP
   Disabled: 0
*************************** 6. row ***************************
         ID: 7
       Name: blacklists
   Priority: 8
Description: Blacklisted sender, domain, IP
   Disabled: 0
*************************** 7. row ***************************
         ID: 8
       Name: no_greylisting
   Priority: 20
Description: Disable grelisting for certain domain and users
   Disabled: 0
7 rows in set (0.02 sec)

mysql> SELECT * FROM policy_groups \G
*************************** 1. row ***************************
      ID: 1
    Name: internal_ips
Disabled: 0
 Comment: NULL
*************************** 2. row ***************************
      ID: 2
    Name: internal_domains
Disabled: 0
 Comment: NULL
*************************** 3. row ***************************
      ID: 3
    Name: whitelists
Disabled: 0
 Comment: NULL
*************************** 4. row ***************************
      ID: 4
    Name: blacklists
Disabled: 0
 Comment: NULL
*************************** 5. row ***************************
      ID: 5
    Name: no_greylisting_for_internal
Disabled: 0
 Comment: NULL
*************************** 6. row ***************************
      ID: 6
    Name: no_greylisting_for_external
Disabled: 0
 Comment: NULL
6 rows in set (0.03 sec)

mysql> SELECT * FROM policy_members \G
*************************** 1. row ***************************
         ID: 1
   PolicyID: 1
     Source: NULL
Destination: NULL
    Comment: NULL
   Disabled: 0
*************************** 2. row ***************************
         ID: 2
   PolicyID: 2
     Source: %internal_ips,%internal_domains
Destination: !%internal_domains
    Comment: NULL
   Disabled: 0
*************************** 3. row ***************************
         ID: 3
   PolicyID: 3
     Source: !%internal_ips,!%internal_domains
Destination: %internal_domains
    Comment: NULL
   Disabled: 0
*************************** 4. row ***************************
         ID: 4
   PolicyID: 4
     Source: %internal_ips,%internal_domains
Destination: %internal_domains
    Comment: NULL
   Disabled: 0
*************************** 5. row ***************************
         ID: 6
   PolicyID: 6
     Source: %whitelists
Destination: %internal_domains
    Comment: NULL
   Disabled: 0
*************************** 6. row ***************************
         ID: 7
   PolicyID: 7
     Source: %blacklists
Destination: %internal_domains
    Comment: NULL
   Disabled: 0
*************************** 7. row ***************************
         ID: 8
   PolicyID: 8
     Source: !%internal_ips,!%internal_domains
Destination: %no_greylisting_for_internal
    Comment: NULL
   Disabled: 0
*************************** 8. row ***************************
         ID: 9
   PolicyID: 8
     Source: %no_greylisting_for_external
Destination: %internal_domains
    Comment: NULL
   Disabled: 0
8 rows in set (0.01 sec)

mysql> SELECT * FROM policy_group_members \G
*************************** 1. row ***************************
           ID: 1
PolicyGroupID: 1
       Member: 10.0.0.0/8
     Disabled: 0
      Comment: NULL
         Type:
*************************** 2. row ***************************
           ID: 25
PolicyGroupID: 4
       Member: deviance@rambler.ru
     Disabled: 0
      Comment:
         Type: sender
2 rows in set (0.01 sec)

13

Re: Blacklist not worked

Oh, i found the problem. Please execute script 'tools/sync_cluebringer_internal_domains.py' shipped within iRedAdmin-Pro and it should work.