Peter wrote:
> I put $DO_SYSLOG = 1 and now I see a lot more logging including the
> subject editing stuff. However, at the same time I added
> $sa_spam_modifies_subj = 1;
> $sa_spam_subject_tag = '*** SPAM *** ';
> to my config file so I'm not sure what made the difference although for
> sure those two lines did not create all the extra SQL logging I'm now
> seeing. Just to be sure I went back and took the two lines out again.
You are right, these two $sa_spam lines have nothing to do with the
amount of SQL log detail.
> Anyway, I noticed that my log messages were showing the tag without the
> whitespace so it appears to be strictly a matter of the DO_SYSLOG
> variable.
If you are referring to the trailing space after '***SPAM*** '
I expect because you have the text ***SPAM*** in your
policy.spam_subject_tag and policy.spam_subject_tag2 that, as I just
found out, the trailing space is trimmed off when using MySQL version 4.1
or older. I think the fix would be to put these two fields back to
NULL in that particular policy and then amavisd-new would use the
string in $sa_spam_subject_tag instead (with the trailing space
intact).
> Isn't there any way to achieve the same logging with its value
> being '0'?
You mean DO_SYSLOG = 0; ?
If you set DO_SYSLOG = 0; then amavisd-new will log to a file. I think
the file would (should?) be just as detailed. It is best to define the
file in amavisd.conf and also make sure your amavisd-new user can write
to the file (chown it to your amavisd-new user/group). I'm not sure,
but if the file does not exist, you may have to touch it first.
$LOGFILE = "$MYHOME/amavis.log";
Maybe this *was* working this way when you had DO_SYSLOG = 0; but you
were looking in the wrong log file? Or maybe you *were* looking in the
right place, but the detail was not there. If that is the case, I have
no answer.
> I didn't have any explicit line for syslog log level but I
> explicitly set it at 'mail.info' with no change.
When logging at level 5, I have noticed it appears to make no
difference on some systems, but on others it does. I don't doubt
it depends on settings in /etc/syslog.conf.
> --
> Peter
Mark,
BTW amavisd.conf-sample says:
#$SYSLOG_LEVEL = 'user.info'; # (facility.priority, default 'mail.info')
but in amavisd:
$SYSLOG_LEVEL = 'mail.debug';
Gary V
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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/