We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
[Solved] - Owner/Permissions problem: Unable to receive e-mail
[Solved] - Owner/Permissions problem: Unable to receive e-mail
unable to set gid=12 or uid=505 (euid=93): local delivery to name <name()pifagor.org> transport=local_delivery
---
Приветствую.
$5 Готов пожертвовать за эффективную подсказку.
Взломали старый Wordpress. Отправляли 30 000 писем за сутки.
Сменил права на
Попытка вернуть права на 755 обратно эффекта не дала.
Вероятно испортил права и владельца.
Подскажите, пожалуйста, какими должны быть права и владелец?
Жалею.
chmod 0755 /usr/sbin/sendmail
После этого почта отправляться перестала по sendmail, но теперь она и получаться перестала.
Отправляется по SMTP, но через RoundCube отправка невозможна - получаю ошибку (сообщение о невозможности отправить почту).
Сейчас в "ручном режиме" пользуюсь этим для доставки почты:
Суть проблемы:
Искал весь день по строкам:
но так ничего и не нашел толкового, кроме того, что проблема должна быть именно в правах.
Ставил VestaCP в Апреле 2013 и она же настроила Exim + Dovecot + Roundcube.
Нашел
gid=12 Изучаю:
---
id mail
gid=12(mail)
Значит, этой группе что-то должно принадлежать?
---
Приветствую.
$5 Готов пожертвовать за эффективную подсказку.
Взломали старый Wordpress. Отправляли 30 000 писем за сутки.
Сменил права на
Code: Select all
/usr/sbin/sendmail
chmod 0644 /usr/sbin/sendmail
Вероятно испортил права и владельца.
Подскажите, пожалуйста, какими должны быть права и владелец?
Жалею.
chmod 0755 /usr/sbin/sendmail
После этого почта отправляться перестала по sendmail, но теперь она и получаться перестала.
Отправляется по SMTP, но через RoundCube отправка невозможна - получаю ошибку (сообщение о невозможности отправить почту).
Сейчас в "ручном режиме" пользуюсь этим для доставки почты:
To forcefully send all the mails:
exiqgrep -zi | xargs exim -M
2016-03-01 20:08:57 [18321] cwd=/usr/sbin 3 args: exim -M 1aaivM-0002Qs-OL
2016-03-01 20:08:57 [18321] 1aaivM-0002Qs-OL Unfrozen by forced delivery
2016-03-01 20:08:57 [18321] 1aaivM-0002Qs-OL => xxx <name()pifagor.org> F=<name()gmail.com> P=<name()gmail.com> R=loca
luser T=local_delivery S=2533 QT=6h11m49s DT=0s
2016-03-01 20:08:57 [18321] 1aaivM-0002Qs-OL Completed QT=6h11m49s
Суть проблемы:
Code: Select all
2016-03-01 13:57:08 [9359] cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1aaivM-0002Qs-OL
2016-03-01 13:57:08 [9360] 1aaivM-0002Qs-OL unable to set gid=12 or uid=505 (euid=93): local delivery to name <name()pifagor.org> transport=local_delivery
2016-03-01 13:57:08 [9359] 1aaivM-0002Qs-OL failed to read delivery status for name()pifagor.org from delivery subprocess
2016-03-01 13:57:08 [9359] 1aaivM-0002Qs-OL appendfile transport process returned non-zero status 0x0100: exit code 1
2016-03-01 13:57:08 [9359] 1aaivM-0002Qs-OL == name()pifagor.org R=localuser T=local_delivery defer (-1)
2016-03-01 13:57:08 [9359] 1aaivM-0002Qs-OL Frozen
Code: Select all
unable to set gid=12 or uid=505
failed to read delivery status for
appendfile transport process returned non-zero status
Ставил VestaCP в Апреле 2013 и она же настроила Exim + Dovecot + Roundcube.
Нашел
Code: Select all
10-master.conf
---
service auth {
unix_listener auth-client {
group = mail
mode = 0660
user = dovecot
}
user = dovecot
gid=12 Изучаю:
---
id mail
gid=12(mail)
Значит, этой группе что-то должно принадлежать?
Code: Select all
chown dovecot:mail dovecot
Эффекта не дало.
Code: Select all
-rwxr-xr-x 1 root root 155648 Dec 7 22:31 clamd
-rwxr-xr-x. 1 root root 61336 Feb 22 2013 dovecot
-rwxr-xr-x. 1 root root 10987 Oct 28 2012 exicyclog
-rwxr-xr-x. 1 root root 5213 Oct 28 2012 exigrep
-rwxr-xr-x. 1 root root 1118184 Oct 28 2012 exim
lrwxrwxrwx. 1 root root 21 Apr 24 2013 sendmail -> /etc/alternatives/mta
lrwxrwxrwx. 1 root root 4 Apr 24 2013 sendmail.exim -> exim
rpm -qf /usr/sbin/sendmail
exim-4.72-4.el6.x86_64
Last edited by Sattva on Tue Feb 01, 2022 1:47 pm, edited 5 times in total.
Re: $5 - Owner/Permissions problem: Unable to receive e-mail
Code: Select all
# stat /usr/sbin/sendmail
File: `/usr/sbin/sendmail' -> `/etc/alternatives/mta'
Size: 21 Blocks: 0 IO Block: 4096 symbolic link
Device: fd00h/64768d Inode: 791702 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-03-01 11:39:22.675549990 +0200
Modify: 2013-04-24 21:21:49.778000001 +0300
Change: 2013-04-24 21:21:49.778000001 +0300
Code: Select all
#stat sendmail.exim
File: `sendmail.exim' -> `exim'
Size: 4 Blocks: 0 IO Block: 4096 symbolic link
Device: fd00h/64768d Inode: 791699 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-03-01 11:39:22.675549990 +0200
Modify: 2013-04-24 21:21:49.546000001 +0300
Change: 2013-04-24 21:21:49.546000001 +0300
Code: Select all
# stat exim
File: `exim'
Size: 1118184 Blocks: 2184 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 791686 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-03-01 20:58:21.160382174 +0200
Modify: 2012-10-28 20:32:28.000000000 +0200
Change: 2016-03-01 20:57:40.360155132 +0200
Re: $5 - Owner/Permissions problem: Unable to receive e-mail
Code: Select all
# exim -d -bV
Exim version 4.72 #1 built 28-Oct-2012 18:32:26
Copyright (c) University of Cambridge, 1995 - 2007
Berkeley DB: Berkeley DB 4.7.25: (March 5, 2012)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc TCPwrappers OpenSSL Content_Scanning DKIM Old_Demime
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm nis nis0 nisplus passwd sqlite
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
OpenSSL compile-time version: OpenSSL 1.0.0-fips 29 Mar 2010
OpenSSL runtime version: OpenSSL 1.0.0-fips 29 Mar 2010
Exim version 4.72 uid=0 gid=0 pid=16470 D=fbb95cfd
Berkeley DB: Berkeley DB 4.7.25: (March 5, 2012)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc TCPwrappers OpenSSL Content_Scanning DKIM Old_Demime
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm nis nis0 nisplus passwd sqlite
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
OpenSSL compile-time version: OpenSSL 1.0.0-fips 29 Mar 2010
OpenSSL runtime version: OpenSSL 1.0.0-fips 29 Mar 2010
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=16470
auxiliary group list: <none>
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /etc/exim/exim.conf
log selectors = ffffffff 7fffffff
Loading lookup modules from /usr/lib64/exim/4.72-4.el6/lookups
Loaded 0 lookup modules
Total 17 lookups
LOG: MAIN
cwd=/usr/sbin 3 args: exim -d -bV
trusted user
admin user
changed uid/gid: privilege not needed
uid=93 gid=93 pid=16470
auxiliary group list: 12 93
originator: uid=0 gid=0 login=root name=root
sender address = [email protected]
Configuration file is /etc/exim/exim.conf
Re: $5 - Owner/Permissions problem: Unable to receive e-mail
Было:
Name: exim
Permissions (Octal): 100755
chmod u+s /usr/sbin/exim
Стало:
Name: exim
Permissions (Octal): 104755
Helped. HAPPY!
Name: exim
Permissions (Octal): 100755
chmod u+s /usr/sbin/exim
Стало:
Name: exim
Permissions (Octal): 104755
Code: Select all
# ls -Al exim
-rwsr-xr-x. 1 root root 1118184 Oct 28 2012 exim
Helped. HAPPY!