# Email server issues after upgrade to Virtualmin 3.81

**URL:** <https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658>\
**Category:** Virtualmin\
**Created:** [October 19, 2010, 10:20pm UTC](https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658 "2010-10-19T22:20:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultrabizweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/76d3ee/32.png) [@ultrabizweb](https://forum.virtualmin.com/u/ultrabizweb)\
**Post date:** [October 19, 2010, 10:20pm UTC](https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658/1 "2010-10-19T22:20:14Z")

</div>

I seem to be having a problem with my postfix email server logging into POP3 to check mail I can send mail but not receive it. Everything was working fine before the upgrade to 3.81 I could send and receive email fine without any problems. server is setup to use TLS encryption. Below is my current config. I did change the mailbox\_command to mailbox\_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME to do the inital check and then I changed it back later to the default and commented the mailbox\_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME out. I tried with both settings and neither one seems to be working.

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# Debian specific: Specifying a file name will cause the first

# line of that file to be used as the name. The Debian default

# is /etc/mailname.

#myorigin = /etc/mailname

smtpd\_banner = $myhostname ESMTP $mail\_name [mail.whosspeakingtoday.net](http://mail.whosspeakingtoday.net)  
biff = no

# appending .domain is the MUA’s job.

append\_dot\_mydomain = no

# Uncomment the next line to generate “delayed mail” warnings

#delay\_warning\_time = 4h

readme\_directory = no

# TLS parameters

smtpd\_tls\_cert\_file = /etc/ssl/certs/smtpd.crt  
smtpd\_tls\_key\_file = /etc/ssl/private/smtpd.key  
smtpd\_use\_tls=yes  
smtpd\_tls\_session\_cache\_database = btree:${data\_directory}/smtpd\_scache  
smtp\_tls\_session\_cache\_database = btree:${data\_directory}/smtp\_scache

# See /usr/share/doc/postfix/TLS\_README.gz in the postfix-doc package for

# information on enabling SSL in the smtp client.

myhostname = [whosspeakingtoday.net](http://whosspeakingtoday.net)  
alias\_maps = hash:/etc/aliases  
alias\_database = hash:/etc/aliases  
myorigin = /etc/mailname  
mydestination = [whosspeakingtoday.net](http://whosspeakingtoday.net), [mail.whosspeakingtoday.net](http://mail.whosspeakingtoday.net), localhost  
relayhost =  
mynetworks = 127.0.0.0/8  
mailbox\_size\_limit = 0  
recipient\_delimiter = +  
inet\_interfaces = all  
virtual\_alias\_maps = hash:/etc/postfix/virtual  
sender\_bcc\_maps = hash:/etc/postfix/bcc  
mailbox\_command = procmail -a “$EXTENSION”  
#mailbox\_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME  
home\_mailbox = Maildir/[https://whosspeakingtoday.net:10000/](https://whosspeakingtoday.net:10000/)  
smtpd\_sasl\_auth\_enable = yes  
smtpd\_sasl\_security\_options = noanonymous  
broken\_sasl\_auth\_clients = yes  
smtpd\_recipient\_restrictions = permit\_sasl\_authenticated,permit\_mynetworks,reject\_unauth\_destination  
inet\_protocols = all  
smtpd\_sasl\_local\_domain =  
smtp\_tls\_security\_level = may  
smtpd\_tls\_security\_level = may  
smtpd\_tls\_auth\_only = no  
smtp\_tls\_note\_starttls\_offer = yes  
smtpd\_tls\_CAfile = /etc/ssl/certs/cacert.pem  
smtpd\_tls\_loglevel = 1  
smtpd\_tls\_received\_header = yes  
smtpd\_tls\_session\_cache\_timeout = 3600s  
tls\_random\_source = dev:/dev/urandom

Also here is my procmail log file below maybe some else is having the same issues I am. Any assistance would be helpful I am using Ubuntu 10.04.1 LTS

procmail: Unable to treat as directory “/home/whosspeakingtoday/homes/mikem/Maildir/new”  
procmail: Skipped “/home/whosspeakingtoday/homes/mikem/Maildir”  
procmail: Unable to treat as directory “/home/whosspeakingtoday/homes/mikem/Maildir/new”  
procmail: Skipped “/home/whosspeakingtoday/homes/mikem/Maildir”  
From [mikem@whosspeakingtoday.net](mailto:mikem@whosspeakingtoday.net) Tue Oct 19 21:06:58 2010  
Subject: =?utf-8?B?TWljcm9zb2Z0IE9mZmljZSBPdXRsb29rIFRlc3QgTWVzc2FnZQ==?=  
Folder: **Bounced** 0

---

<div class="post-metadata">

**Author:** ![ultrabizweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/76d3ee/32.png) [@ultrabizweb](https://forum.virtualmin.com/u/ultrabizweb)\
**Post date:** [October 19, 2010, 11:03pm UTC](https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658/2 "2010-10-19T23:03:45Z")

</div>

Here is my dovecot log looks like a permission error somewhere?

2010-10-19 22:53:01 POP3(mikem.whosspeakingtoday): Error: mkdir(/home/whosspeakingtoday/homes/mikem/Maildir/cur) failed: Permission denied (euid=1005(mikem.whosspeakingtoday) egid=1000(whosspeakingtoday) missing +w perm: /home/whosspeakingtoday/homes/mikem/Maildir)  
2010-10-19 22:53:01 POP3(mikem.whosspeakingtoday): Error: Couldn’t open INBOX: Internal error occurred. Refer to server log for more information. [2010-10-19 22:53:01]  
2010-10-19 22:53:01 POP3(mikem.whosspeakingtoday): Info: Couldn’t open INBOX top=0/0, retr=0/0, del=0/0, size=0  
2010-10-19 22:54:37 IMAP(mikem.whosspeakingtoday): Error: mkdir(/home/whosspeakingtoday/homes/mikem/Maildir/cur) failed: Permission denied (euid=1005(mikem.whosspeakingtoday) egid=1000(whosspeakingtoday) missing +w perm: /home/whosspeakingtoday/homes/mikem/Maildir)  
2010-10-19 22:54:37 IMAP(mikem.whosspeakingtoday): Error: mkdir(/home/whosspeakingtoday/homes/mikem/Maildir/cur) failed: Permission denied (euid=1005(mikem.whosspeakingtoday) egid=1000(whosspeakingtoday) missing +w perm: /home/whosspeakingtoday/homes/mikem/Maildir)  
2010-10-19 22:54:37 imap-login: Info: Login: user=\<mikem.whosspeakingtoday\>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured  
2010-10-19 22:54:37 IMAP(mikem.whosspeakingtoday): Error: mkdir(/home/whosspeakingtoday/homes/mikem/Maildir/cur) failed: Permission denied (euid=1005(mikem.whosspeakingtoday) egid=1000(whosspeakingtoday) missing +w perm: /home/whosspeakingtoday/homes/mikem/Maildir)  
2010-10-19 22:54:37 IMAP(mikem.whosspeakingtoday): Info: Connection closed bytes=72/618

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [October 20, 2010, 2:03am UTC](https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658/3 "2010-10-20T02:03:12Z")

</div>

Yeah, the error here seems pertinent:

`Error: mkdir(/home/whosspeakingtoday/homes/mikem/Maildir/cur) failed: Permission denied (euid=1005(mikem.whosspeakingtoday) egid=1000(whosspeakingtoday) missing +w perm: /home/whosspeakingtoday/homes/mikem/Maildir)`

It sounds like there’s a permissions problem preventing Dovecot from being able to interact with the mail files.

That’s not likely to be related to your Virtualmin upgrade, as that doesn’t change config files or filesystem permissions during the upgrade. It’s possible something else occurred at a similar time though.

Is it just this one user that’s having trouble? Or are all users seeing this same problem?

You may want to verify that this user had permission to write to the dir “/home/whosspeakingtoday/homes/mikem/Maildir”.

-Eric

---

<div class="post-metadata">

**Author:** ![ultrabizweb](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/76d3ee/32.png) [@ultrabizweb](https://forum.virtualmin.com/u/ultrabizweb)\
**Post date:** [October 20, 2010, 3:39am UTC](https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658/4 "2010-10-20T03:39:01Z")

</div>

Thank you so much i knew it might be a permission problem but didn’t know exactly where to look though. I chown the directory /home/whosspeakingtoday/homes/mikem/Maildir to mikem.whosspeakingtoday and viola it works sent and recieved test email and everything. I still don’t know how the permissions were changed as it showed the directory was owned by root not the user. I have duplicated this issue on one of my production servers earlier this morning not the one I just fixed, with the same user different domain. It has me a little bit concerned but at least I know how to fix the issue now. Thank you again so much. I reverted my production server back to another vzdump snapshot last night so it would be working today this was before I knew how to fix the problem. I will let you know how the upgrade for it goes after I finish it Wed night. I will make notes of the user permissions as well before and after the upgrade.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:50am UTC](https://forum.virtualmin.com/t/email-server-issues-after-upgrade-to-virtualmin-3-81/37658/5 "2020-04-30T05:50:09Z")

</div>

Closed on April 30, 2020, 5:50am UTC


