• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue New mails not being properly created

NeoTrafy

Basic Pleskian
Server operating system version
Almalinux 9.5
Plesk version and microupdate number
18.0.66 #2
I migrated to a new server and wanted to move the mailnames folder to a new location editing main.cf
Default: /var/qmail/mailnames
Moved to: /data/mailnames

The thing is after a few weeks mail stoped working. Mail said had no permissions to create folders or something like that and the main.cf reset to the default folder so I copied the mailnames to the default path and everything started to work again.
But today I noticed that even everyone was working without problems, the new subscriptions I create they use the /data/mailnames folder instead of the default path.

I had an announcement in the plesk gui saying I had to do plesk mail repair and after that the virtual_mailbox_base changed again to /data/mailnames instead of the default.

I already checked in the FAQ and it says the customized entries are reverted automatically after an update or if you do the plesk repair. Where can I change that so the default remains instead of changing again to the path I edited 6 weeks ago. And how's that possible that if the mailbox_base is routed to /var/qmail/mailnames the new subscriptions use the /data/mailnames? I cannot create mails for those subscriptions because they're being generated wrong.

Greetings.
 
Hello, @NeoTrafy Have you changed anything else apart from the virtual_mailbox_base value in the /etc/postfix/main.cf file or in another configuration file? Could you confirm what's the value of mydestination and the exact error message you encounter, if any?
 
Hello,
In main.cf I have the
Code:
virtual_mailbox_base = /var/qmail/mailnames
mydestination = localhost.$mydomain, localhost, localhost.localdomain

But when the new mails of new subscriptions are created they show up in /data/mailnames instead of the /var/qmail/mailnames.
Another strange thing is when a mail is received this is what's logged:

Jan 17 09:56:55 sv03 postfix-local[761579]: 5977EC000FE4: from=<external@domain>, to=<[email protected]>, dirname=/datos/mailnames but anyway the mail delivered to the /var/qmail/mailnames

I'm doing some tests and it seems like at the moment of creating the mail account it's created in the /datos/mailnames and once he tries to save the first mail or login it run the mkdir in the /var/qmail/mailnames but as the domain folder is not already available (or it's being created as popuser:popuser which has no permission as the mailnames folder is root:root) it fails:
Jan 17 03:58:29 sv03 dovecot[365960]: service=lda, user=[email protected], ip=[]. Error: mkdir(/var/qmail/mailnames/newclient.com/hi/Maildir) failed: Permission denied (euid=30(popuser) egid=30(popuser) missing +w perm: /var/qmail/mailnames, dir owned by 0:0 mode=0755)

If I manualy cp -avr /datos/newclient.com to /var/qmail/mailnames after that it works as expected, but it's a bit insane that he's using the wrong path or even change the default /var/qmail/mailnames path to /datos/mailnames after updates or plesk repair.

Thanks for your time.
 
Thank you for the confirmation. Could you please also confirm what does the following command returns:

grep PLESK_MAILNAMES_D /etc/psa/psa.conf

if the correct folder is returned, I would suggest opening a ticket with our support team, so they can log into the server and further troubleshoot what is causing the behavior with new subscriptions.
 
Back
Top