<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — [SOLVED] How to bypass amavisd for some senders?]]></title>
		<link>https://forum.iredmail.org/topic4681-solved-how-to-bypass-amavisd-for-some-senders.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic4681.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] How to bypass amavisd for some senders?.]]></description>
		<lastBuildDate>Fri, 09 Aug 2013 08:02:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post23806.html#p23806</link>
			<description><![CDATA[<p>Hi answerman!<br />Sorry for dumb question. <br />In which part of the amavisd.conf should be inserted your new section?<br />I did not find similar code in the default conf.</p>]]></description>
			<author><![CDATA[null@example.com (ilmarsk)]]></author>
			<pubDate>Fri, 09 Aug 2013 08:02:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post23806.html#p23806</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21525.html#p21525</link>
			<description><![CDATA[<p>Looking further into it, it looks as though I can do it with soft-blacklisting.&nbsp; Just give the sender a nice high score.</p>]]></description>
			<author><![CDATA[null@example.com (answerman)]]></author>
			<pubDate>Wed, 17 Apr 2013 22:10:50 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21525.html#p21525</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21524.html#p21524</link>
			<description><![CDATA[<p>Was just thinking... a client has asked me to block any email coming to him from a specific outside address.&nbsp; &nbsp;Could we do something like this in reverse: a list of blacklisted senders that would bounce?</p>]]></description>
			<author><![CDATA[null@example.com (answerman)]]></author>
			<pubDate>Wed, 17 Apr 2013 22:05:10 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21524.html#p21524</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21399.html#p21399</link>
			<description><![CDATA[<div class="quotebox"><cite>answerman wrote:</cite><blockquote><p>Well, I feel dumb.&nbsp; Added a newline at the end and that was all it took.&nbsp; &nbsp;Thanks for your help!</p></blockquote></div><p>Happy to have been useful, you&#039;re welcome <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Albux)]]></author>
			<pubDate>Tue, 09 Apr 2013 07:28:55 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21399.html#p21399</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21393.html#p21393</link>
			<description><![CDATA[<div class="quotebox"><cite>Albux wrote:</cite><blockquote><p>The only thing that comes to my mind is to verify if your whitelist file is correctly written.</p><p>Maybe you have some invisible characters or some incorrect charset (it depends by which editor you used to write your file)?<br />Or maybe the last line of your text file is not terminated with a newline? This happens pretty often...</p><p>try to delete your whitelist file, rewrite it with an editor like vim or nano and restart amavisd.</p><p>Let me know <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>Well, I feel dumb.&nbsp; Added a newline at the end and that was all it took.&nbsp; &nbsp;Thanks for your help!</p>]]></description>
			<author><![CDATA[null@example.com (answerman)]]></author>
			<pubDate>Mon, 08 Apr 2013 23:24:28 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21393.html#p21393</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21321.html#p21321</link>
			<description><![CDATA[<p>The only thing that comes to my mind is to verify if your whitelist file is correctly written.</p><p>Maybe you have some invisible characters or some incorrect charset (it depends by which editor you used to write your file)?<br />Or maybe the last line of your text file is not terminated with a newline? This happens pretty often...</p><p>try to delete your whitelist file, rewrite it with an editor like vim or nano and restart amavisd.</p><p>Let me know <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Albux)]]></author>
			<pubDate>Fri, 05 Apr 2013 08:21:56 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21321.html#p21321</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21315.html#p21315</link>
			<description><![CDATA[<p>- iRedMail version: 0.7.3<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySQL<br />- Linux/BSD distribution name and version: CentOS 5.6 x64</p><p>Error:<br />Starting Mail Virus Scanner (amavisd): Apr&nbsp; 4 16:07:38.066 xxxxxxxx.com [25471]: Error reading from /etc/amavisd/whitelist: Bad file descriptor</p><br /><p>amavisd.conf is located in /etc/, and my whitelist file is located in /etc/amavisd/.&nbsp; The path to the file is correct.&nbsp; amavisd starts correctly even with the error, but it&#039;s not seeing the whitelist file for some reason (there are only two email addresses in the whitelist file for test purposes).</p>]]></description>
			<author><![CDATA[null@example.com (answerman)]]></author>
			<pubDate>Thu, 04 Apr 2013 21:08:23 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21315.html#p21315</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21311.html#p21311</link>
			<description><![CDATA[<div class="quotebox"><cite>answerman wrote:</cite><blockquote><p>I tried this and got an bad file descriptor error on restarting amavisd (on my system, amavisd.conf is in /etc).&nbsp; The path to my whitelist file is correct.&nbsp; &nbsp;I have the file permissions set the same on both the whitelist file and amavisd.conf (user root and group amavis).&nbsp; Any ideas?</p></blockquote></div><p>Which system are you using?<br />Could you post the exact error?</p>]]></description>
			<author><![CDATA[null@example.com (Albux)]]></author>
			<pubDate>Thu, 04 Apr 2013 20:31:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21311.html#p21311</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21309.html#p21309</link>
			<description><![CDATA[<p>I tried this and got an bad file descriptor error on restarting amavisd (on my system, amavisd.conf is in /etc).&nbsp; The path to my whitelist file is correct.&nbsp; &nbsp;I have the file permissions set the same on both the whitelist file and amavisd.conf (user root and group amavis).&nbsp; Any ideas?</p>]]></description>
			<author><![CDATA[null@example.com (answerman)]]></author>
			<pubDate>Thu, 04 Apr 2013 20:17:16 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21309.html#p21309</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21229.html#p21229</link>
			<description><![CDATA[<p>Hello Zhang,</p><p>I&#039;ve solved like this:</p><p><strong>1) I created the file /etc/amavisd/whitelist</strong><br />where I inserted the addresses of the senders that I wanted to whitelist, one per line.<br />it works also for whole domains (but without the @)<br />Example:<br /></p><div class="codebox"><pre><code>user1@example.com
user2@example.org
example.net
example.eu</code></pre></div><br /><p><strong>2) in /etc/amavisd/amavisd.conf I decommented AND modified the following section:</strong></p><div class="codebox"><pre><code># This policy will perform virus checks only.
read_hash(\%whitelist_sender, &#039;/etc/amavisd/whitelist&#039;);
@whitelist_sender_maps = (\%whitelist_sender);

$interface_policy{&#039;10026&#039;} = &#039;VIRUSONLY&#039;;
$policy_bank{&#039;VIRUSONLY&#039;} = { # mail from the pickup daemon
    bypass_spam_checks_maps   =&gt; [&#039;@whitelist_sender_maps&#039;],  # don&#039;t spam-check this mail
    bypass_banned_checks_maps =&gt; [&#039;@whitelist_sender_maps&#039;],  # don&#039;t banned-check this mail
    bypass_header_checks_maps =&gt; [&#039;@whitelist_sender_maps&#039;],  # don&#039;t header-check this mail
};</code></pre></div><p>Checked the logs and the headers of the messages... it works perfectly! <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />The messages are with no score, have the WHITELISTED tag, and get checked for virus. Exactly what I wanted.<br />Delivery time lowered for the whitelisted addresses from 2500-3000ms to roughly 150ms.</p><p>If you want to make this method a quick &quot;How-To&quot; in your doc repository, feel free to use it.</p>]]></description>
			<author><![CDATA[null@example.com (Albux)]]></author>
			<pubDate>Sun, 31 Mar 2013 23:24:49 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21229.html#p21229</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21215.html#p21215</link>
			<description><![CDATA[<p>Maybe you can try Postfix &quot;check_sender_access&quot; in &quot;smtpd_sender_restrictions&quot;?<br />Reference: <a href="http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions">http://www.postfix.org/postconf.5.html# … strictions</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 31 Mar 2013 00:35:12 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21215.html#p21215</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] How to bypass amavisd for some senders?]]></title>
			<link>https://forum.iredmail.org/post21208.html#p21208</link>
			<description><![CDATA[<p>==== Required information ====<br />- iRedMail version: 0.84 <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP (iRedAdmin Pro 1.9.0)<br />- Linux/BSD distribution name and version: CentOS 6.4 x64<br />- Related log if you&#039;re reporting an issue: <br />==== </p><p>Hello,<br />is there a way to completely bypass amavisd when message comes from certain domains or IPs ?<br />the &quot;system&quot; whitelist in iRedAdmin looks like it&#039;s working only to bypass greylist, and there is no per-domain whitelist.</p><p>The only way I&#039;ve found is to use the whitelist in the per-user settings... but we have way too many users!</p><p>Even if it&#039;s not possible to do it from iRedAdmin-Pro, which files do I have to modify for this result? amavisd.conf ?</p><p>Thank you <img src="https://forum.iredmail.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Albux)]]></author>
			<pubDate>Sat, 30 Mar 2013 17:52:42 +0000</pubDate>
			<guid>https://forum.iredmail.org/post21208.html#p21208</guid>
		</item>
	</channel>
</rss>
