Henrik Krohns wrote:
> On Sat, Aug 26, 2006 at 12:32:58PM +0200, Anders Norrbring wrote:
>   
>> I've tried to set up a looging av messages from amavis-new into a
>> separate file, but that fle doesn't get created at all.
>> Can someone please advice?
>>
>> syslog-ng.conf:
>>
>> filter f_mailscan   { level(scan)      and facility(mail); };
>>
>> destination mailscan { file("/var/log/mail.scan"); };
>> log { source(src); filter(f_mailscan); destination(mailscan); };
>>
>>
>> amavis.conf:
>>
>> $log_level          = 6;
>> $LOGFILE            = undef;
>> $DO_SYSLOG          = 1;
>> $SYSLOG_LEVEL       = 'mail.scan';
>>     
>
> Obviously "scan" is not a valid syslog level. See man syslog(3).
>
> Cheers,
> Henrik
>
>
>   


amavisd can already do this if you want it to.  Search the config file for:
#$LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)


HTH.


df.



-------------------------------------------------------------------------
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/

Reply via email to