Discussion:
master.cf, arguments line, short form: newlines possible ?
(too old to reply)
Вадим Бажов
2016-07-15 08:30:55 UTC
Permalink
Hi, people !

Is it possible to multiline short form command arguments in master.cf file.
-o
smtpd_sender_restrictions=reject_non_fqdn_sender,reject_unknown_sender_domain,reject_sender_login_mismatch,reject_unlisted_sender,permit_sasl_authenticated,reject
-o smtpd_sender_restrictions=
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_sender_login_mismatch,
reject_unlisted_sender,
permit_sasl_authenticated,
reject
--
С уважением,
Бажов Вадим,
Инженер отдела технической поддержки,
Компания Айдеко
--
Телефоны: +7 (495) 987-32-70; +7 (495) 662-87-34 (тех. поддержка); +7 (343) 220-77-55; Факс: +7 (343) 220-77-85

Электронная почта:
Вопросы по приобретению: ***@ideco.ru
Технические вопросы: ***@ideco.ru
Партнерство: ***@ideco.ru
Общие вопросы: ***@ideco.ru

Сайт: http://ideco.ru
Форум: http://forum.ideco.ru
A. Schulze
2016-07-15 10:26:52 UTC
Permalink
Post by Вадим Бажов
Hi, people !
Is it possible to multiline short form command arguments in master.cf file.
-o
smtpd_sender_restrictions=reject_non_fqdn_sender,reject_unknown_sender_domain,reject_sender_login_mismatch,reject_unlisted_sender,permit_sasl_authenticated,reject
-o smtpd_sender_restrictions=
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_sender_login_mismatch,
reject_unlisted_sender,
permit_sasl_authenticated,
reject
you may define a macro in main.cf:

submission_sender_restrictions=
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_sender_login_mismatch,
reject_unlisted_sender,
permit_sasl_authenticated,
reject

and use it in master.cf:
-o smtpd_sender_restrictions=${submission_sender_restrictions}

Andreas
Wietse Venema
2016-07-15 13:46:51 UTC
Permalink
Post by Вадим Бажов
Hi, people !
Is it possible to multiline short form command arguments in master.cf file.
-o
smtpd_sender_restrictions=reject_non_fqdn_sender,reject_unknown_sender_domain,reject_sender_login_mismatch,reject_unlisted_sender,permit_sasl_authenticated,reject
-o smtpd_sender_restrictions=
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_sender_login_mismatch,
reject_unlisted_sender,
permit_sasl_authenticated,
reject
You can with Postfix 3.0 or later:

submission inet .. .. .. .. .. smtpd
-o { smtpd_sender_restrictions =
foo,
bar,
...
}

But, it's probably more readable to do this as follows:

main.cf:
submission_sender_restrictions = foo, bar, ...

master.cf:
submission inet .. .. .. .. .. smtpd
-o smtpd_sender_restrictions=$submission_sender_restrictions

Complex overrides in master.cf are better limited.

Wietse
Вадим Бажов
2016-07-15 13:55:22 UTC
Permalink
Thank you, Wietse.
Going to update my installation.
Post by Wietse Venema
Post by Вадим Бажов
Hi, people !
Is it possible to multiline short form command arguments in master.cf file.
-o
smtpd_sender_restrictions=reject_non_fqdn_sender,reject_unknown_sender_domain,reject_sender_login_mismatch,reject_unlisted_sender,permit_sasl_authenticated,reject
-o smtpd_sender_restrictions=
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_sender_login_mismatch,
reject_unlisted_sender,
permit_sasl_authenticated,
reject
submission inet .. .. .. .. .. smtpd
-o { smtpd_sender_restrictions =
foo,
bar,
...
}
submission_sender_restrictions = foo, bar, ...
submission inet .. .. .. .. .. smtpd
-o smtpd_sender_restrictions=$submission_sender_restrictions
Complex overrides in master.cf are better limited.
Wietse
--
С уважением,
Бажов Вадим,
Инженер отдела технической поддержки,
Компания Айдеко
--
Телефоны: +7 (495) 987-32-70; +7 (495) 662-87-34 (тех. поддержка); +7 (343) 220-77-55; Факс: +7 (343) 220-77-85

Электронная почта:
Вопросы по приобретению: ***@ideco.ru
Технические вопросы: ***@ideco.ru
Партнерство: ***@ideco.ru
Общие вопросы: ***@ideco.ru

Сайт: http://ideco.ru
Форум: http://forum.ideco.ru
Continue reading on narkive:
Loading...