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
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

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