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 14:17:29 UTC 2015
haha .. email it to me directly next time. I will change the password when I get in and email it to you.
-
Jerry Benton
www.mailborder.com
> On May 3, 2015, at 10:14 AM, michael pap <mike at sentinelbox.net> wrote:
>
> Ok
>
> ssh mail.sentinelbox.net <http://mail.sentinelbox.net/>
>
> root: MailBorder
>
> thx
>
> From: MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Jerry Benton
> Sent: Sunday, May 03, 2015 9:44 AM
> To: MailScanner Discussion
> Subject: Re: Testing V 4.85.2 postfix/showq[31416]: warning: hold/3519: uid 89: not a regular file
>
> Email me the credentials and I will take a look if you like.
>
>
>
> -
> Jerry Benton
> www.mailborder.com <http://www.mailborder.com/>
>
>
>
> On May 3, 2015, at 9:41 AM, michael pap <mike at sentinelbox.net <mailto:mike at sentinelbox.net>> wrote:
>
> Hm
>
> Still the same …
>
> [root at demo3 ~]# sed -i "s/pickup unix/pickup fifo/g" /etc/postfix/master.cf
> [root at demo3 ~]# sed -i "s/qmgr unix/qmgr fifo/g" /etc/postfix/master.cf
>
> pickup fifo n - n 60 1 pickup
> cleanup unix n - n - 0 cleanup
> qmgr fifo n - n 300 1 qmgr
>
> --
> May 3 09:33:24 demo3 MailScanner[32417]: Using locktype = flock
> May 3 09:33:31 demo3 MailScanner[32451]: Using locktype = flock
> May 3 09:36:51 demo3 postfix/showq[663]: warning: hold/32451: uid 89: not a regular file
> May 3 09:36:51 demo3 postfix/showq[663]: warning: hold/32417: uid 89: not a regular file
>
> For me it looks like mailq can not handle both directories created by MailScanner in postfix hold ->32451 and 32417 --> MailScanner[32417]: Using locktype = flock
>
> [root at demo3 hold]# ls -l
> total 8
> drwxr-xr-x 2 postfix mtagroup 4096 May 3 09:33 32417
> drwxr-xr-x 2 postfix mtagroup 4096 May 3 09:33 32451
>
> May I am wrong ?
>
> Thank you!
>
>
>
>
> From: MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info <mailto:mailscanner-bounces at lists.mailscanner.info>] On Behalf Of Jerry Benton
> Sent: Sunday, May 03, 2015 9:20 AM
> To: MailScanner Discussion
> Subject: Re: Testing V 4.85.2 postfix/showq[31416]: warning: hold/3519: uid 89: not a regular file
>
> Also:
>
> # fix for postfix
> # fix postfix unix -> fifo
>
> sed -i "s/pickup unix/pickup fifo/g" /etc/postfix/master.cf
> sed -i "s/qmgr unix/qmgr fifo/g" /etc/postfix/master.cf
>
>
> -
> Jerry Benton
> www.mailborder.com <http://www.mailborder.com/>
>
>
>
> On May 3, 2015, at 9:00 AM, michael pap <mike at sentinelbox.net <mailto:mike at sentinelbox.net>> wrote:
>
> Quarantine Permissions = 0660
>
> [root at demo3 postfix]# pwd
> /var/spool/postfix
> [root at demo3 postfix]# ls -la
> total 72
> drwxr-xr-x. 18 postfix mtagroup 4096 Apr 29 11:12 .
> drwxr-xr-x. 13 root root 4096 Apr 29 11:11 ..
> drwx------. 2 postfix root 4096 May 3 08:36 active
> drwx------. 2 postfix root 4096 May 3 03:40 bounce
> drwx------. 2 postfix root 4096 Feb 20 2014 corrupt
> drwx------. 2 postfix root 4096 Feb 20 2014 defer
> drwx------. 2 postfix root 4096 Feb 20 2014 deferred
> drwx------. 2 postfix root 4096 Feb 20 2014 flush
> drwxrwxr-x. 2 postfix mtagroup 4096 May 3 08:40 hold
> drwxr-x---. 2 postfix mtagroup 4096 May 3 08:36 incoming
> drwx-wx---. 2 postfix postdrop 4096 May 3 08:35 maildrop
>
> [root at demo3 spool]# pwd
> /var/spool
> [root at demo3 spool]# ls -l
> total 44
> drwxr-xr-x. 2 root root 4096 Apr 6 10:17 anacron
> drwx------. 2 root root 4096 Nov 23 2013 cron
> drwxr-xr-x. 2 root root 4096 Sep 23 2011 lpd
> drwxrwxr-x. 2 root mail 4096 Apr 29 11:13 mail
> drwxr-xr-x. 5 postfix mtagroup 4096 Apr 29 11:08 MailScanner
> drwx------. 2 root mail 4096 Nov 11 2010 mqueue
> drwx------. 2 root root 4096 Apr 13 10:27 mqueue.in
> drwxr-xr-x. 2 root root 4096 Apr 30 12:31 plymouth
> drwxr-xr-x. 18 postfix mtagroup 4096 Apr 29 11:12 postfix
>
> à
> [root at demo3 hold]# pwd
> /var/spool/postfix/hold
>
> It looks like that MailScanner creates both files in the hold queue <http://dict.leo.org/ende/index_en.html#/search=queue&searchLoc=0&resultOrder=basic&multiwordShowSingle=on> each per child after stopping both are disappeared by stopping the MailScanner Service
>
> May 3 08:46:46 demo3 MailScanner[21903]: Using locktype = flock
> May 3 08:46:50 demo3 MailScanner[21919]: Using locktype = flock
>
> [root at demo3 hold]# ls -l
> total 8
> drwxr-xr-x 2 postfix mtagroup 4096 May 3 08:46 21903
> drwxr-xr-x 2 postfix mtagroup 4096 May 3 08:46 21919
>
>
> [root at demo3 ~]# date
> Sun May 3 08:52:36 EDT 2015
> [root at demo3 ~]# service MailScanner stop
> ConfigSQL QuickPeek for mta found postfix
> ConfigSQL QuickPeek for incomingworkdir found /var/spool/MailScanner/incoming
> ConfigSQL QuickPeek for incomingqueuedir found /var/spool/postfix/hold
> ConfigSQL QuickPeek for quarantinedir found /var/spool/MailScanner/quarantine
> ConfigSQL QuickPeek for runasuser found postfix
> Shutting down MailScanner daemons:
> MailScanner: [ OK ]
> incoming postfix: [ OK ]
> outgoing postfix: [ OK ]
> [root at demo3 ~]#
>
> [root at demo3 hold]# date
> Sun May 3 08:52:55 EDT 2015
> [root at demo3 hold]# ls -l
> total 0
> [root at demo3 hold]#
>
> à
> [root at demo3 ~]# date
> Sun May 3 08:54:00 EDT 2015
> [root at demo3 ~]# service MailScanner start
> ConfigSQL QuickPeek for mta found postfix
> ConfigSQL QuickPeek for incomingworkdir found /var/spool/MailScanner/incoming
> ConfigSQL QuickPeek for incomingqueuedir found /var/spool/postfix/hold
> ConfigSQL QuickPeek for quarantinedir found /var/spool/MailScanner/quarantine
> ConfigSQL QuickPeek for runasuser found postfix
> Starting MailScanner daemons:
> incoming postfix: [ OK ]
> outgoing postfix: [ OK ]
> MailScanner: [ OK ]
> [root at demo3 ~]#
>
> [root at demo3 hold]# date
> Sun May 3 08:54:27 EDT 2015
> [root at demo3 hold]# ls -l
> total 8
> drwxr-xr-x 2 postfix mtagroup 4096 May 3 08:54 23962
> drwxr-xr-x 2 postfix mtagroup 4096 May 3 08:54 23983
>
> May 3 08:54:24 demo3 MailScanner[23962]: Using locktype = flock
> May 3 08:54:24 demo3 MailScanner[23983]: Using locktype = flock
>
> Never seen that before … is this supposed to do to create an separate folder each per child in hold?
>
> Thank you.
>
> Mike
>
>
>
>
>
>
>
>
>
> From: MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info <mailto:mailscanner-bounces at lists.mailscanner.info>] On Behalf Of Jerry Benton
> Sent: Sunday, May 03, 2015 8:37 AM
> To: MailScanner Discussion
> Subject: Re: Testing V 4.85.2 postfix/showq[31416]: warning: hold/3519: uid 89: not a regular file
>
> 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 <http://www.mailborder.com/>
>
>
>
> On May 3, 2015, at 8:31 AM, michael pap <mike at sentinelbox.net <mailto: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 <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>
>
>
> This email has been scanned by the EMFABox eMail service.
> ---------------------------------------------------------
> ID: 7EC4E42695.A0127
>
>
>
> --
> 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: 5A717426AD.A36FC
>
>
>
> --
> 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: 6BDA8426AF.AEC3E
>
>
>
> --
> 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/ea6c8d34/attachment-0001.html>
More information about the MailScanner
mailing list