Voytek,

> how do I put that into amavisd-release, (other than pasting by
> hand, line by line....)
> (I guess above is a diff-thing that I have seen, but never used before...)

Yes, it's in a 'unified diff' format.
Directly understood by a 'patch' utility:

  patch < p.diff

See: man patch

> oops, my 'spams' have been sent to spam mailbox, are not in Q...
>
> what the best way to requeue them as 'original sender' ?
>
> # amavisd-release pHHuN15T1vpc
> 450 4.5.0 Failure: File /var/virusmails/pHHuN15T1vpc does not exist
>
> cd /var/mail/vhosts/s...@sbt.net.au/cur; ls
> 1265522034.Vfd00I1b8029M35134.sbt.net.au:2,
> 1265522051.Vfd00I1b802aM693709.sbt.net.au:2,S
> 1265807908.Vfd00Ib98004M908865.sbt.net.au:2,S

> OK, this done the trick:
>
> email.pl v0.1 usage:
> email.pl <file> <recipient_address> [sender_address]
>
> does anyone has a script that will pick original sender/receiver from the
> mail file, and, re queue  ?

amavisd-release + amavisd do not support releasing from a mbox or maildir
mailboxes.

Btw, if these mailboxes are directly viewable by users, then you are
misusing a quarantine feature of amavisd. Quarantine entries are not
per-recipient, so you'd be in trouble with multi-recipient messages.
Also there are privacy concerns: a quarantined file lists all envelope
recipients, which is not supposed to be seen by final recipients
(consider Bcc and mailing list messages).

The correct way to deliver to dedicated spam folders in users
mailboxes is to either append address extensions and let MTA reroute
them to dedicated folders, or to base delivery on header fields
such as "X-Spam-Flag: YES". Such approch is compatible with
multi-recipient messages and privacy.


> can I copy actual mail files from /var/mail/vhost/s...@domain mailbox to
> /var/virusmail, and, then use amavid-release on such files ?

If these messages contain prepended header fields X-Envelope-From and
X-Envelope-To-Blocked, then this approach would probably work.

> would I need to rename them ? to the id name ?

Yes, or modify amavisd-release to provide a correct filename
in its AM.PDP request.

  Mark

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
AMaViS-user mailing list
AMaViS-user@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/ 

Reply via email to