• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Two weird qmail/imap issues after migrating from old plesk version

JuliusT

New Pleskian
We've recently (otherwise succesfully) migrated from old plesk 11.* servers to up-to-date version 12 ones.
We use dovecot on the new, and used courier on the old plesks, and conversion to dovecot went nicely using http://wiki.dovecot.org/Migration/Courier

- The .qmail files in users Maildir folders under /var/qmail/mailnames/ should have the line
/usr/libexec/dovecot/dovecot-lda -d "$DELIVERED_TO"
in them, but everytime we change or add a new e-mail account, they get the line
/usr/bin/deliverquota ./Maildir
instead, which was in use on the old plesk server, and causes incoming mail to not be delivered. We - of course - do an automated

grep -rl '| /usr/bin/deliverquota ./Maildir' --include ".qmail" /var/qmail/mailnames/ | xargs sed -i 's,/usr/bin/deliverquota ./Maildir,/usr/libexec/dovecot/dovecot-lda -d "$DELIVERED_TO",g'

because of that, as a cronjob, but it's quite silly to have to do that..

I think it's related to the second issue, which is:

- In Plesk panel, under Home>Tools & Settings> Server-Wide Mail Settings, it says
"Installed IMAP/POP3 server Courier-IMAP"
while via https://pleskserverx:8447/select_components.html under "Different IMAP/POP3 servers"
  • Dovecot secure IMAP server with Sieve support
is selected, green and active. There is no courier service installed or active on this server.

How do we get the entry changed under Server-wide mail settings so that it correctly states the IMAP server in use? And this would probably also get the .qmail file to be creating the correct line.

When we installed this plesk server, I don't recall setting it to use Courier ever, so either plesk has decided to pick that itself, or has taken that setting from the old server somehow (without notifying us about that by the way)..
 
Last edited:
Sometimes it helps to switch from Dovecot to Courier-IMAP and back to Dovecot, to solve issues. Consider to use for Plesk 12.5:

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component courier

followed by

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component dovecot
 
Sometimes it helps to switch from Dovecot to Courier-IMAP and back to Dovecot, to solve issues. Consider to use for Plesk 12.5:

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component courier

followed by

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component dovecot

Thanks UFHH01, when I go to try this I will tell you the result.
 
Back
Top