Значение по умолчанию master.cf файл в новой установке Ubuntu 18, кажется, содержит некоторые неопределенные параметры:
Под обоими submission
блок и smtps
блок:
-o smtpd_client_restrictions=$mua_client_restrictions
-o smtpd_helo_restrictions=$mua_helo_restrictions
-o smtpd_sender_restrictions=$mua_sender_restrictions
Что продолжается здесь? Действительно ли это - ошибка? Или специалист по обслуживанию пакета ожидает, что мы определим их сами?
Это предстало передо мной вчера, когда я получил эти предупреждения при установке нового пакета:
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
Можно избавиться от сообщений об ошибках путем добавления следующего в main.cf файле для постфикса:
smtpd_restriction_classes = mua_sender_restrictions, mua_client_restrictions, mua_helo_restrictions
mua_client_restrictions = permit_sasl_authenticated, reject
mua_sender_restrictions = permit_sasl_authenticated, reject
mua_helo_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_invalid_hostname, permit
Сохраните main.cf и постфиксную перезагрузку, затем постфиксную проверку. Необходимо видеть, что ничто не распечатано. Это - то, что я сделал для удаления ошибок из моей сборки. Это, кажется, значения по умолчанию, перенесенные от сборки. Я полагаю, что можно прокомментировать те 3 строки в master.cf, и затем можно использовать smtpd_client_restrictions, smtpd_sender_restrictions
, smtpd_recipient_restrictions
, и smtpd_helo_restrictions
в main.cf для постфикса.