mailscanner can't read files

Insufficient permissions, e.g. in MailScanner.conf ('Run as user', 'Run as group' -- with Sendmail these should not be set). Wrong permissions on incoming mail queue. There are also specific permissions for e.g. ClamAV ('Incoming Work User', 'Incoming Work Group'). Cross-check your MailScanner.conf settings and directory permissions, watch maillog, etc.
 
I don't use Postfix. Like I said, check your queue permissions against the config settings and see if they match.
 
DutchDaemon said:
I don't use Postfix. Like I said, check your queue permissions against the config settings and see if they match.

Done but I still get the same errors. Here it is:
mailx# tail /var/log/maillog

Oct 2 04:18:28 mailx MailScanner[20502]: Could not read file /usr/local/share/MailScanner/reports/en/stored.size.message.txt

Oct 2 04:18:28 mailx MailScanner[20502]: Error in line 1298, file "/usr/local/share/MailScanner/reports/en/stored.size.message.txt" for storedsizemessage does not exist (or can not be read)

Oct 2 04:18:28 mailx MailScanner[20502]: Could not read file /usr/local/share/MailScanner/reports/en/stored.virus.message.txt

Oct 2 04:18:28 mailx MailScanner[20502]: Error in line 1297, file "/usr/local/share/MailScanner/reports/en/stored.virus.message.txt" for storedvirusmessage does not exist (or can not be read)

Oct 2 04:18:28 mailx MailScanner[20502]: Cannot open ruleset file /usr/local/etc/MailScanner/rules/max.message.size.rules, No such file or directory

Oct 2 04:18:28 mailx MailScanner[20502]: Cannot open filename-rules file /usr/local/etc/MailScanner/filename.rules.conf, skipping

Oct 2 04:18:28 mailx MailScanner[20502]: Cannot open filename-rules file /usr/local/etc/MailScanner/archives.filename.rules.conf, skipping

Oct 2 04:18:28 mailx MailScanner[20502]: Cannot open filename-rules file /usr/local/etc/MailScanner/filetype.rules.conf, skipping

Oct 2 04:18:28 mailx MailScanner[20502]: Cannot open filename-rules file /usr/local/etc/MailScanner/archives.filetype.rules.conf, skipping

Oct 2 04:18:28 mailx MailScanner[20502]: Cannot read definitions from /etc/MailScanner/virus.scanners.conf, No such file or directory
Sorry I didn't post this before, I wasn't at my server that time... Thanks for the reply... =)
 
Simply 'touch' the files that do not exist, or copy/rename the .sample files in /usr/local/share/MailScanner/reports/en/

It has nothing to do with permissions.
 
Back
Top