On 10/25/07, Eddy Beliveau wrote:
> Hi!
>
> We are utilizing amavisd-new 2.5.2 with great success.  Thanks :-)
>
> Currently, I'm using @whitelist_SENDER_maps manually to bypass some sender 
> email addresses or domains.
> This work correctly.
>
> I noticed that I have a lot of request to add/remove domain names from the 
> same client.
>
> My wishe would be to have a map like @whitelist_CLIENT_maps
> which will contains the ip address of their smtp server
> and to considered that any emails from those ip address to be whitelisted.
>
> Ideally, I would like to use the fqdn instead of the ip address
>
> I was going to add them to @mynetworks but doesn't like it.

If you are using xforward (as shown in the following example) in the
amavis transport, then I think it should work (depending on what you
have the MYNETS policy bank doing)..

smtp-amavis    unix    -    -    -    -    2    smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes

> I prefer to consider @mynetworks as being the list of my own internal servers.

Probably a good idea.

>
> Can it be done ?
> Other solution ?
>
> Thanks,
> Eddy

This is where another policy bank may be used. Assuming you are using Postfix:

smtpd_client_restrictions =
    check_client_access hash:/etc/postfix/amavis_whitelist

example contents of /etc/postfix/amavis_whitelist:
192.168.1.41 FILTER smtp-amavis:[127.0.0.1]:10026

Create a policy bank in amavisd.conf that listens on port 10026:
# change this from the original setting
$inet_socket_port = [10024, 10026];

# add these
$interface_policy{'10026'} = 'WHITELIST';

$policy_bank{'WHITELIST'} = {  # those configured to send mail to port 10026
   bypass_spam_checks_maps   => [1],  # don't spam-check this mail
};

http://www.ijs.si/software/amavisd/amavisd-new-docs.html#pbanks-ex
http://www200.pair.com/mecham/spam/bypassing.html

-- 
Gary V

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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