main.cf silently modified during postfix 2.9.1-4 upgrade on 12.04LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Postfix 2.9.6-1~12.04.1 on Ubuntu 12.04.4 LTS
I did apt-get upgrade to the host in question and found out that /etc/postfix/
(/var/log/
Setting up mail-stack-delivery (1:2.0.
Mail stack delivery changes some postfix settings.^M
Old values are stored in /var/backups/
Feel free to revert any of them when the process is done.^M
Configuring postfix for mail-stack-delivery integration: .......
Change summary:
1. It decided to change my tls files to default values
smtpd_tls_key_file = /etc/ssl/
smtpd_tls_cert_file = /etc/ssl/
2. It deleted entries in smtpd_recipient
diff /etc/postfix/
45c45,56
< smtpd_recipient
---
> smtpd_recipient
> reject_
> permit_mynetworks,
> permit_
> check_client_access hash:/etc/
> check_helo_access hash:/etc/
> check_sender_access hash:/etc/
> reject_
> reject_
> reject_rbl_client sbl-xbl.
> check_sender_
> permit
118,123d128
< smtpd_sasl_
< smtpd_sasl_
< smtpd_sender_
< mailbox_command = /usr/lib/
< smtpd_tls_
< smtpd_tls_
and changed the command used by postfix to pass emails to dovecot. Note that before I had a command similar to the mailbox_comand but in /etc/postfix/
flags=DRhu user=virtual:
Which was then rewritten as
flags=DRhu user=virtual:
as dovecot-lda replaces deliver for dovecot 2.X. Incidentally, deliver is now an alias to dovecot-lda,
ls -lh /usr/lib/
lrwxrwxrwx 1 root root 11 May 14 14:24 /usr/lib/
probably as a stopgap until people change their configs.
3. There are a few more additions done to main.cf but they do not seem to be bad, so I am going to brush over them.
So, why was the file changed without warning? Were some of the options I used -- reject_rbl_client comes to mind -- deprecated? Still that does not warrant a silent change.
Thank you for your report.
It looks like you have the mail-stack-delivery package installed, which is designed to alter postfix's configuration as declared in the package description: "This package modifies postfix's configuration to integrate with dovecot".
If you do not want to have your postfix configuration automatically managed, then why do you have mail-stack-delivery installed?
Marking this bug as Invalid, as I think the behaviour you describe is by design. If this is not correct, please explain and then change the bug status back to New. Thanks!