Emails are working great but they don't show up in Outlook nor other clients

OS type and version Ubuntu 22.04
Webmin version 2.0.21
Virtualmin version 7.7 Pro
Related packages

Hi there,

I come here with a stupid question. I have a brand new install of Virtualmin 7.7 Pro, imported the previous domains from Virtualmin 6, after some tweaks I did the mail server to work again to receive and send emails but when it comes to have the emails on the email clients like Outlook or Android mail client, they simply don’t show up.

I can see the emails received when I go to Webmin and read user’s mail but I don’t see them at all on my client even that the sync happened just fine between the client and the server

Any thoughts?


are they using imap or pop3? If its pop3 it sound like they in a read state.

also try reindexing with dovecot, the command format is doveadm index -u bob INBOX

they use IMAP.

that’s strange try the reindexing

just reading the Tools/Doveadm - Dovecot Wiki
there is also force resync
doveadm force-resync -u bob INBOX

I did it, on 2 accounts without success. where can I see the sync logs ?

Don’t know, nto sure there would be a log. the index command has a few option to give more info when you run the command.

have you look in the users mail fold and see if the user:group look ok?

Amy chance Outlook is putting them in the junk folder, or not in date order - latest at the top?

I presumed you meant you can see the mail in the folder (with file manager) but the client is not seeing it.

I did a full sync of the folders and they don’t show up, neither in junk or spam. for me it seems like that dovecot stores the emails in one place and through imap I am getting pushed to a different location. how can I see where dovecot stores the emails. I can see them in virtualmin that they go to /var/mail/ folder but I have a suspicion that IMAP is trying to read the emails from /home/user_folder/mail where there are no stored emails.

hmmm not sure just copy files from one location is the right way to do it.
There is a VM cli to copy mail

I used it what I went from webmin for virtualmin, I did a trial run first to see how it worked ( I was using sendmail then) and ran the doveadm index -u bob INBOX to fix the index.

no thats not right, mail goes to /home/

Well, I know that before they were going to users home folder but now with 7.7 they go here, I don’t know if is Virtualmin fault or the way dovecot it setup.

How can I have them back to user’s home folder?

On mine, it’s /home/domain/homes/user/Maildir/

Actually, looking at the image and stefan’s note, I wonder if the location changes with the OS?

corrected, sorry

Maybe in webmin in user and groups. But its seems a bit screwed up.


As you guys mentioned, the setup is a bit screw up and sincerley I don’t know how to fix it :frowning:

I performed following steps and identified the issue

  1. Install temporarly roundcube to login
  2. I start sending messages and I can see I can get emails to my gmail or hotmail account so I know that emails are flowing
  3. In the /home/user_home_directory/homes/ I found the office folder that I rename it.
  4. As soon as I rename it, IMAP start complaining

Apr 21 11:14:20 srv1 dovecot: imap-login: Login:, method=PLAIN, rip=, lip=, mpid=213945, secured, session=<nLxAwtb56ot/AAAB>
Apr 21 11:14:20 srv1 dovecot: imap(<213945><nLxAwtb56ot/AAAB>: Error: Namespace ‘’: Mail storage autodetection failed with home=/home/user_home_directory/homes/office
Apr 21 11:14:20 srv1 dovecot: imap(<213945><nLxAwtb56ot/AAAB>: Disconnected: Namespace ‘’: Mail storage autodetection failed with home=/home/user_home_directory/homes/office in=0 out=420 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

  1. In virtualmin I can see that the user is under /var/mail/

Now the question is how I make IMAP to actually read the inbox from /var/mail or how to move the inbox from /var/mail to /home/user_home_directory/ ?

Thanks in advance.

So basically to send emails is using the folder from /home/user_home_directory but to receive emails is using /var/mail/ folder.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.