List Info

Thread: Defining a mailbox as spam-lover?




Defining a mailbox as spam-lover?
country flaguser name
Netherlands
2007-06-21 07:57:22
----------------------------------------------
Debian Etch
Postfix 2.3.8-2+b1
Amavisd-new 1:2.4.2-6.1
----------------------------------------------

Hello,

On our system a mailalias (like infodomain.com) could store
incomming 
email to multiple local mailboxes.
Therefor, i am trying to define a spam-lovers-list using
local mailboxes 
instead of using recipient email addresses.
This way the amavis-quarantine can be disabled on a per
mailbox basis, 
instead of the entire mailalias.

Would something like the following work?

spam_lovers_maps = (
    read_hash("/etc/amavis/spamlovers"),
);

Where /etc/amavis/spamlovers is a newline delimited list of
local 
mailbox-users:

user1
user2
user3
[...]

Any advice would be greatly appreciated.
Fili


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Defining a mailbox as spam-lover?
country flaguser name
United States
2007-06-21 09:43:31
Fili wrote:

> ----------------------------------------------
> Debian Etch
> Postfix 2.3.8-2+b1
> Amavisd-new 1:2.4.2-6.1
> ----------------------------------------------

> Hello,

> On our system a mailalias (like infodomain.com) could store incomming 
> email to multiple local mailboxes.
> Therefor, i am trying to define a spam-lovers-list
using local mailboxes 
> instead of using recipient email addresses.
> This way the amavis-quarantine can be disabled on a per
mailbox basis, 
> instead of the entire mailalias.

Making someone a spam lover will not disable quarantine.
Quarantine is
triggered at kill_level. To prevent quarantine you would
have to raise
kill_level or disable quarantine. If a message scores above
kill_level
for a given spam_lover, one copy goes to quarantine and one
copy goes
to recipient.

> Would something like the following work?

> spam_lovers_maps = (
>     read_hash("/etc/amavis/spamlovers"),
> );

> Where /etc/amavis/spamlovers is a newline delimited
list of local 
> mailbox-users:

> user1
> user2
> user3
> [...]

I believe that format would be:
user1
user2
user3
[...]

http://www.ijs.si/software/amavisd/README.lookups.txt

But if you want to pass the message and disable quarantine,
you could instead use something like this (in 50-user):

spam_kill_level_maps = (
  { 'user1' => 9999,
    'user2' => 9999,
    'user3' => 9999,
    'user4' => 9999,  },
  $sa_kill_level_deflt,   # catchall default
);

I'm not sure how or if you can use read_hash here.

> Any advice would be greatly appreciated.
> Fili

Gary V



------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Defining a mailbox as spam-lover?
country flaguser name
Slovenia
2007-06-21 09:55:53
Fili,

> On our system a mailalias (like infodomain.com) could store incomming
> email to multiple local mailboxes.
> Therefor, i am trying to define a spam-lovers-list
using local mailboxes
> instead of using recipient email addresses.
> This way the amavis-quarantine can be disabled on a per
mailbox basis,
> instead of the entire mailalias.

If you are talking about alias expansion (done by a local
delivery agent),
this happens after content filtering. Content filter has no
idea that
alias expansion will be performed later during delivery, it
only sees
envelope recipient address as it is before alias expansion.

One way to split a message into multiple addresses before a
content filter
is to use virtual alias mapping, which must be done before
content filtering.
This way amavisd would see final addresses instead of a
'role' address.
Note that it is possible to configure Postfix to do virtual
alias
mapping before or after content filtering, or on both.

  Mark

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )