MailScanner incoming folder.

Azir Güleroğlu Azir.Guleroglu at turknet.net.tr
Wed Oct 26 06:02:33 UTC 2016


Kevin Thank you for your answer.

Mqueue directory is okey but still I get same error.  I changed the permissions and the owners of the Mailscanner folder and the incoming folder but when i restart the service, the permissions and owners turn into it's initial status not the one I identified.

Before Restart.

[root at etrn MailScanner]# ll
total 456
drwxrwxrwx.  2 postfix postfix       6 Aug 14 19:05 archive
drwxrwxrwx. 13 root    mtagroup    300 Oct 26 09:47 incoming
drwxrwxrwx.  2 postfix postfix       6 Aug 14 19:05 quarantine
-rw-------.  1 postfix postfix  464369 Oct 25 14:52 razor-agent.log
drwx------.  2 postfix postfix       6 Oct 25 11:53 Run As User

After Restart.

[root at etrn MailScanner]# ll
total 456
drwxrwxrwx.  2 postfix postfix       6 Aug 14 19:05 archive
drwxrwx---. 13 root    mtagroup    300 Oct 26 09:47 incoming
drwxrwxrwx.  2 postfix postfix       6 Aug 14 19:05 quarantine
-rw-------.  1 postfix postfix  464369 Oct 25 14:52 razor-agent.log
drwx------.  2 postfix postfix       6 Oct 25 11:53 Run As User




Oct 26 09:49:26 MailScanner[29373]: Error in configuration file line 16, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable)
Oct 26 09:49:26 MailScanner[29373]: Using SpamAssassin results cache
Oct 26 09:49:26 MailScanner[29373]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db
Oct 26 09:49:26 MailScanner[29373]: Enabling SpamAssassin auto-whitelist functionality...
Oct 26 09:49:27 MailScanner[29360]: Process did not exit cleanly, returned 29 with signal 0
Oct 26 09:49:27 MailScanner[29374]: MailScanner Email Processor version 5.0.3 starting...
Oct 26 09:49:27 MailScanner[29374]: Reading configuration file /etc/MailScanner/MailScanner.conf
Oct 26 09:49:27 MailScanner[29374]: Reading configuration file /etc/MailScanner/conf.d/README
Oct 26 09:49:27 MailScanner[29374]: Could not read directory /var/spool/MailScanner/incoming
Oct 26 09:49:27 MailScanner[29374]: Error in configuration file line 16, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable)



Azir Güleroğlu



-----Original Message-----
From: MailScanner [mailto:mailscanner-bounces+azir.guleroglu=turknet.net.tr at lists.mailscanner.info] On Behalf Of Kevin Miller
Sent: Tuesday, October 25, 2016 7:30 PM
To: 'MailScanner Discussion' <mailscanner at lists.mailscanner.info>
Subject: RE: MailScanner incoming folder.

It appears that you don't make your incoming and outgoing mail queue directories:
  /var/spool/mqueue.in and /var/spool/mqueue

You reference them, but in your directory listing below they don't exist.

...Kevin
--
Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4588 Registered Linux User No: 307357

From: MailScanner [mailto:mailscanner-bounces+kevin.miller=juneau.org at lists.mailscanner.info] On Behalf Of Azir Güleroglu
Sent: Tuesday, October 25, 2016 3:12 AM
To: MailScanner Discussion
Subject: MailScanner incoming folder.

Hello,

I have an old ETRN server(Fedora 8). Whatever,i made a postfix and mailscanner installation yesterday. After i finished configuration then mailscanner service ran without any problems but as i checked the mailscanner service i saw the errors below.

I changed the permissions and the owners of the Mailscanner folder and the incoming folder but when i restart the service, the permissions and owners turn into it's initial status not the one I identified. I gave two different paths, as i copied below but the result doesn't change.

Can you help regarding this problem?


[root at etrn spool]# ll
total 4
drwxr-xr-x.  2 root    root      60 Mar 31  2016 anacron drwx------.  2 root    root       6 Mar 31  2016 cron drwxr-xr-x.  2 root    root       6 Aug 12  2015 lpd drwxrwxr-x.  2 root    mail      17 Oct 25 09:46 mail drwxrwxrwx.  5 postfix postfix   52 Oct 24 16:33 MailScanner drwxr-xr-x.  2 root    root       6 Nov 20  2015 plymouth drwxr-xr-x. 16 root    root    4096 Oct 24 15:47 postfix


[root at etrn MailScanner]# ll
total 0
drwxrwxrwx. 2 postfix postfix    6 Aug 14 19:05 archive drwxrwx---. 5 root    mtagroup 140 Oct 25 09:49 incoming drwxrwxrwx. 2 postfix postfix    6 Aug 14 19:05 quarantine

[root at etrn MailScanner]# grep mta /etc/group mtagroup:x:1000:postfix,mail


Run As User = postfix
Run As Group = postfix
Queue Scan Interval = 6
Incoming Queue Dir = /var/spool/mqueue.in Outgoing Queue Dir = /var/spool/mqueue #Incoming Queue Dir = /var/spool/postfix/hold #Outgoing Queue Dir = /var/spool/postfix/incoming Incoming Work Dir = /var/spool/MailScanner/incoming Quarantine Dir = /var/spool/MailScanner/quarantine PID file = /var/run/MailScanner.pid MTA = postfix


