<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — amavisd_wblist Not Blocking]]></title>
		<link>https://forum.iredmail.org/topic18965-amavisdwblist-not-blocking.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic18965.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in amavisd_wblist Not Blocking.]]></description>
		<lastBuildDate>Sat, 08 Oct 2022 07:54:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post84516.html#p84516</link>
			<description><![CDATA[<div class="quotebox"><cite>Lexa83 wrote:</cite><blockquote><p>Did you ever figure this out? Wanted to point out my logs are in UTC and not my local timezone, any chance you are in -2hr timezone? Found your post interesting as I&#039;m having trouble with amavisd_wblist not whitelisting and am currently searching posts for a resolution.</p></blockquote></div><p>Please create a new forum topic for your own issue with detailed description and related log lines.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 08 Oct 2022 07:54:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84516.html#p84516</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post84407.html#p84407</link>
			<description><![CDATA[<p>Did you ever figure this out? Wanted to point out my logs are in UTC and not my local timezone, any chance you are in -2hr timezone? Found your post interesting as I&#039;m having trouble with amavisd_wblist not whitelisting and am currently searching posts for a resolution.</p>]]></description>
			<author><![CDATA[null@example.com (Lexa83)]]></author>
			<pubDate>Tue, 27 Sep 2022 15:09:45 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84407.html#p84407</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83635.html#p83635</link>
			<description><![CDATA[<p>This doesn&#039;t make any sense to me.<br />iRedAPD is configured in Postfix correctly (smtpd_recipient_restrictions, smtpd_end_of_data_restrictions), all emails processed by Postfix will be passed to iRedAPD, hence there must be some log lines in iRedAPD log file.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 05 Jul 2022 06:59:49 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83635.html#p83635</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83498.html#p83498</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>alec wrote:</cite><blockquote><p>The snippet of the log is from an email with multiple receivers, but it&#039;s not the one that I need to block. I don&#039;t know if this can help you.</p></blockquote></div><p>This is helpless. We need the log triggered by the blocked one for troubleshooting.</p></blockquote></div><p>This is the problem. Nothing get triggered, so nothing is written in the log. There are nothing in iredapd.log about the blocked email.<br />Few minutes ago (4:30pm) I sent 4 emails from the blocked gmail account. All three landed in my inbox in the iRedMail server.<br />The last lines that I have in the log /var/log/iredapd/iredapd.log are from 2:00pm. <br />No log lines about the gmail emails.</p>]]></description>
			<author><![CDATA[null@example.com (alec)]]></author>
			<pubDate>Mon, 20 Jun 2022 14:43:46 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83498.html#p83498</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83467.html#p83467</link>
			<description><![CDATA[<div class="quotebox"><cite>alec wrote:</cite><blockquote><p>The snippet of the log is from an email with multiple receivers, but it&#039;s not the one that I need to block. I don&#039;t know if this can help you.</p></blockquote></div><p>This is helpless. We need the log triggered by the blocked one for troubleshooting.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 17 Jun 2022 14:50:50 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83467.html#p83467</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83466.html#p83466</link>
			<description><![CDATA[<p>Sorry for the delay, this is the log with the leading part that I unintentionally omitted:</p><div class="codebox"><pre><code>Jun 10 14:08:17 mx iredapd [192.168.11.114] RCPT, person1@company.com =&gt; person3@company2.com, DUNNO [sasl_username=person1@company.com, sender=person1@company.com, client_name=unknown, reverse_client_name=person1, helo=smtpclient.apple, encryption_protocol=TLSv1.2, encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384, server_port=587, process_time=0.0072s]
Jun 10 14:08:17 mx iredapd [policy] request=smtpd_access_policy
Jun 10 14:08:17 mx iredapd [policy] protocol_state=RCPT
Jun 10 14:08:17 mx iredapd [policy] protocol_name=ESMTP
Jun 10 14:08:17 mx iredapd [policy] client_address=192.168.11.114
Jun 10 14:08:17 mx iredapd [policy] client_name=unknown
Jun 10 14:08:17 mx iredapd [policy] client_port=60421
Jun 10 14:08:17 mx iredapd [policy] reverse_client_name=person1
Jun 10 14:08:17 mx iredapd [policy] server_address=192.168.11.247
Jun 10 14:08:17 mx iredapd [policy] server_port=587
Jun 10 14:08:17 mx iredapd [policy] helo_name=smtpclient.apple
Jun 10 14:08:17 mx iredapd [policy] sender=person1@company.com
Jun 10 14:08:17 mx iredapd [policy] recipient=person2@gmail.com
Jun 10 14:08:17 mx iredapd [policy] recipient_count=0
Jun 10 14:08:17 mx iredapd [policy] queue_id=4LKN8x0TLzzltv5
Jun 10 14:08:17 mx iredapd [policy] instance=2b29d.62a35050.e907a.0
Jun 10 14:08:17 mx iredapd [policy] size=0
Jun 10 14:08:17 mx iredapd [policy] etrn_domain=
Jun 10 14:08:17 mx iredapd [policy] stress=
Jun 10 14:08:17 mx iredapd [policy] sasl_method=PLAIN
Jun 10 14:08:17 mx iredapd [policy] sasl_username=person1@company.com
Jun 10 14:08:17 mx iredapd [policy] sasl_sender=
Jun 10 14:08:17 mx iredapd [policy] ccert_subject=
Jun 10 14:08:17 mx iredapd [policy] ccert_issuer=
Jun 10 14:08:17 mx iredapd [policy] ccert_fingerprint=
Jun 10 14:08:17 mx iredapd [policy] ccert_pubkey_fingerprint=
Jun 10 14:08:17 mx iredapd [policy] encryption_protocol=TLSv1.2
Jun 10 14:08:17 mx iredapd [policy] encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384
Jun 10 14:08:17 mx iredapd [policy] encryption_keysize=256
Jun 10 14:08:17 mx iredapd [policy] policy_context=
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: reject_null_sender
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: wblist_rdns
Jun 10 14:08:17 mx iredapd Found SASL username, bypass rDNS check for outbound.
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: reject_sender_login_mismatch
Jun 10 14:08:17 mx iredapd Sender: person1@company.com, SASL username: person1@company.com
Jun 10 14:08:17 mx iredapd SKIP: sender == sasl username.
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: greylisting
Jun 10 14:08:17 mx iredapd Found SASL username, bypass greylisting for outbound email.
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd Skip plugin: throttle (protocol_state != RCPT)
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: sql_alias_access_policy
Jun 10 14:08:17 mx iredapd [SQL] query access policy: #012SELECT accesspolicy#012               FROM alias#012              WHERE address=&#039;person2@gmail.com&#039;#012              LIMIT 1
Jun 10 14:08:17 mx iredapd [SQL] query result: None
Jun 10 14:08:17 mx iredapd [SQL] query target domain of given alias domain (gmail.com): #012&quot;SELECT alias_domain.target_domain\n               FROM alias_domain, domain\n              WHERE domain.active=1\n                    AND domain.domain=alias_domain.target_domain\n                    AND alias_domain.alias_domain=&#039;gmail.com&#039;\n              LIMIT 1&quot;
Jun 10 14:08:17 mx iredapd [SQL] query result: None
Jun 10 14:08:17 mx iredapd Recipient domain is not an alias domain.
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO Recipient is not a mail alias account or no access policy
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: amavisd_wblist
Jun 10 14:08:17 mx iredapd [SQL] query target domain of given alias domain (company.com): #012&quot;SELECT alias_domain.target_domain\n               FROM alias_domain, domain\n              WHERE domain.active=1\n                    AND domain.domain=alias_domain.target_domain\n                    AND alias_domain.alias_domain=&#039;company.com&#039;\n              LIMIT 1&quot;
Jun 10 14:08:17 mx iredapd [SQL] query result: None
Jun 10 14:08:17 mx iredapd [SQL] query target domain of given alias domain (gmail.com): #012&quot;SELECT alias_domain.target_domain\n               FROM alias_domain, domain\n              WHERE domain.active=1\n                    AND domain.domain=alias_domain.target_domain\n                    AND alias_domain.alias_domain=&#039;gmail.com&#039;\n              LIMIT 1&quot;
Jun 10 14:08:17 mx iredapd [SQL] query result: None
Jun 10 14:08:17 mx iredapd Possible policy senders: [&#039;person1@company.com&#039;, &#039;@company.com&#039;, &#039;@.&#039;, &#039;@.company.com&#039;, &#039;@.com&#039;, &#039;192.168.11.114&#039;, &#039;192.168.11.*&#039;, &#039;192.168.*.114&#039;]
Jun 10 14:08:17 mx iredapd Possible policy recipients: [&#039;person2@gmail.com&#039;, &#039;@gmail.com&#039;, &#039;@.&#039;, &#039;@.gmail.com&#039;, &#039;@.com&#039;]
Jun 10 14:08:17 mx iredapd Apply wblist for outbound message.
Jun 10 14:08:17 mx iredapd [SQL] Query local addresses: #012SELECT id, email#012               FROM users#012              WHERE email IN (&#039;person1@company.com&#039;, &#039;@company.com&#039;, &#039;@.&#039;, &#039;@.company.com&#039;, &#039;@.com&#039;, &#039;192.168.11.114&#039;, &#039;192.168.11.*&#039;, &#039;192.168.*.114&#039;)#012           ORDER BY priority DESC
Jun 10 14:08:17 mx iredapd Local addresses (in `amavisd.users`): [(1, &lt;memory at 0x7ff8865a8940&gt;)]
Jun 10 14:08:17 mx iredapd [SQL] Query external addresses: #012SELECT id, email#012               FROM mailaddr#012              WHERE email IN (&#039;person2@gmail.com&#039;, &#039;@gmail.com&#039;, &#039;@.&#039;, &#039;@.gmail.com&#039;, &#039;@.com&#039;)#012           ORDER BY priority DESC
Jun 10 14:08:17 mx iredapd No record found in SQL database.
Jun 10 14:08:17 mx iredapd [SQL] Query CIDR network: #012SELECT id, email#012               FROM mailaddr#012              WHERE email LIKE &#039;192.%%&#039;#012           ORDER BY priority DESC
Jun 10 14:08:17 mx iredapd IDs of CIDR network(s): []
Jun 10 14:08:17 mx iredapd No valid sender id or recipient id.
Jun 10 14:08:17 mx iredapd [SQL] query local domain (gmail.com): #012SELECT domain#012                   FROM domain#012                  WHERE domain=&#039;gmail.com&#039; AND active=1 #012                  LIMIT 1
Jun 10 14:08:17 mx iredapd SQL query result: None
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd Session ended.

Jun 10 14:08:17 mx iredapd [192.16.11.114] RCPT, person1@company.com =&gt; person2@gmail.com, DUNNO [sasl_username=person1@company.com, sender=person1@company.com, client_name=unknown, reverse_client_name=person1, helo=smtpclient.apple, encryption_protocol=TLSv1.2, encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384, server_port=587, process_time=0.0065s]
Jun 10 14:08:17 mx iredapd [policy] request=smtpd_access_policy
Jun 10 14:08:17 mx iredapd [policy] protocol_state=END-OF-MESSAGE
Jun 10 14:08:17 mx iredapd [policy] protocol_name=ESMTP
Jun 10 14:08:17 mx iredapd [policy] client_address=192.16.11.114
Jun 10 14:08:17 mx iredapd [policy] client_name=unknown
Jun 10 14:08:17 mx iredapd [policy] client_port=60421
Jun 10 14:08:17 mx iredapd [policy] reverse_client_name=person1
Jun 10 14:08:17 mx iredapd [policy] server_address=192.16.11.247
Jun 10 14:08:17 mx iredapd [policy] server_port=587
Jun 10 14:08:17 mx iredapd [policy] helo_name=smtpclient.apple
Jun 10 14:08:17 mx iredapd [policy] sender=person1@company.com
Jun 10 14:08:17 mx iredapd [policy] recipient=
Jun 10 14:08:17 mx iredapd [policy] recipient_count=5
Jun 10 14:08:17 mx iredapd [policy] queue_id=4LKN8x0TLzzltv5
Jun 10 14:08:17 mx iredapd [policy] instance=2b29d.62a35050.e907a.0
Jun 10 14:08:17 mx iredapd [policy] size=15184
Jun 10 14:08:17 mx iredapd [policy] etrn_domain=
Jun 10 14:08:17 mx iredapd [policy] stress=
Jun 10 14:08:17 mx iredapd [policy] sasl_method=PLAIN
Jun 10 14:08:17 mx iredapd [policy] sasl_username=person1@company.com
Jun 10 14:08:17 mx iredapd [policy] sasl_sender=
Jun 10 14:08:17 mx iredapd [policy] ccert_subject=
Jun 10 14:08:17 mx iredapd [policy] ccert_issuer=
Jun 10 14:08:17 mx iredapd [policy] ccert_fingerprint=
Jun 10 14:08:17 mx iredapd [policy] ccert_pubkey_fingerprint=
Jun 10 14:08:17 mx iredapd [policy] encryption_protocol=TLSv1.2
Jun 10 14:08:17 mx iredapd [policy] encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384
Jun 10 14:08:17 mx iredapd [policy] encryption_keysize=256
Jun 10 14:08:17 mx iredapd [policy] policy_context=
Jun 10 14:08:17 mx iredapd Skip plugin: reject_null_sender (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: wblist_rdns (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: reject_sender_login_mismatch (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: greylisting (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: throttle
Jun 10 14:08:17 mx iredapd Found sasl_username, consider this sender as an internal sender.
Jun 10 14:08:17 mx iredapd Check sender throttling.
Jun 10 14:08:17 mx iredapd [SQL] query target domain of given alias domain (company.com): #012&quot;SELECT alias_domain.target_domain\n               FROM alias_domain, domain\n              WHERE domain.active=1\n                    AND domain.domain=alias_domain.target_domain\n                    AND alias_domain.alias_domain=&#039;company.com&#039;\n              LIMIT 1&quot;
Jun 10 14:08:17 mx iredapd [SQL] query result: None
Jun 10 14:08:17 mx iredapd [SQL] Query throttle setting: #012        SELECT id, account, priority, period, max_msgs, max_quota, max_rcpts, msg_size#012          FROM throttle#012         WHERE kind=&#039;outbound&#039; AND account IN (&#039;192.16.11.114&#039;, &#039;@ip&#039;, &#039;person1@company.com&#039;, &#039;@company.com&#039;, &#039;@.&#039;, &#039;@.company.com&#039;, &#039;@.it&#039;, &#039;192.16.11.*&#039;, &#039;192.168.*.114&#039;)#012         ORDER BY priority DESC#012         
Jun 10 14:08:17 mx iredapd [SQL] Query result: []
Jun 10 14:08:17 mx iredapd No sender throttle setting.
Jun 10 14:08:17 mx iredapd Bypass recipient throttling (found sasl_username).
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd Skip plugin: sql_alias_access_policy (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: amavisd_wblist (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Session ended.
Jun 10 14:08:17 mx iredapd [192.16.11.114] END-OF-MESSAGE, person1@company.com =&gt; , DUNNO [recipient_count=5, size=15184, process_time=0.0051s]
Jun 10 14:08:17 mx iredapd [SQL] Insert into smtp_sessions: #012        INSERT INTO smtp_sessions (#012            time, time_num,#012            action, reason, instance,#012            client_address, client_name, reverse_client_name, helo_name,#012            encryption_protocol, encryption_cipher,#012            server_address, server_port,#012            sender, sender_domain,#012            sasl_username, sasl_domain,#012            recipient, recipient_domain)#012        VALUES (#012            &#039;2022-06-10 14:08:17&#039;, 1654870097,#012            &#039;DUNNO&#039;, &#039;&#039;, &#039;2b29d.62a35050.e907a.0&#039;,#012            &#039;192.16.11.114&#039;, &#039;unknown&#039;, &#039;person1&#039;, &#039;smtpclient.apple&#039;,#012            &#039;TLSv1.2&#039;, &#039;ECDHE-RSA-AES256-GCM-SHA384&#039;,#012            &#039;192.16.11.247&#039;, &#039;587&#039;,#012            &#039;person1@company.com&#039;, &#039;company.com&#039;,#012            &#039;person1@company.com&#039;, &#039;company.com&#039;,#012            &#039;&#039;, &#039;&#039;)#012    </code></pre></div><p>The new line in the middle of the log is to divide the new leading part from the old one that I had already posted.<br />The snippet of the log is from an email with multiple receivers, but it&#039;s not the one that I need to block. I don&#039;t know if this can help you.</p>]]></description>
			<author><![CDATA[null@example.com (alec)]]></author>
			<pubDate>Fri, 17 Jun 2022 13:54:32 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83466.html#p83466</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83442.html#p83442</link>
			<description><![CDATA[<div class="quotebox"><cite>alec wrote:</cite><blockquote><p>Jun 10 14:08:17 mx iredapd [192.16.11.114] RCPT, person1@company.com =&gt; person2@gmail.com, DUNNO [sasl_username=person1@company.com, sender=person1@company.com, client_name=unknown, reverse_client_name=person1, helo=smtpclient.apple, encryption_protocol=TLSv1.2, encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384, server_port=587, process_time=0.0065s]</p></blockquote></div><p>I need log lines above this one.<br />Plugin &quot;amavisd_wblist&quot; works in RCPT state, but you didn&#039;t paste any log lines of RCPT state.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 15 Jun 2022 15:18:07 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83442.html#p83442</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83405.html#p83405</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Postfix config is ok.</p><p>Do you have a personal Gmail account? try to block your personal Gmail account with the &quot;/opt/iredapd/tools/wblist_admin.py&quot; script, then send an email from your Gmail account, and show us the full iRedAPD log lines related to this testing email.</p></blockquote></div><p>This is my procedure.<br />First I block my personal gmail address:<br /></p><div class="codebox"><pre><code>$ python3 wblist_admin.py --add --blacklist alec@gmail.com</code></pre></div><p>Then check the blacklist:<br /></p><div class="codebox"><pre><code>$ python3 wblist_admin.py --list --blacklist
  * Establishing SQL connection.
  * List all inbound blacklist for account: @.
  alec@gmail.com</code></pre></div><p>Then I send a test mail from my gmail account to the iRedMail server and I receive it in the inbox.<br />I received the mail at 16:28 10 June 2022.</p><p>Now log files:</p><p>a)&nbsp; /var/log/iredapd/iredapd.log <br /></p><div class="codebox"><pre><code>Jun 10 14:08:17 mx iredapd [192.16.11.114] RCPT, person1@company.com =&gt; person2@gmail.com, DUNNO [sasl_username=person1@company.com, sender=person1@company.com, client_name=unknown, reverse_client_name=person1, helo=smtpclient.apple, encryption_protocol=TLSv1.2, encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384, server_port=587, process_time=0.0065s]
Jun 10 14:08:17 mx iredapd [policy] request=smtpd_access_policy
Jun 10 14:08:17 mx iredapd [policy] protocol_state=END-OF-MESSAGE
Jun 10 14:08:17 mx iredapd [policy] protocol_name=ESMTP
Jun 10 14:08:17 mx iredapd [policy] client_address=192.16.11.114
Jun 10 14:08:17 mx iredapd [policy] client_name=unknown
Jun 10 14:08:17 mx iredapd [policy] client_port=60421
Jun 10 14:08:17 mx iredapd [policy] reverse_client_name=person1
Jun 10 14:08:17 mx iredapd [policy] server_address=192.16.11.247
Jun 10 14:08:17 mx iredapd [policy] server_port=587
Jun 10 14:08:17 mx iredapd [policy] helo_name=smtpclient.apple
Jun 10 14:08:17 mx iredapd [policy] sender=person1@company.com
Jun 10 14:08:17 mx iredapd [policy] recipient=
Jun 10 14:08:17 mx iredapd [policy] recipient_count=5
Jun 10 14:08:17 mx iredapd [policy] queue_id=4LKN8x0TLzzltv5
Jun 10 14:08:17 mx iredapd [policy] instance=2b29d.62a35050.e907a.0
Jun 10 14:08:17 mx iredapd [policy] size=15184
Jun 10 14:08:17 mx iredapd [policy] etrn_domain=
Jun 10 14:08:17 mx iredapd [policy] stress=
Jun 10 14:08:17 mx iredapd [policy] sasl_method=PLAIN
Jun 10 14:08:17 mx iredapd [policy] sasl_username=person1@company.com
Jun 10 14:08:17 mx iredapd [policy] sasl_sender=
Jun 10 14:08:17 mx iredapd [policy] ccert_subject=
Jun 10 14:08:17 mx iredapd [policy] ccert_issuer=
Jun 10 14:08:17 mx iredapd [policy] ccert_fingerprint=
Jun 10 14:08:17 mx iredapd [policy] ccert_pubkey_fingerprint=
Jun 10 14:08:17 mx iredapd [policy] encryption_protocol=TLSv1.2
Jun 10 14:08:17 mx iredapd [policy] encryption_cipher=ECDHE-RSA-AES256-GCM-SHA384
Jun 10 14:08:17 mx iredapd [policy] encryption_keysize=256
Jun 10 14:08:17 mx iredapd [policy] policy_context=
Jun 10 14:08:17 mx iredapd Skip plugin: reject_null_sender (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: wblist_rdns (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: reject_sender_login_mismatch (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: greylisting (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd --&gt; Apply plugin: throttle
Jun 10 14:08:17 mx iredapd Found sasl_username, consider this sender as an internal sender.
Jun 10 14:08:17 mx iredapd Check sender throttling.
Jun 10 14:08:17 mx iredapd [SQL] query target domain of given alias domain (company.com): #012&quot;SELECT alias_domain.target_domain\n               FROM alias_domain, domain\n              WHERE domain.active=1\n                    AND domain.domain=alias_domain.target_domain\n                    AND alias_domain.alias_domain=&#039;company.com&#039;\n              LIMIT 1&quot;
Jun 10 14:08:17 mx iredapd [SQL] query result: None
Jun 10 14:08:17 mx iredapd [SQL] Query throttle setting: #012        SELECT id, account, priority, period, max_msgs, max_quota, max_rcpts, msg_size#012          FROM throttle#012         WHERE kind=&#039;outbound&#039; AND account IN (&#039;192.16.11.114&#039;, &#039;@ip&#039;, &#039;person1@company.com&#039;, &#039;@company.com&#039;, &#039;@.&#039;, &#039;@.company.com&#039;, &#039;@.it&#039;, &#039;192.16.11.*&#039;, &#039;192.168.*.114&#039;)#012         ORDER BY priority DESC#012         
Jun 10 14:08:17 mx iredapd [SQL] Query result: []
Jun 10 14:08:17 mx iredapd No sender throttle setting.
Jun 10 14:08:17 mx iredapd Bypass recipient throttling (found sasl_username).
Jun 10 14:08:17 mx iredapd &lt;-- Result: DUNNO
Jun 10 14:08:17 mx iredapd Skip plugin: sql_alias_access_policy (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Skip plugin: amavisd_wblist (protocol_state != END-OF-MESSAGE)
Jun 10 14:08:17 mx iredapd Session ended.
Jun 10 14:08:17 mx iredapd [192.16.11.114] END-OF-MESSAGE, person1@company.com =&gt; , DUNNO [recipient_count=5, size=15184, process_time=0.0051s]
Jun 10 14:08:17 mx iredapd [SQL] Insert into smtp_sessions: #012        INSERT INTO smtp_sessions (#012            time, time_num,#012            action, reason, instance,#012            client_address, client_name, reverse_client_name, helo_name,#012            encryption_protocol, encryption_cipher,#012            server_address, server_port,#012            sender, sender_domain,#012            sasl_username, sasl_domain,#012            recipient, recipient_domain)#012        VALUES (#012            &#039;2022-06-10 14:08:17&#039;, 1654870097,#012            &#039;DUNNO&#039;, &#039;&#039;, &#039;2b29d.62a35050.e907a.0&#039;,#012            &#039;192.16.11.114&#039;, &#039;unknown&#039;, &#039;person1&#039;, &#039;smtpclient.apple&#039;,#012            &#039;TLSv1.2&#039;, &#039;ECDHE-RSA-AES256-GCM-SHA384&#039;,#012            &#039;192.16.11.247&#039;, &#039;587&#039;,#012            &#039;person1@company.com&#039;, &#039;company.com&#039;,#012            &#039;person1@company.com&#039;, &#039;company.com&#039;,#012            &#039;&#039;, &#039;&#039;)#012    </code></pre></div><p>But as you can see the last entry in the log is at 2:08pm (14:08) and I sent the message at 4:28pm (16:28).<br />&quot;person1&quot; and &quot;person2&quot; are other addresses of trusted people, they aren&#039;t part of the test.</p><p>====================================================================================</p><p>b)&nbsp; /var/log/iredapd/iredapd.log.1<br /></p><div class="codebox"><pre><code>Jun  4 22:02:25 mx iredapd [SPF] Error while querying DNS SPF record zoho.com: NoNameservers(&#039;All nameservers failed to answer the query zoho.com. IN TXT: Server 127.0.0.53 UDP port 53 answered SERVFAIL&#039;)
Jun  4 22:02:25 mx iredapd [SPF][zoho.com] MX: smtpin.zoho.com
Jun  4 22:02:25 mx iredapd [SPF][zoho.com] MX: smtpin2.zoho.com
Jun  4 22:02:25 mx iredapd [SPF][zoho.com] MX: smtpin3.zoho.com
Jun  4 22:02:25 mx iredapd [DNS][A] smtpin.zoho.com -&gt; 136.143.191.23
Jun  4 22:02:25 mx iredapd [DNS][A] smtpin3.zoho.com -&gt; 136.143.191.23
Jun  4 22:02:25 mx iredapd [DNS][A] smtpin2.zoho.com -&gt; 136.143.183.23
Jun  5 00:11:18 mx iredapd Starting iRedAPD (version: 5.0.4, backend: pgsql), listening on 127.0.0.1:7777.
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 100): reject_null_sender
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 99): wblist_rdns
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 90): reject_sender_login_mismatch
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 80): greylisting
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 60): throttle
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 50): sql_alias_access_policy
Jun  5 00:11:18 mx iredapd Loading plugin (priority: 40): amavisd_wblist
Jun  5 00:11:18 mx iredapd Starting SRS sender rewriting channel, listening on 127.0.0.1:7778
Jun  5 00:11:18 mx iredapd Starting SRS recipient rewriting channel, listening on 127.0.0.1:7779</code></pre></div><p>But even here the last entry of the log is from 5 days ago.</p><p>===================================================================================</p><p>As you can see, nothing about the email that I sent from alec@gmail.com has been logged.</p>]]></description>
			<author><![CDATA[null@example.com (alec)]]></author>
			<pubDate>Fri, 10 Jun 2022 15:07:27 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83405.html#p83405</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83372.html#p83372</link>
			<description><![CDATA[<p>Postfix config is ok.</p><p>Do you have a personal Gmail account? try to block your personal Gmail account with the &quot;/opt/iredapd/tools/wblist_admin.py&quot; script, then send an email from your Gmail account, and show us the full iRedAPD log lines related to this testing email.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 07 Jun 2022 08:17:48 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83372.html#p83372</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83334.html#p83334</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>In post #7, you showed us the output of command &quot;postconf smtpd_recipient_restrictions smtpd_end_of_data_restrictions&quot;, according to the pasted content, iRedAPD is integrated in Postfix.</p><p>Could you please show us the original output again?<br /></p><div class="codebox"><pre><code>postconf smtpd_recipient_restrictions smtpd_end_of_data_restrictions</code></pre></div></blockquote></div><p>Yes, sure. The output is the following:</p><div class="codebox"><pre><code>smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_unlisted_recipient check_policy_service inet:127.0.0.1:7777 permit_mynetworks permit_sasl_authenticated reject_unauth_destination check_policy_service inet:127.0.0.1:12340
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777</code></pre></div><p>Is there anything else that I can check? Logs, config?</p><p>Thanks in advance for your patience</p>]]></description>
			<author><![CDATA[null@example.com (alec)]]></author>
			<pubDate>Tue, 31 May 2022 06:46:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83334.html#p83334</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83332.html#p83332</link>
			<description><![CDATA[<p>In post #7, you showed us the output of command &quot;postconf smtpd_recipient_restrictions smtpd_end_of_data_restrictions&quot;, according to the pasted content, iRedAPD is integrated in Postfix.</p><p>Could you please show us the original output again?<br /></p><div class="codebox"><pre><code>postconf smtpd_recipient_restrictions smtpd_end_of_data_restrictions</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 31 May 2022 01:26:55 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83332.html#p83332</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83319.html#p83319</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Please show the full log lines related to this testing email.</p></blockquote></div><p>I don&#039;t have them. When I send the email, nothing is logged in /var/log/iredapd.log. The emails are coming through without leaving anything in the log file.</p><p>Maybe iredapd and postfix aren&#039;t communicating at all. </p><p>I checked the daemon, and it seems working fine.</p><div class="codebox"><pre><code>&amp; sudo systemctl status iredapd.service 
● iredapd.service - iRedAPD (A simple posfix policy server)
     Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-05-29 22:36:47 UTC; 14h ago
    Process: 1024 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=0/SUCCESS)
   Main PID: 1597 (python3)
      Tasks: 1 (limit: 14267)
     Memory: 34.2M
     CGroup: /system.slice/iredapd.service
             └─1597 /usr/bin/python3 /opt/iredapd/iredapd.py</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (alec)]]></author>
			<pubDate>Mon, 30 May 2022 12:57:14 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83319.html#p83319</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83316.html#p83316</link>
			<description><![CDATA[<p>Please show the full log lines related to this testing email.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 30 May 2022 11:19:55 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83316.html#p83316</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83172.html#p83172</link>
			<description><![CDATA[<p>I have already enabled debug mode in /opt/iredapd/settings.py :<br /></p><div class="codebox"><pre><code># Log level: info, debug.
log_level = &#039;debug&#039;

# Backend: ldap, mysql, pgsql.
backend = &quot;pgsql&quot;

# Enabled plugins.
plugins = [&quot;reject_null_sender&quot;, &quot;wblist_rdns&quot;, &quot;reject_sender_login_mismatch&quot;, &quot;greylisting&quot;, &quot;throttle&quot;, &quot;amavisd_wblist&quot;, &quot;sql_alias_access_policy&quot;]</code></pre></div><p>Then restarted iredapd.service and postfix.service.<br />I also checked my blocked accounts with:<br /></p><div class="codebox"><pre><code>python3 wblist_admin.py --list --blacklist</code></pre></div><p>and I sent a mail with my blocked account, and this shows up:<br /></p><div class="codebox"><pre><code>May 16 13:54:30 mx iredapd [SQL] Query result: []
May 16 13:54:30 mx iredapd No sender throttle setting.
May 16 13:54:30 mx iredapd Bypass recipient throttling (found sasl_username).
May 16 13:54:30 mx iredapd &lt;-- Result: DUNNO
May 16 13:54:30 mx iredapd Skip plugin: sql_alias_access_policy (protocol_state != END-OF-MESSAGE)
May 16 13:54:30 mx iredapd Skip plugin: amavisd_wblist (protocol_state != END-OF-MESSAGE)
May 16 13:54:30 mx iredapd Session ended.</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (alec)]]></author>
			<pubDate>Mon, 16 May 2022 14:00:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83172.html#p83172</guid>
		</item>
		<item>
			<title><![CDATA[Re: amavisd_wblist Not Blocking]]></title>
			<link>https://forum.iredmail.org/post83162.html#p83162</link>
			<description><![CDATA[<p>Could you please turn on debug mode in iRedAPD, then try to reproduce the issue, and copy relevant iRedAPD log lines here for troubleshooting?<br />FYI: <a href="https://docs.iredmail.org/debug.iredapd.html">https://docs.iredmail.org/debug.iredapd.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 16 May 2022 09:16:39 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83162.html#p83162</guid>
		</item>
	</channel>
</rss>
