Ryan wrote:

> We currently use Amavisd-new 2.3.3 with per-recipient whitelisting in SQL. 
> What I would like to do is to be able to have senders that are whitelisted in 
> SQL for a user to bypass the banned files check. Currently whitelisting only 
> bypasses the spam check. I think I could create a duplicate set of polices 
> that have bypass_banned_check enabled for a user, however that would open the 
> user to all banned files, and I was hoping to bypass the banned check on a 
> per 
> sender+recipient basis if possible.

This does not solve the issue of your desire to integrate this into
SQL, but it might at least get the immediate problem solved.

The recipient's policy should have a NULL entry for banned_files_lover.

In main.cf:

smtpd_recipient_restrictions =
   permit_mynetworks,
   reject_unauth_destination,
   check_sender_access hash:/etc/postfix/allow_banned

contents of /etc/postfix/allow_banned:
[EMAIL PROTECTED] FILTER smtp-amavis:[127.0.0.1]:10026

Create policy bank in amavisd.conf:

$inet_socket_port = [10024,10026];

$interface_policy{'10026'} = 'ALLOWBANNED';

$policy_bank{'ALLOWBANNED'} = {
 banned_files_lovers_maps => [[qw( [EMAIL PROTECTED] )]],
};


You can add senders and recipients as needed but there is a limit.
You can also break it up by using additional policy banks if needed.
Of course the problem as always is sender addresses can be spoofed.
It can even be more dangerous in this case because the recipient(s)
will always trust what they get from this and other listed senders.
You can use a more complex method that also checks the network
address(es) from which the mail originates:

http://marc.theaimsgroup.com/?l=amavis-user&m=113364463710590&w=2

Gary V



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to