Exclusion by email address

Amavis issues go here

Moderators: Admins, Forum Moderator

Exclusion by email address

Postby Jimmy » Fri Jul 14, 2006 1:14 pm

Hi all, I've recently set up a virtual users and domains email server with postfix, courier, mysql, amvisd-new, spamassassin and clamav with sasl auth over tls and after all the mess of setting all it up to run pretty tight have run into some whiners that are throwing a hissy that their emails are being filtered (HOW DARE WE!! lol)and i was wondering if theres a directive for excluding single users emails from filtering via email address, i.e. to bypass amavisd/spamassassin/clamav altogether for single email addresses and make postfix simply pass them straight to the maildir without rewriting the subject line. Thanks in advance for any help with this. :)
Peace.
Jimmy
Jimmy
 
Posts: 3
Joined: Fri Jul 14, 2006 12:49 pm
Location: Pocahontas Arkansas

Postby mr88talent » Thu Jul 20, 2006 10:09 am

from:
http://marc.theaimsgroup.com/?l=amavis- ... 106240&w=2
> 3. How do I bypass all checks for specific recipients?

There are a number of ways, it depends on how many you are talking
about. If you are talking about just a few, you can simply list them
in amavisd.conf:

Code: Select all
@bypass_virus_checks_maps  = ( [qw( usr@example.com usr@example.org )] );
@virus_lovers_maps         = ( [qw( usr@example.com usr@example.org )] );

@bypass_spam_checks_maps   = ( [qw( usr@example.com usr@example.org )] );
@spam_lovers_maps          = ( [qw( usr@example.com usr@example.org )] );

@bypass_banned_checks_maps = ( [qw( usr@example.com usr@example.org )] );
@banned_files_lovers_maps  = ( [qw( usr@example.com usr@example.org )] );

@bypass_header_checks_maps = ( [qw( usr@example.com usr@example.org )] );
@bad_header_lovers_maps    = ( [qw( usr@example.com usr@example.org )] );

When you use @bypass for someone, also set a corresponding @lovers
for them to insure delivery.

Since in this example every setting is identical (this is not always
the case - you might want to mix and match), you could abbreviate it
like this: First, populate one variable:
Code: Select all
@bad_header_lovers_maps = ( [qw( usr@example.com usr@example.org )] );

Then assign the same data to the rest:
Code: Select all
@bypass_virus_checks_maps = virus_lovers_maps = @bypass_spam_checks_maps = @spam_lovers_maps = @bypass_banned_checks_maps = @banned_files_lovers_maps = @bypass_header_checks_maps = @bad_header_lovers_maps


(boy, that's going to wrap)
User avatar
mr88talent
Moderator
 
Posts: 1672
Joined: Tue Mar 08, 2005 4:19 pm
Location: Salt Lake City

Thank you

Postby Jimmy » Fri Jul 28, 2006 3:05 pm

I tried the solution posted and followed up with alot of reading on the referenced sight link but it didnt work for me, when i tried that configuration amavis upon restart threw up a string of errors concerning the _maps variables and for whatever reason(im assuming probably amavisd-new version differences) it just didnt like the syntax at all. Spoke with my boss about it and we wound up deciding not to bother with it any further as the particular customers complaining were a very small minority of email only accounts(5 out of a few thousand) while the rest are all expressing that theyre very happy with the reduction in spam and increased protection against virii. I still wanted to express my gratitude for the reply and attempt to help so thank you very much for your time and reply!!
Peace.
Jimmy
Jimmy
 
Posts: 3
Joined: Fri Jul 14, 2006 12:49 pm
Location: Pocahontas Arkansas

Postby mr88talent » Fri Jul 28, 2006 3:38 pm

I see. Then you are likely using 20030616p10. You would not use *_maps, but instead would use *_acl with the settings a little different.

This, for example:
@bypass_spam_checks_maps = ( [qw( usr@example.com usr@example.org )] );


Would become this:
Code: Select all
@bypass_spam_checks_acl  = qw( usr@example.com usr@example.org );


notice the square brackets and outside perens are no longer there and we are using _acl instead of _maps.

Code: Select all
@bypass_virus_checks_acl  = qw( usr@example.com usr@example.org  );
@virus_lovers_acl         = qw( usr@example.com usr@example.org  );

@bypass_spam_checks_acl   = qw( usr@example.com usr@example.org  );
@spam_lovers_acl          = qw( usr@example.com usr@example.org  );

@bypass_banned_checks_acl = qw( usr@example.com usr@example.org  );
@banned_files_lovers_acl  = qw( usr@example.com usr@example.org  );

@bypass_header_checks_acl = qw( usr@example.com usr@example.org  );
@bad_header_lovers_acl    = qw( usr@example.com usr@example.org  );
User avatar
mr88talent
Moderator
 
Posts: 1672
Joined: Tue Mar 08, 2005 4:19 pm
Location: Salt Lake City

Postby Jimmy » Fri Jul 28, 2006 4:16 pm

Ahh yup yup, thats the version(sorry bout that i should have included the version in the original post) I may try adding that soon time permitting and maybe then everybodyll be happy campers. Again thanks a million, you rock dude.
Peace.
Jimmy
Jimmy
 
Posts: 3
Joined: Fri Jul 14, 2006 12:49 pm
Location: Pocahontas Arkansas

Postby mr88talent » Thu Aug 03, 2006 10:26 am

I forgot to place an end of statement semicolon on this statement:

Code: Select all
@bypass_virus_checks_maps = virus_lovers_maps = @bypass_spam_checks_maps = @spam_lovers_maps = @bypass_banned_checks_maps = @banned_files_lovers_maps = @bypass_header_checks_maps = @bad_header_lovers_maps;
User avatar
mr88talent
Moderator
 
Posts: 1672
Joined: Tue Mar 08, 2005 4:19 pm
Location: Salt Lake City


Return to Amavisd-new

Who is online

Users browsing this forum: No registered users and 0 guests

cron