Mailscanner + spamassassin + clamav package
-
The clean install on the VM is working perfectly. I have redirected all SMTP traffic through the new VM for the time being and will rebuild the firewall on the weekend (love this "out of hours" stuff ;)).
Thanks for your help, fast responses and most of all the combination "mailscanner + spamassassin + clamav" package. Brilliant work!
-
I've pushed some updates to improve boot process, and checks to perl version and config files.
The clean install now, select all default options.
att,
Marcello Coutinho -
marcelloc ,in order use mailscanner package is checking on Postfix Forwarder>>>Antispam>>>Use Third part antispam box enough?any another settings?
-
I use it with Message Hold mode= manual using acls
and I put /^from:/ HOLD on header acls
-
Hi,
I would like to disable the change on email subject when mailscanner "disarm" an email.
So I modified Mailscanner.conf and the line "Disarmed Modify Subject = no"
but it comes back to its previous settings "Disarmed Modify Subject = start" on reboot.What can I do ?
Thanks
-
@ics:
What can I do ?
change /usr/local/pkg/mailscanner.conf.template and apply changes.
att,
Marcello Coutinho -
change /usr/local/pkg/mailscanner.conf.template and apply changes.
Thanks for the reply.
This file doesn't exist so I modified the file /usr/local/pkg/mailscanner.inc
And it seems to work :) -
Will be there when you update/upgrade the package. :)
-
Will be there when you update/upgrade the package. :)
And about updates, is there a procedure to update packages ?
Or I just need to click on "Reinstall this package" in the package manager ?
-
Normally, just update.
A backup first is always a good idea. :)
-
Hello Marcello
i just installed postfix and mailscanner on my pre production pf box,and getting this error on my system log
My pf version:
2.0.1-RELEASE (amd64)
built on Mon Dec 12 18:16:13 EST 2011
FreeBSD 8.1-RELEASE-p6Jun 7 16:32:39 MailScanner[15521]: Syntax error in line 145, value "" for allowscripttags is not one of allowed values "yes","disarm","no"
Jun 7 16:32:39 MailScanner[15521]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
Jun 7 16:32:39 MailScanner[15521]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
Jun 7 16:32:39 MailScanner[15521]: MailScanner E-Mail Virus Scanner version 4.83.5 starting…
Jun 7 16:32:39 mailscanner: Process did not exit cleanly, returned 1 with signal 0
Jun 7 16:32:39 MailScanner[3723]: ClamAV Module ERROR:: Could not load databases from /var/db/clamav
Jun 7 16:32:39 MailScanner[3723]: I have found clamavmodule scanners installed, and will use them all by default.
Jun 7 16:32:34 MailScanner[8485]: Enabling SpamAssassin auto-whitelist functionality…
Jun 7 16:32:34 MailScanner[8485]: Connected to SpamAssassin cache database
Jun 7 16:32:34 MailScanner[8485]: Using SpamAssassin results cache -
Your antivirus is up to date ?
freshclam –versionclamav is not automatically updated, you have configure your crontab.
To update manually :
/usr/local/bin/freshclam -
/usr/local/bin/freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).freshclam –version
ClamAV 0.97.3 -
/usr/local/bin/sa-update -> this one too ;)
-
sa-update
/usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.3/BSDPAN /usr/local/lib/perl5/site_perl/5.12.3/mach /usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach /usr/local/lib/perl5/5.12.3) at /usr/local/bin/sa-update line 80.
BEGIN failed–compilation aborted at /usr/local/bin/sa-update line 80. -
sa-update
/usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.3/BSDPAN /usr/local/lib/perl5/site_perl/5.12.3/mach /usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach /usr/local/lib/perl5/5.12.3) at /usr/local/bin/sa-update line 80.
BEGIN failed–compilation aborted at /usr/local/bin/sa-update line 80.Are you using the latest mailscanner package version?
-
mailscanner-dev Services Package Info 4.83.5 pkg v.0.2.1
-
Clamd::ERROR:: UNKNOWN CLAMD RETURN ./lstat() failed: Permission denied. ERROR :: /var/spool/MailScanner/incoming
Is anyone seeing this error in the /var/log/maillog. It's obviously a permissions error, but I can not figure out how to get rid of it.
the /var/spool/MailScanner/ is created by postfix. I tried adding clamav to the postfix group as well as www and wheel the error still occurs.
-
clamd should be running with postfix user.
Try to apply maiscanner config and check in /usr/local/etc/clamd.conf what user is configured.
att,
Marcello Coutinho -
Multiple installs all installed
postfix->mailscanner->dansguardian
I check them all all have
Run as another user (clamd must be started by root for this option to work)
Default: don't drop privileges
User clamav
Tried save mailscanner configuration and enabling and disabling the daemon. It appears that the program is not updating the clamd.conf at all.
Did a new clean install -postfix-mailscanner-dansguardian. Saved the mailscanner config and checked the clamd.conf "clamav" was still the user.
Manually edited the clamd.conf and changed the user from "clamav" to "postfix" reboot and everthing is working properly.