Submitted by yngens on Thu, 09/18/2014 - 09:52
Kind of tired to fix this http://www.virtualmin.com/node/33027 manually every time Ubuntu upgrades. So am requesting to fix this, please.
Status:
Active
Kind of tired to fix this http://www.virtualmin.com/node/33027 manually every time Ubuntu upgrades. So am requesting to fix this, please.
Comments
Submitted by andreychek on Thu, 09/18/2014 - 11:11 Comment #1
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
Submitted by yngens on Thu, 09/18/2014 - 19:38 Comment #2
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
Submitted by andreychek on Thu, 09/18/2014 - 19:44 Comment #3
Thanks for that output -- one more related question, what is the output of this command:
postconf | grep home_mailbox
Submitted by yngens on Thu, 09/18/2014 - 23:18 Comment #4
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.
Submitted by andreychek on Fri, 09/19/2014 - 09:37 Comment #5
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?
Submitted by yngens on Sun, 09/21/2014 - 13:28 Comment #6
These settings are working fine for this server:
ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
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.
Submitted by yngens on Mon, 10/13/2014 - 07:51 Comment #7
Any news on this? Today we had to manually fix this bug on several of our Ubuntu servers again.
Submitted by andreychek on Tue, 12/02/2014 - 10:14 Comment #8
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