Exim - CPanel - Gid ID is not permitted to relay mail or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 10:41, 8 июня 2020; Admin iph (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

Exim - CPanel - Gid ID is not permitted to relay mail or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail

Ошибка в логах exim при отправке почты с сайта через php mail():

R=enforce_mail_permissions: Gid 1430 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

означает, что проблема с правами на бинарные файлы exim или возможно sendmail (если отправке идет через него):

# chmod g+s /usr/sbin/exim
# chmod g+s /usr/sbin/sendmail-wrapper
# ll /usr/sbin/exim
-rwsr-sr-x 1 root mailtrap 1312856 May 20 00:51 /usr/sbin/exim*


то есть добавляем suid бит для группы. В Cpanel убрать SUID биты с бинарников может скрипт

/scripts/secureit

из-за чего может возникнуть такая проблема.