Incoming Work User =
Incoming Work Group =
Incoming Work Permissions = 0600
Quarantine User =
Quarantine Group =

Oct 25 11:40:32 MailScanner[16151]: Reading configuration file /etc/MailScanner/MailScanner.conf Oct 25 11:40:32 MailScanner[16151]: Reading configuration file /etc/MailScanner/conf.d/README Oct 25 11:40:32 MailScanner[16151]: Could not read directory /var/spool/MailScanner/incoming Oct 25 11:40:32 MailScanner[16151]: Error in configuration file line 16, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable) Oct 25 11:40:32 MailScanner[16151]: Could not read directory /var/spool/mqueue Oct 25 11:40:32 MailScanner[16151]: Error in configuration file line 13, directory /var/spool/mqueue for outqueuedir does not exist (or is not readable) Oct 25 11:40:32 MailScanner[16151]: File containing list of incoming queue dirs (/var/spool/mqueue.in) does not exist Oct 25 11:40:32 MailScanner[16151]: Using SpamAssassin results cache Oct 25 11:40:32 MailScanner[16151]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db
Oct 25 11:40:32 MailScanner[16151]: Enabling SpamAssassin auto-whitelist functionality...

[root at etrn MailScanner]# MailScanner -lint

Could not read directory /var/spool/mqueue at /usr/share/MailScanner/perl/MailScanner/Config.pm line 2866.
Error in configuration file line 13, directory /var/spool/mqueue for outqueuedir does not exist (or is not readable) at /usr/share/MailScanner/perl/MailScanner/Config.pm line 3230.
File containing list of incoming queue dirs (/var/spool/mqueue.in) does not exist at /usr/share/MailScanner/perl/MailScanner/Config.pm line 1811.

Oct 25 11:30:40 MailScanner[14254]: Reading configuration file /etc/MailScanner/MailScanner.conf Oct 25 11:30:40 MailScanner[14254]: Reading configuration file /etc/MailScanner/conf.d/README Oct 25 11:30:41 MailScanner[14254]: Could not read directory /var/spool/MailScanner/incoming Oct 25 11:30:41 MailScanner[14254]: Error in configuration file line 14, directory /var/spool/MailScanner/incoming for incomingworkdir does not exist (or is not readable) Oct 25 11:30:41 MailScanner[14254]: Could not read directory /var/spool/postfix/incoming Oct 25 11:30:41 MailScanner[14254]: Error in configuration file line 13, directory /var/spool/postfix/incoming for outqueuedir does not exist (or is not readable) Oct 25 11:30:41 MailScanner[14254]: File containing list of incoming queue dirs (/var/spool/postfix/hold) does not exist Oct 25 11:30:41 MailScanner[14254]: Using SpamAssassin results cache Oct 25 11:30:41 MailScanner[14254]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db
Oct 25 11:30:41 MailScanner[14254]: Enabling SpamAssassin auto-whitelist functionality...

[root at etrn ~]# MailScanner -lint
Trying to setlogsock(unix)

Reading configuration file /etc/MailScanner/MailScanner.conf Reading configuration file /etc/MailScanner/conf.d/README

Checking version numbers...
Version number in MailScanner.conf (5.0.3) is correct.

Your envelope_sender_header in spamassassin.conf is correct.
MailScanner setting GID to  (89)
MailScanner setting UID to  (89)

Checking for SpamAssassin errors (if you use it)...
Using SpamAssassin results cache
Connected to SpamAssassin cache database
pyzor: check failed: internal error, python traceback seen in response SpamAssassin reported no errors.
Auto: Found virus scanners: clamav
Connected to Processing Attempts Database Created Processing Attempts Database successfully There are 0 messages in the Processing Attempts Database Using locktype = posix MailScanner.conf says "Virus Scanners = auto"
Found these virus scanners installed: clamav ===========================================================================
Virus and Content Scanning: Starting


Azir Güleroğlu

TurkNet Iletisim Hizmetleri A.S.
Tel: +90 212 355 17 00
Faks: +90 212 216 55 66


________________________________________

Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafından alması amaçlanan yetkili gerçek ya da tüzel kişinin kullanımı içindir. Eğer söz konusu yetkili alıcı değilseniz bu elektronik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir. TurkNet bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görüşler yalnızca gönderen kişiye aittir ve TurkNet'in görüşlerini yansıtmayabilir. Bu e-posta bilinen bütün bilgisayar virüslerine karşı taranmıştır.
________________________________________
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted. TurkNet makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TurkNet. This e-mail has been scanned for all known computer viruses.


--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner


________________________________

Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafından alması amaçlanan yetkili gerçek ya da tüzel kişinin kullanımı içindir. Eğer söz konusu yetkili alıcı değilseniz bu elektronik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir. TurkNet bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görüşler yalnızca gönderen kişiye aittir ve TurkNet'in görüşlerini yansıtmayabilir. Bu e-posta bilinen bütün bilgisayar virüslerine karşı taranmıştır.
________________________________________
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted. TurkNet makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TurkNet. This e-mail has been scanned for all known computer viruses.


More information about the MailScanner mailing list