Bug 52842 - Error messages during execution of univention-mail-postfix.postinst
Error messages during execution of univention-mail-postfix.postinst
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Sönke Schwardt-Krummrich
Sebastian Lobinger
:
: 51504 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-02-24 11:43 CET by Sönke Schwardt-Krummrich
Modified: 2021-05-25 16:01 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2021-02-24 11:43:58 CET
There are several error messages during postinst of univention-mail-postfix:

Setting up univention-mail-postfix (14.0.0-2A~5.0.0.202101222047) ...
W: failed to convert the username listfilter to the uid
W: failed to convert the username listfilter to the uid
W: failed to convert the username listfilter to the uid
Multifile: /etc/postfix/ldap.canonicalsender
File: /etc/postfix/tls_policy
File: /etc/aliases
newaliases: fatal: open /etc/postfix/main.cf: No such file or directory
Multifile: /etc/postfix/ldap.sharedfolderlocal
Multifile: /etc/postfix/ldap.virtual
Multifile: /etc/postfix/ldap.sharedfolderlocal_aliases
Multifile: /etc/postfix/transport
postmap: fatal: open /etc/postfix/main.cf: No such file or directory
Multifile: /etc/postfix/ldap.distlist
File: /etc/postfix/sasl/smtpd.conf
Multifile: /etc/postfix/ldap.saslusermapping
Multifile: /etc/postfix/ldap.groups
Multifile: /etc/postfix/ldap.transport
Multifile: /etc/postfix/main.cf
Multifile: /etc/postfix/ldap.virtual_mailbox
Multifile: /etc/postfix/ldap.virtualwithcanonical
Multifile: /etc/postfix/ldap.canonicalrecipient
File: /etc/cron.d/univention-mail-postfix
File: /etc/listfilter.secret
Multifile: /etc/postfix/master.cf
File: /etc/init.d/postfix
Multifile: /etc/postfix/ldap.virtualdomains
File: /etc/mailname
Multifile: /etc/postfix/ldap.sharedfolderremote
Multifile: /etc/postfix/ldap.external_aliases
File: /etc/pam.d/smtp
Create postfix/autostart
Create mail/postfix/virtual/enabled
Create mail/postfix/transport/ldap/enabled
Create mail/postfix/inet/interfaces
Create mail/postfix/ldap/timeout
Create mail/postfix/policy/listfilter
Create mail/postfix/policy/listfilter/use_sasl_username
Create mail/postfix/masquerade/domains
Create mail/postfix/masquerade/exceptions
Create mail/alias/root
Create mail/alias/postmaster
Create mail/messagesizelimit
Create mail/postfix/tls/client/exclude_ciphers
Create mail/postfix/ldaptable/starttls
Create mail/postfix/ldaptable/tlsrequirecert
Create mail/postfix/ldaptable/tlscacertfile
Create mail/postfix/ldaptable/debuglevel
Create mail/postfix/smtpd/tls/dh1024/param/file
Create mail/postfix/smtpd/tls/dh512/param/file
Create mail/postfix/smtpd/tls/eecdh/grade
Create mail/postfix/smtpd/tls/exclude_ciphers
Create mail/postfix/tls/preempt/cipherlist
Create mail/postfix/smtpd/tls/loglevel
Create mail/postfix/smtp/tls/loglevel
Create mail/postfix/mastercf/options/smtps/smtpd_tls_wrappermode
Create mail/postfix/mastercf/options/smtps/smtpd_sasl_auth_enable
Create mail/postfix/mastercf/options/submission/smtpd_sasl_auth_enable
Create mail/postfix/mastercf/options/submission/smtpd_enforce_tls
Create mail/postfix/tls/client/policy/amavis
W: failed to convert the username listfilter to the uid
File: /etc/postfix/tls_policy
File: /etc/init.d/postfix
Module: autostart
Multifile: /etc/postfix/main.cf
Multifile: /etc/postfix/ldap.virtual
Multifile: /etc/postfix/ldap.canonicalrecipient
Multifile: /etc/postfix/ldap.virtual_mailbox
Multifile: /etc/postfix/ldap.distlist
Multifile: /etc/postfix/ldap.groups
Multifile: /etc/postfix/master.cf
Multifile: /etc/postfix/ldap.virtualwithcanonical
Multifile: /etc/postfix/ldap.canonicalsender
Multifile: /etc/postfix/ldap.saslusermapping
Multifile: /etc/postfix/ldap.sharedfolderlocal_aliases
Multifile: /etc/postfix/ldap.sharedfolderremote
Multifile: /etc/postfix/ldap.transport
Multifile: /etc/postfix/ldap.sharedfolderlocal
File: /etc/aliases
Multifile: /etc/postfix/ldap.external_aliases
File: /etc/listfilter.secret
Multifile: /etc/postfix/ldap.virtualdomains
Create mail/postfix/smtpd/restrictions/recipient/10
Create mail/postfix/smtpd/restrictions/recipient/30
Create mail/postfix/smtpd/restrictions/recipient/50
Create mail/postfix/smtpd/restrictions/recipient/70
Create mail/postfix/smtpd/tls/mandatory_protocols
Create mail/postfix/tls/client/mandatory_protocols
Create mail/postfix/tls/client/protocols
W: failed to convert the username listfilter to the uid
Multifile: /etc/postfix/main.cf
Adding user `postfix' to group `sasl' ...
Adding user postfix to group sasl
Done.
File: /etc/mailname
File: /etc/listfilter.secret
Reloading configuration files for periodic command scheduler: cron.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2021-02-24 13:09:06 CET
The system user "listfilter" and the file /etc/postfix/main.cf are now created before calling #DEBHELPER# code.

[5.0-0] b6dfeff7a6 Bug #52842: add changelog entry
[5.0-0] e939a40d67 Bug #52842: add user listfilter first to prevent errors

Package: univention-mail-postfix
Version: 14.0.0-3A~5.0.0.202102241306
Branch: ucs_5.0-0
Comment 2 Florian Best univentionstaff 2021-03-02 12:41:24 CET
OK: no error messages are printed during installation and upgrade
OK: changelog entry
Comment 3 Florian Best univentionstaff 2021-03-02 18:41:36 CET
*** Bug 51504 has been marked as a duplicate of this bug. ***
Comment 4 Florian Best univentionstaff 2021-03-09 16:45:01 CET
Felix reported the following error messages on a new installation of UCS 5:

-> ucr set interfaces/ens6/type='manual'
Setting interfaces/ens6/type
Multifile: /etc/network/interfaces
postconf: warning: ldap:/etc/postfix/ldap.virtual_mailbox: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.sharedfolderlocal: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.transport: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.virtualdomains: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.distlist: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.virtual: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.external_aliases: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.sharedfolderremote: unused parameter: search_timeout=15
postconf: warning: ldap:/etc/postfix/ldap.sharedfolderlocal_aliases: unused parameter: search_timeout=15
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2021-03-11 10:39:18 CET
The parameter is now called "timeout" instead of "search_timeout".
See also "man 5 ldap_table"

Fixed all LDAP lookup tables of univention-mail-postfix:

[5.0-0] bd4135a89c Bug #52842: ldap_tables: "search_timeout" has been renamed to "timeout"

Package: univention-mail-postfix
Version: 14.0.0-4A~5.0.0.202103111031
Branch: ucs_5.0-0
Comment 6 Sebastian Lobinger univentionstaff 2021-03-12 15:10:40 CET
verified changes to fix error described in comment 4:
- code changes seems plausible
- search_timeout is not used anymore
- changelog entry exists
- error does not occur anymore
Comment 7 Florian Best univentionstaff 2021-05-25 16:01:03 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".