Testing V 4.85.2 postfix/showq[31416]: warning: hold/3519: uid 89: not a regular file

Jerry Benton jerry.benton at mailborder.com
Sun May 3 12:36:42 UTC 2015


Your permissions in MailScanner.conf should also be 0660. You may also have to manually remove the offending file or directory that is hanging up MailScanner. 

-
Jerry Benton
www.mailborder.com



> On May 3, 2015, at 8:31 AM, michael pap <mike at sentinelbox.net> wrote:
> 
> Hi Jerry,
>  
> I did this but same issue with the postfix user id.
>  
> [root at demo3 incoming]# rm Processing.db
> rm: remove regular empty file `Processing.db'? y
> [root at demo3 incoming]# cd ..
> [root at demo3 MailScanner]# chmod g+w /var/spool/MailScanner/*
> [root at demo3 MailScanner]# chmod 0775 /var/spool/postfix/hold
> [root at demo3 MailScanner]# chown postfix:mtagroup /var/spool/MailScanner
> chown postfix:mtagroup /var/spool/MailScanner/incoming
> chown postfix:mtagroup /var/spool/MailScanner/quarantine
> chown postfix.mtagroup /var/spool/MailScanner/spamassassin
> [root at demo3 MailScanner]# chown postfix:mtagroup /var/spool/MailScanner/incoming
> [root at demo3 MailScanner]# chown postfix:mtagroup /var/spool/MailScanner/quarantine
> chown postfix:mtagroup /var/spool/postfix
> [root at demo3 MailScanner]# chown postfix.mtagroup /var/spool/MailScanner/spamassassin
> [root at demo3 MailScanner]# chown postfix:mtagroup /var/spool/postfix
> chown postfix:mtagroup /var/spool/postfix/incoming
> chown postfix:mtagroup /var/spool/postfix/hold
> [root at demo3 MailScanner]# chown postfix:mtagroup /var/spool/postfix/incoming
> [root at demo3 MailScanner]# chown postfix:mtagroup /var/spool/postfix/hold
> [root at demo3 MailScanner]# service MailScanner start
>  
> May  3 07:49:09 demo3 MailScanner[9648]: Config: calling custom init function MailWatchLogging
> May  3 07:49:09 demo3 MailScanner[9648]: Started SQL Logging child
> May  3 07:49:09 demo3 MailScanner[9648]: Config: calling custom init function SQLWhitelist
> May  3 07:49:09 demo3 MailScanner[9648]: Starting up SQL Whitelist
> May  3 07:49:09 demo3 MailScanner[9648]: Read 0 whitelist entries
> May  3 07:49:10 demo3 MailScanner[9648]: Using SpamAssassin results cache
> May  3 07:49:10 demo3 MailScanner[9648]: Connected to SpamAssassin cache database
> May  3 07:49:10 demo3 MailScanner[9648]: Enabling SpamAssassin auto-whitelist functionality...
> May  3 07:49:20 demo3 MailScanner[9648]: Using locktype = flock
> May  3 07:49:20 demo3 MailScanner[9628]: Using locktype = flock
>  
> [root at demo3 hold]# ls -l
> total 8
> drwxr-xr-x 2 postfix mtagroup 4096 May  3 07:49 9628
> drwxr-xr-x 2 postfix mtagroup 4096 May  3 07:49 9648
> [root at demo3 hold]#
>  
> May  3 08:15:12 demo3 postfix/showq[15437]: warning: hold/9648: uid 89: not a regular file
> May  3 08:15:12 demo3 postfix/showq[15437]: warning: hold/9628: uid 89: not a regular file
>  
>  
> id postfix
> uid=89(postfix) gid=89(postfix) groups=89(postfix),12(mail),503(mtagroup)
>  
> mtagroup:x:503:apache,postfix,clam
>  
> MailScanner.conf
> Run As User = postfix, 
> Run As Group = mtagroup 
> Incoming Queue Dir = /var/spool/postfix/hold
> Outgoing Queue Dir = /var/spool/postfix/incoming
> Quarantine Dir = /var/spool/MailScanner/quarantine
> MTA = postfix
>  
> Thank you.
> Mike
>  
>  
>  
> From: MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Jerry Benton
> Sent: Sunday, May 03, 2015 4:19 AM
> To: MailScanner Discussion
> Subject: Re: Testing V 4.85.2 postfix/showq[31416]: warning: hold/3519: uid 89: not a regular file
>  
> Probably permissions. Fix them on those directories and then remove your Processing.db file from /var/spool/MailScanner. (Make sure you stop MailScanner first.) 
>  
> chmod g+w /var/spool/MailScanner/*
> chmod 0775 /var/spool/postfix/hold
>  
> I would suggest creating a group that has clamav and postfix as members and use that in your MailScanner settings. This prevents a lot of permissions issues. I use a group called mtagroup. 
>  
> groupadd mtagroup
> usermod -a -G mtagroup postfix
> usermod -a -G mtagroup clamav
> usermod -a -G mtagroup clam
>  
> (either clam or clamav depending on your distro and clam version)
>  
>  
> chown postfix:mtagroup /var/spool/MailScanner
> chown postfix:mtagroup /var/spool/MailScanner/incoming
> chown postfix:mtagroup /var/spool/MailScanner/quarantine
> chown postfix.mtagroup /var/spool/MailScanner/spamassassin
> chown postfix:mtagroup /var/spool/postfix
> chown postfix:mtagroup /var/spool/postfix/incoming
> chown postfix:mtagroup /var/spool/postfix/hold
>  
>  
> Start MailScanner running again.
>  
>  
> 
> -
> Jerry Benton
> www.mailborder.com <http://www.mailborder.com/>
>  
>  
>  
> On May 2, 2015, at 11:56 PM, michael pap <mike at sentinelbox.net <mailto:mike at sentinelbox.net>> wrote:
>  
> Did I something wrong ?
>  
> I am running 2 childs
>  
> [root at demo3 hold]# ls
> 3484  3519
>  
> By running the mailq command I get those errors?
>  
> [root at demo3 ~]# date
> Sat May  2 23:44:19 EDT 2015
> [root at demo3 ~]# mailq
> Mail queue is empty
> [root at demo3 ~]#
>  
> May  2 23:44:27 demo3 postfix/showq[32579]: warning: hold/3519: uid 89: not a regular file
> May  2 23:44:27 demo3 postfix/showq[32579]: warning: hold/3484: uid 89: not a regular file
>  
> An postfix reload removes both files and then I get the next error …
>  
> [root at demo3 ~]# service postfix reload
> Reloading postfix:                                         [  OK  ]
> [root at demo3 ~]# ls /var/spool/postfix/hold/
> [root at demo3 ~]#
>  
> May  2 23:48:53 demo3 MailScanner[3484]: Could not open file >/var/spool/postfix
> /hold/3484/BF276E1B67.A91BF.header: No such file or directory
> May  2 23:48:53 demo3 MailScanner[3484]: Cannot create + lock headers file /var/                              spool/postfix/hold/3484/BF276E1B67.A91BF.header,
> May  2 23:48:56 demo3 MailScanner[3519]: Could not open file >/var/spool/postfix 
> /hold/3519/BF276E1B67.A91BF.header: No such file or directory
> May  2 23:48:56 demo3 MailScanner[3519]: Cannot create + lock headers file /var/                                  spool/postfix/hold/3519/BF276E1B67.A91BF.header,
>  
> Sat May  2 23:51:33 EDT 2015
> [root at demo3 ~]# ls /var/spool/postfix/hold/
> 1036  1093
>  
> Did somebody get the same result – or my configuration is wrong may there is a way to suppress the showq warnings?
>  
> Thank you,
> mike
>  
>  
>  
>  
>  
>  
>  
>  
>  
> --
> This email has been scanned by the EMFABox eMail service.
>  
>  
>  
> This email has been scanned by the EMFABox eMail service.
> ---------------------------------------------------------
> ID: 732CF42689.AB3C2
>  
> 
> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info <mailto:mailscanner at lists.mailscanner.info>
> http://lists.mailscanner.info/listinfo/mailscanner <http://lists.mailscanner.info/listinfo/mailscanner>
>  
> 
> This email has been scanned by the EMFABox eMail service.
> ---------------------------------------------------------
> ID: C0B9B426AA.AD4BA
> 
> 
> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info <mailto:mailscanner at lists.mailscanner.info>
> http://lists.mailscanner.info/listinfo/mailscanner <http://lists.mailscanner.info/listinfo/mailscanner>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20150503/5aae3f25/attachment-0001.html>


More information about the MailScanner mailing list