At 11:38 17.08.2006, you wrote:
>MK,
>
> > one of our customers wants us to keep a local copy of in- and outgoing
> > emails for his domain as an "external backup".
> > ...is there a way to do it with amavisd-new?
>
>Find the following section in file amavisd:
>
> $which_section = "aux_quarantine";
># do_quarantine($conn, $msginfo, undef,
># ['archive-files'], 'local:archive/%m');
># do_quarantine($conn, $msginfo, undef,
># ['[EMAIL PROTECTED]'], 'local:all-%m');
># do_quarantine($conn, $msginfo, undef,
># ['sender-quarantine'], 'local:user-%m'
># ) if lookup(0,$sender, ['[EMAIL PROTECTED]','[EMAIL PROTECTED]']);
># section_time($which_section);
>
>and uncomment the last call to do_quarantine, adjusting the list
>of senders whose mail should be quarantined:
>
> do_quarantine($conn, $msginfo, undef,
> ['sender-quarantine'], 'local:user-%m'
> ) if lookup(0,$sender, ['[EMAIL PROTECTED]','[EMAIL PROTECTED]']);
>
>The filename is determined by the following code:
>
> 'sender-quarantine' =>
> sub { my($s) = $MSGINFO->sender;
> $s = substr($s,0,100)."..." if length($s) > 100+3;
> $s =~ tr/[EMAIL PROTECTED]/=/c; $s =~ s/\@/_at_/g;
> $s = untaint($s) if $s =~
> /^(?:[a-zA-Z0-9%=._+-]+)\z/; # untaint
> ($QUARANTINEDIR, "sender-$s-%m.gz"); # suggested file name
> },
>
>You may adjust it, if you need.
thank you very much, Mark.
> Mark
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>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/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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/