Webmin upgrade revert maildir to mailbox in procmailrc

Kind of tired to fix this http://www.virtualmin.com/node/33027 manually every time Ubuntu upgrades. So am requesting to fix this, please.



Howdy -- Virtualmin will update the procmailrc file to match what the Postfix main.cf is configured to use. If Postfix is still configured to use Maildir, the procmailrc may indeed be updated to do the same.

What is the output of this command:

postconf -n

Well, I believe Poxtfix is configured correctly, nevertheless with every OS upgrade procmail changes those two lines. And this happens only on Ubuntu servers.

The output is:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = ns1.gezitter.org, ns1, localhost
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Drupion)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual

Thanks for that output -- one more related question, what is the output of this command:

postconf | grep home_mailbox

It is empty:

postconf | grep home_mailbox
home_mailbox =

By the way, I hope you understand these two outputs are from the manually fixed system.

Where do you want your mbox file to be? Did you store thoat in the user's homedir in /home, or are those stored in /var/mail?

These settings are working fine for this server:


but they were not custom settings of our choice, we never modified them, so they come like so by default Virtualmin installation script. However, even with default settings every Ubuntu upgrade changes them.

Any news on this? Today we had to manually fix this bug on several of our Ubuntu servers again.

My apologies, I think I missed your update.

Also, in re-reading your request, I realized I misunderstood what setting you were trying to use.

If you wish to use Maildir -- Postfix would need to be configured with "home_mailbox" set to "Maildir".

That normally occurs by default, but if that were removed or commented out for some reason, that would cause Virtualmin to think that you intend to use Mbox rather than Maildir.

If you edit /etc/postfix/main.cf, verify that there is a line that looks like this:

home_mailbox = Maildir/

Once you add or update that, restart Webmin with this command:

/etc/init.d/webmin restart