MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Development => Topic started by: fossxplorer on 2016-06-08, 23:35:44
-
I started to see the following in the maillog after the last update yesterday:
Jun 8 23:51:55 mail send: delivery 23: deferral: Not_allowed_to_perform_deliveries_as_root./
Jun 8 23:51:55 mail send: status: local 1/10 remote 0/60
Jun 8 23:51:55 mail send: delivery 24: deferral: Not_allowed_to_perform_deliveries_as_root./
Any idea why @Mustafa?
-
What's you mean update?.
-
yum clean all && yum update
-
Only update courier-imap-toaster related to mail server.
Try 'sh /script/fixmail-all; sh /script/restart-all -y'.
-
Unfortunately, that did solve the problem :(
Jun 9 10:49:40 mail send: info msg 3806698: bytes 2598 from <bob@gmail.com> qp 28473 uid 7791
Jun 9 10:49:40 mail spamdyke[28470]: ALLOWED from: bob@gmail.com to: support@example.com origin_ip: 209.85.215.45 origin_rdns: mail-lf0-f45.google.com auth: (unknown) encryption: TLS reason: 250_ok_1465462180_qp_28473
Jun 9 10:49:40 mail smtp: 28470 < ?????????????
Jun 9 10:49:40 mail smtp: 28470 < z????[??%?Q?)R????uJ?+
Jun 9 10:49:40 mail smtp: 28470 < [EOF]
Jun 9 10:49:40 mail smtp: 28470 > ????B???-T5??????a??,?????????????]Y??I???????h??D??[?%???Q*r.?i??'??U?+
Jun 9 10:49:40 mail smtp: 28470 > ????????-T5??,9????p????bB6????+
Jun 9 10:49:40 mail smtp: 28470 > [EOF]
Jun 9 10:49:40 mail smtp: tcpserver: end 28470 status 0
Jun 9 10:49:40 mail smtp: tcpserver: status: 0/10
Jun 9 10:49:40 mail send: starting delivery 1: msg 3806698 to local example.com-support@example.com
Jun 9 10:49:40 mail send: status: local 1/10 remote 0/60
Jun 9 10:49:40 mail send: delivery 1: deferral: Not_allowed_to_perform_deliveries_as_root./
Jun 9 10:49:40 mail send: status: local 0/10 remote 0/60
Jun 9 10:49:52 mail send: starting delivery 2: msg 3806747 to local example.com-support@example.com
Jun 9 10:49:52 mail send: status: local 1/10 remote 0/60
Jun 9 10:49:52 mail send: delivery 2: deferral: Not_allowed_to_perform_deliveries_as_root./
Jun 9 10:49:52 mail send: status: local 0/10 remote 0/60
Jun 9 10:49:58 mail send: starting delivery 3: msg 3806767 to local example.com-user3@example.com
Jun 9 10:49:58 mail send: status: local 1/10 remote 0/60
Jun 9 10:49:58 mail send: delivery 3: deferral: Not_allowed_to_perform_deliveries_as_root./
Jun 9 10:49:58 mail send: status: local 0/10 remote 0/60
-
Related to https://forum.mratwork.com/kloxo-mr-bugs-and-requests/maillog-deferral-not_allowed_to_perform_deliveries_as_root
-
The assign file had wrong entry for the domain in question so corrected it, ran fixmail-all, restart...
The vpopmail database has correct pw_dir, but pw_uid and gid are 0 both.
Is that correct?
MariaDB [vpopmail]> select * from vpopmail\G
*************************** 69. row ***************************
pw_name: webmaster
pw_domain: example.com
pw_passwd: $1$iesdfdsdfsdfsdfsdfsdfsdf7WTKmdfsdf
pw_uid: 0
pw_gid: 0
pw_gecos: webmaster
pw_dir: /home/lxadmin/mail/domainsexample.com/webmaster
pw_shell: 209715200S
pw_clear_passwd: mypass
-
Yes.
-
Ok.
Then problem is not in the vpopmail database, but somewhere else.
I'm clueless now and no mails from customers can we read by Roundcube for this domain :(
-
@Mustafa, please let me know if you have any idea on how to fix the email.
Pretty critical now :(
-
Inform here 'dir -l /home/vpopmail/bin' and 'dir -l /var/qmail/bin'
-
total 3096
-rwxr-x--x 1 vpopmail vchkpw 123624 Dec 20 2014 authvchkpw
-rwxr-x--x 1 vpopmail vchkpw 112008 Dec 20 2014 clearopensmtp
-rwxr-x--x 1 vpopmail vchkpw 115112 Dec 20 2014 dotqmail2valias
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 vaddaliasdomain
-rwxr-x--x 1 vpopmail vchkpw 118760 Dec 20 2014 vadddomain
-rwxr-x--x 1 vpopmail vchkpw 114792 Dec 20 2014 vadduser
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 valias
-rwxr-x--x 1 vpopmail vchkpw 114696 Dec 20 2014 vchangepw
-rwsr-xr-x 1 root root 127048 Dec 20 2014 vchkpw
-rwxr-x--x 1 vpopmail vchkpw 118792 Dec 20 2014 vconvert
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 vdeldomain
-rwxr-x--x 1 vpopmail vchkpw 123976 Dec 20 2014 vdelivermail
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 vdeloldusers
-rwxr-x--x 1 vpopmail vchkpw 112840 Dec 20 2014 vdeluser
-rwxr-x--x 1 vpopmail vchkpw 114984 Dec 20 2014 vdominfo
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 vipmap
-rwxr-x--x 1 vpopmail vchkpw 112552 Dec 20 2014 vkill
-rwxr-x--x 1 vpopmail vchkpw 136712 Dec 20 2014 vlist
-rwxr-x--x 1 vpopmail vchkpw 112072 Dec 20 2014 vmkpasswd
-rwxr-x--x 1 vpopmail vchkpw 126952 Dec 20 2014 vmoddomlimits
-rwxr-x--x 1 vpopmail vchkpw 118760 Dec 20 2014 vmoduser
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 vpasswd
-rwxr-x--x 1 vpopmail vchkpw 117576 Dec 20 2014 vpopbull
-rwxr-x--x 1 vpopmail vchkpw 153832 Dec 20 2014 vpopmaild
-rwxr-x--x 1 vpopmail vchkpw 114664 Dec 20 2014 vsetuserquota
-rwxr-x--x 1 vpopmail vchkpw 21176 Dec 20 2014 vusagec
-rwxr-x--x 1 vpopmail vchkpw 118792 Dec 20 2014 vuserinfo
total 1384
-rwxr-xr-x 1 root qmail 10920 May 3 2015 bouncesaying
-rwxr-xr-x 1 root qmail 31624 May 3 2015 condredirect
-rwxr-xr-x 1 root qmail 1087 May 3 2015 config-fast
-rwxr-xr-x 1 root qmail 126 May 3 2015 datemail
-rwxr-xr-x 1 root qmail 929 May 3 2015 dh_key
-rwxr-xr-x 1 root root 4246 May 3 2015 dkimsign.pl
-rwxr-xr-x 1 root qmail 114 May 3 2015 elq
-rwxr-xr-x 1 root qmail 10824 May 3 2015 except
-rwxr-xr-x 1 root qmail 28264 May 3 2015 forward
-rwxr-xr-x 1 root qmail 23808 May 3 2015 instcheck
-rwxr-xr-x 1 root qmail 23232 May 3 2015 maildir2mbox
-rwxr-xr-x 1 root qmail 10848 May 3 2015 maildirmake
-rwxr-xr-x 1 root qmail 21216 May 3 2015 maildirwatch
-rwxr-xr-x 1 root qmail 179 May 3 2015 mailsubj
-rwxr-xr-x 1 root qmail 115 May 3 2015 pinq
-rwxr-xr-x 1 root qmail 15232 May 3 2015 predate
-rwxr-xr-x 1 root qmail 16064 May 3 2015 preline
-rwxr-xr-x 1 root qmail 115 May 3 2015 qail
-rwxr-xr-x 1 root qmail 15040 May 3 2015 qbiff
-rwxr-xr-x 1 root qmail 19112 May 3 2015 qmail-badloadertypes
-rwxr-xr-x 1 root qmail 19112 May 3 2015 qmail-badmimetypes
-rwx--x--x 1 root qmail 13040 May 3 2015 qmail-clean
-rws--x--x 1 qmailq qmail 49384 May 3 2015 qmail-dk
-rwx--x--x 1 root qmail 7560 May 3 2015 qmail-getpw
-rwxr-xr-x 1 root qmail 50952 May 3 2015 qmail-inject
-rwx--x--x 1 root qmail 58416 May 3 2015 qmail-local
-rwx------ 1 root qmail 23264 May 3 2015 qmail-lspawn
-rwx------ 1 root qmail 19112 May 3 2015 qmail-newmrh
-rwx------ 1 root qmail 15016 May 3 2015 qmail-newu
-rwxr-xr-x 1 root qmail 35912 May 3 2015 qmail-pop3d
-rwx--x--x 1 root qmail 15376 May 3 2015 qmail-popup
-rwx--x--x 1 root qmail 20984 May 3 2015 qmail-pw2u
-rwxr-xr-x 1 root qmail 19216 May 3 2015 qmail-qmqpc
-rwxr-xr-x 1 root qmail 18616 May 3 2015 qmail-qmqpd
-rwxr-xr-x 1 root qmail 27408 May 3 2015 qmail-qmtpd
-rwxr-xr-x 1 root qmail 19120 May 3 2015 qmail-qread
-rwxr-xr-x 1 root qmail 371 May 3 2015 qmail-qstat
-rws--x--x 1 qmailq qmail 23424 May 3 2015 qmail-queue
-rwxr-xr-x 1 root qmail 2426 May 3 2015 qmail-remote
-rwx--x--x 1 root qmail 52488 May 3 2015 qmail-remote.orig
-rwx--x--x 1 root qmail 16016 May 3 2015 qmail-rspawn
-rwx--x--x 1 root qmail 56760 May 3 2015 qmail-send
-rwxr-xr-x 1 root qmail 21496 May 3 2015 qmail-showctl
-rwxr-xr-x 1 root qmail 203016 May 3 2015 qmail-smtpd
-rwx------ 1 root qmail 7616 May 3 2015 qmail-start
-rwxr-xr-x 1 root qmail 10856 May 3 2015 qmail-tcpok
-rwxr-xr-x 1 root qmail 12200 May 3 2015 qmail-tcpto
-rwx--x--x 1 root qmail 13040 May 3 2015 qmail-clean
-rws--x--x 1 qmailq qmail 49384 May 3 2015 qmail-dk
-rwx--x--x 1 root qmail 7560 May 3 2015 qmail-getpw
-rwxr-xr-x 1 root qmail 50952 May 3 2015 qmail-inject
-rwx--x--x 1 root qmail 58416 May 3 2015 qmail-local
-rwx------ 1 root qmail 23264 May 3 2015 qmail-lspawn
-rwx------ 1 root qmail 19112 May 3 2015 qmail-newmrh
-rwx------ 1 root qmail 15016 May 3 2015 qmail-newu
-rwxr-xr-x 1 root qmail 35912 May 3 2015 qmail-pop3d
-rwx--x--x 1 root qmail 15376 May 3 2015 qmail-popup
-rwx--x--x 1 root qmail 20984 May 3 2015 qmail-pw2u
-rwxr-xr-x 1 root qmail 19216 May 3 2015 qmail-qmqpc
-rwxr-xr-x 1 root qmail 18616 May 3 2015 qmail-qmqpd
-rwxr-xr-x 1 root qmail 27408 May 3 2015 qmail-qmtpd
-rwxr-xr-x 1 root qmail 19120 May 3 2015 qmail-qread
-rwxr-xr-x 1 root qmail 371 May 3 2015 qmail-qstat
-rws--x--x 1 qmailq qmail 23424 May 3 2015 qmail-queue
-rwxr-xr-x 1 root qmail 2426 May 3 2015 qmail-remote
-rwx--x--x 1 root qmail 52488 May 3 2015 qmail-remote.orig
-rwx--x--x 1 root qmail 16016 May 3 2015 qmail-rspawn
-rwx--x--x 1 root qmail 56760 May 3 2015 qmail-send
-rwxr-xr-x 1 root qmail 21496 May 3 2015 qmail-showctl
-rwxr-xr-x 1 root qmail 203016 May 3 2015 qmail-smtpd
-rwx------ 1 root qmail 7616 May 3 2015 qmail-start
-rwxr-xr-x 1 root qmail 10856 May 3 2015 qmail-tcpok
-rwxr-xr-x 1 root qmail 12200 May 3 2015 qmail-tcpto
-rwxr-xr-x 1 root qmail 31560 May 3 2015 qreceipt
-rwxr-xr-x 1 root qmail 15008 May 3 2015 qsmhook
lrwxrwxrwx 1 root qmail 16 Feb 5 12:11 sendmail -> sendmail-wrapper
-rwxr-xr-x 1 root qmail 13352 May 3 2015 sendmail-qmail
-rwxr-xr-x 1 root qmail 863 May 3 2015 sendmail-wrapper
-rws--x--x 1 clam root 61138 Apr 6 2015 simscan
-rwsr-xr-x 1 root root 31280 Apr 6 2015 simscanmk
-rwxr-xr-x 1 root qmail 32448 May 3 2015 spfquery
-rwx--x--x 1 root qmail 8960 May 3 2015 splogger
-rwxr-xr-x 1 root qmail 31592 May 3 2015 srsfilter
-rwxr-xr-x 1 root qmail 27296 May 3 2015 tcp-env
-rwxr-xr-x 1 root root 618 Apr 6 2015 update-simscan
-
Look like nothing wrong with above list.
Inform 'dir -l /var/qmail/alias; cat /var/qmail/alias/.qmail-root'
-
[root@mail qmail]# dir -l /var/qmail/alias ; cat /var/qmail/alias/.qmail-root
total 0
&postmaster@mydomain.com
This is the problem domain (mydomain.com)!
-
What's /home/lxadmin/mail/domains/mydomain.com/
and /home/lxadmin/mail/domainsmydomain.com/ for?
In the first, there is almost nothing! While other domains working have data under /home/lxadmin/mail/domains/otherdomain.com/
So it's a missing '/' somewhere, that's what is case i saw in the assign file too!
This could be the problem?
-
Delete /home/lxadmin/mail/domains/mydomain.com/ and rename /home/lxadmin/mail/domainsmydomain.com/ to /home/lxadmin/mail/domains/mydomain.com/
-
I did that but all entries in the DB is wrong too:
*************************** 13. row ***************************
pw_name: webmaster
pw_domain: mydomain.com
pw_passwd: $1$ie3sdfsdfsdfsdfsdfsdfsdfsdfsdfsdf60
pw_uid: 0
pw_gid: 0
pw_gecos: webmaster
pw_dir: /home/lxadmin/mail/domainsmydomain.com/webmaster
Can you please fix it with new update?
I changed one of the email address entries in the DB, but it didn't help.
Do i need to run fixmail?
-
still same issue after changng it all!
-
I fixed ALL entries in the vpopmail DB that was wrong, still
Jun 9 18:07:30 mail send: delivery 3: deferral: Not_allowed_to_perform_deliveries_as_root./
Jun 9 18:07:30 mail send: status: local 0/10 remote 0/60
So i think the qmail-lspawn (see the source code, it has the error "Not_allowed_to_perform_deliveries_as_root")
is somehow unable to switch to correct user i think. (So it's root with uid 0, which is wrong)
Did you change any setuid in the last update or last 2-3 months?
-
Just wanted to thanks @Mustafa a lot.
Although the fix was to run fixmail-all && restart-all, i wasn't able to fix it.
But it's also time to start thinking about the community around Kloxo-MR and try to help Mustafa so that he can concentrate on the dev of Kloxo-MR.
In other words, we should help answer other users questions. This is a reminder to me as well :)