bypass spam check for local system mail
Indunil Jayasooriya
indunil75 at gmail.com
Thu Sep 22 04:51:07 CEST 2016
>
> but somehow amavis is ignoring the bypass_header_checks_maps for
> $policy_bank{'MYNETS'}
>
> anymore ideas to get things working would be awesome ;)
>
>
>
>> do you have these lines
$mydomain = 'yourdomain.com'; # a convenient default for other settings
$notify_method = 'smtp:[127.0.0.1]:10025';
$forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
in addition to that , if you want to bypass spam checks based on sender
you can add this to amavisd.conf file
@whitelist_sender_maps = read_hash("$MYHOME/white.lst");
in white.lst file , you can add your domain and other trusted domains line
by line.
you can have black.lst as well.
@blacklist_sender_maps = read_hash("$MYHOME/black.lst");
Anther example. ( I have NOT DONE it. I saw this in the internet.
source. - http://www.iredmail.org/forum/topic4681-iredmail-support-
solved-how-to-bypass-amavisd-for-some-senders.html
*1) I created the file /etc/amavisd/whitelist*
where I inserted the addresses of the senders that I wanted to whitelist,
one per line.
it works also for whole domains (but without the @)
Example:
user1 at example.comuser2@example.orgexample.netexample.eu
*2) in /etc/amavisd/amavisd.conf I decommented AND modified the following
section:*
# This policy will perform virus checks only.
read_hash(\%whitelist_sender, '/etc/amavisd/whitelist');
@whitelist_sender_maps = (\%whitelist_sender);
$interface_policy{'10026'} = 'VIRUSONLY';
$policy_bank{'VIRUSONLY'} = { # mail from the pickup daemon
bypass_spam_checks_maps => ['@whitelist_sender_maps'], # don't
spam-check this mail
bypass_banned_checks_maps => ['@whitelist_sender_maps'], # don't
banned-check this mail
bypass_header_checks_maps => ['@whitelist_sender_maps'], # don't
header-check this mail
};
>
>>
>>
>>
>>
>> --
>> cat /etc/motd
>>
>> Thank you
>> Indunil Jayasooriya
>> http://www.theravadanet.net/
>> http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala
>> Fonts
>>
>>
>
--
cat /etc/motd
Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala
Fonts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20160922/1abf8d87/attachment.html>
More information about the amavis-users
mailing list