Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[AMaViS-user] Adding sender client's IP address to whitelist

1,832 views
Skip to first unread message

Eddy Beliveau

unread,
Jul 31, 2006, 2:29:51 PM7/31/06
to
Hi!

I'm using amavisd-new 2.4.2 and it work perfectly. Thanks :-)

I want to add some client IP address to my whitelist
but cannot find the way to do it

I know how to add the sender's email address but this is not what I want.
I want to add the sender's server ip address to some whitelist so it won't be flagged by
spamassassin 3.1.3

Can you help ?

Thanks,
Eddy


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Michael Scheidell

unread,
Jul 31, 2006, 3:49:30 PM7/31/06
to
> -----Original Message-----
> From: amavis-us...@lists.sourceforge.net
> [mailto:amavis-us...@lists.sourceforge.net] On Behalf
> Of Eddy Beliveau
> Sent: Monday, July 31, 2006 2:28 PM
> To: amavi...@lists.sourceforge.net
> Subject: [AMaViS-user] Adding sender client's IP address to whitelist
>
> Hi!
>
> I'm using amavisd-new 2.4.2 and it work perfectly. Thanks :-)
>
> I want to add some client IP address to my whitelist but
> cannot find the way to do it

Look at policies and addint client's ip addresses to 'local/trusted'
network.
(not a great idea, but it will do what you want to do)

Gary V

unread,
Jul 31, 2006, 4:02:10 PM7/31/06
to
Eddy wrote:

> Hi!

> I'm using amavisd-new 2.4.2 and it work perfectly. Thanks :-)

> I want to add some client IP address to my whitelist
> but cannot find the way to do it

> I know how to add the sender's email address but this is not what I want.


> I want to add the sender's server ip address to some whitelist so it won't be flagged by
> spamassassin 3.1.3

> Can you help ?

> Thanks,
> Eddy
>

Assuming you are using Postfix and a version of amavisd-new
that is not ancient, a policy bank is good for this.

smtpd_client_restrictions =
check_client_access hash:/etc/postfix/amavis_bypass

contents of /etc/postfix/amavis_bypass
(ip address of the client is listed here):
192.168.1.17 FILTER smtp-amavis:[127.0.0.1]:10026

Then in amavisd.conf:

# change existing setting:
$inet_socket_port = [10024, 10026];

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

$policy_bank{'CLIENTBYPASS'} = { # mail originating from trusted clients
bypass_spam_checks_maps => [1], # don't spam-check
bypass_banned_checks_maps => [1], # don't banned-check
final_spam_destiny => D_PASS, # insure spam passes
final_banned_destiny => D_PASS, # insure banned files pass
};

Gary V

Eddy Beliveau

unread,
Aug 1, 2006, 9:00:35 AM8/1/06
to
Hi!

Many thanks to Michael and Gary for the solution,

I'll do it

Cheers,
Eddy

0 new messages