Bug 1225397 - postfix gives warnings about deprecated parameters
Summary: postfix gives warnings about deprecated parameters
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Network (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Peter Varkoly
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-27 15:26 UTC by Freek de Kruijf
Modified: 2024-07-02 13:27 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch file for config.postfix (2.88 KB, patch)
2024-05-27 15:27 UTC, Freek de Kruijf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Freek de Kruijf 2024-05-27 15:26:44 UTC
postfix gives warnings about deprecated parameters
May 27 12:27:56 localhost.localdomain cond_slp[1447]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: support for parameter "smtp_enforce_tls" will be removed; instead, specify "smtp_tls_security_level"
May 27 12:27:56 localhost.localdomain cond_slp[1447]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: support for parameter "smtpd_enforce_tls" will be removed; instead, specify "smtpd_tls_security_level"
May 27 12:27:56 localhost.localdomain cond_slp[1447]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: support for parameter "smtp_use_tls" will be removed; instead, specify "smtp_tls_security_level"
May 27 12:27:56 localhost.localdomain cond_slp[1447]: /usr/sbin/postconf: warning: /etc/postfix/main.cf: support for parameter "smtpd_use_tls" will be removed; instead, specify "smtpd_tls_security_level"

These parameters are introduced in /sbin/config.postfix

The attached patch file removes this introduction, the replacements are already present in config.postfix.
Also a bug in the naming of backups in /var/adm/backups/postfix is addressed.

In principle "$POSTFIX_SMTP_TLS_CLIENT" == "must" should not be expanded in $PCONF -e "smtp_tls_security_level = encrypt". This is a global definition. It should be expanded in smtp_tls_policy_maps = lmdb:/etc/postfix/tls_policy and only for specific destinations in /etc/postfix/tls_policy.
So the possibility "must" should be accompanied by specific destinations.
Comment 1 Freek de Kruijf 2024-05-27 15:27:58 UTC
Created attachment 875136 [details]
Patch file for config.postfix
Comment 2 Freek de Kruijf 2024-05-27 15:58:15 UTC
(In reply to Freek de Kruijf from comment #0)
> postfix gives warnings about deprecated parameters
> In principle "$POSTFIX_SMTP_TLS_CLIENT" == "must" should not be expanded in
> $PCONF -e "smtp_tls_security_level = encrypt". This is a global definition.
> It should be expanded in smtp_tls_policy_maps = lmdb:/etc/postfix/tls_policy
> and only for specific destinations in /etc/postfix/tls_policy.
> So the possibility "must" should be accompanied by specific destinations.

Setting this parameter to this value also results in amavis not able to deliver messages back to postfix. Only after resetting the value to "may" gets these messages again processed by postfix.
Comment 3 Freek de Kruijf 2024-05-28 13:57:34 UTC
(In reply to Freek de Kruijf from comment #2)
> (In reply to Freek de Kruijf from comment #0)
> > postfix gives warnings about deprecated parameters
> > In principle "$POSTFIX_SMTP_TLS_CLIENT" == "must" should not be expanded in
> > $PCONF -e "smtp_tls_security_level = encrypt". This is a global definition.
> > It should be expanded in smtp_tls_policy_maps = lmdb:/etc/postfix/tls_policy
> > and only for specific destinations in /etc/postfix/tls_policy.
> > So the possibility "must" should be accompanied by specific destinations.
> 
> Setting this parameter to this value also results in amavis not able to
> deliver messages back to postfix. Only after resetting the value to "may"
> gets these messages again processed by postfix.

It is the reverse, postfix can't deliver the message to amavis, because it requires amavis to present STARTTLS.