• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Using Plesk only for web not e-mail

FlorisB

New Pleskian
What is the proper way to use Plesk for webhosting only and not for e-mail?
We already have a separate mailserver setup for that.

I disabled the "Enable mail management functions in Panel" box, and set the number of e-mail boxes to 0 for all packages.
Also the MX-records for the domain are set to the proper external mailserver.
But when PHP web applications send e-mail qmail still thinks the domain is local:

Nov 19 12:28:00 plesk10 qmail-queue-handlers[26922]: Handlers Filter before-queue for qmail started ...
Nov 19 12:28:00 plesk10 qmail-queue-handlers[26922]: [email protected]
Nov 19 12:28:00 plesk10 qmail-queue-handlers[26922]: [email protected]
Nov 19 12:28:00 plesk10 qmail: 1321702080.100783 new msg 2232460
Nov 19 12:28:00 plesk10 qmail: 1321702080.100810 info msg 2232460: bytes 427 from <[email protected]> qp 26923 uid 10011
Nov 19 12:28:00 plesk10 qmail: 1321702080.102754 starting delivery 147980: msg 2232460 to local [email protected]
Nov 19 12:28:00 plesk10 qmail: 1321702080.102775 status: local 1/10 remote 0/20
Nov 19 12:28:00 plesk10 qmail-local-handlers[26924]: Handlers Filter before-local for qmail started ...
Nov 19 12:28:00 plesk10 qmail-local-handlers[26924]: [email protected]
Nov 19 12:28:00 plesk10 qmail-local-handlers[26924]: [email protected]
Nov 19 12:28:00 plesk10 qmail-local-handlers[26924]: mailbox: /var/qmail/mailnames/NAME-OF-DOMAIN.COM
Nov 19 12:28:00 plesk10 qmail: 1321702080.106594 delivery 147980: failure: This_address_no_longer_accepts_mail./


Regenerating the configuration files with "/usr/local/psa/admin/sbin/mchk --with-spam" does not help either.
The domains are still listed in the /var/qmail/control/rcpthosts and virtualdomains configuration files.
 
Are you using your Plesk box for DNS servers or are you hosting DNS elsewhere?

There are a number of ways to handle this sort of configuration but it would be helpful to have a few more details about your setup.
 
DNS is external, and works fine.
E-mail from other providers arrives fine.

It is just that e-mail generated by PHP websites hosted on the Plesk box does not arrive.
Due to Plesk writing in the qmail configuration files that the domains are local, while they are not.
 
Last edited:
1. Open the domain in the Controlpanel
2. Click Mail
3. Click "Change Settings" og uncheck "Activate mail service on domain"

Mails will now be delivered to the proper external mailserver.
 
1. Open the domain in the Controlpanel
2. Click Mail
3. Click "Change Settings" og uncheck "Activate mail service on domain"

Mails will now be delivered to the proper external mailserver.

Aargh...
It seems that "Mail" settings window is not available unless you assign POP3 mailboxes to the package...

So I need to allow customers to create mailboxes in Plesk, to be able to DISABLE Plesk local mail's handling?! :(
 
Last edited:
Back
Top