• 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.

Issue Prevent Postfix from delivering e-mails locally

JohnBos

New Pleskian
We're currently trying to create a seperate POP/IMAP Plesk server.
Unfortunately we have a few domains that require to host mailboxes on seperate servers (eg. [email protected] towards a ticketsystem and the others to this Plesk server), we use a standalone MX server that separates the mails to send them to the right server.

Now for the the issue:
Plesk makes PostFix deliver e-mails locally if the domain has the mail service enabled, which would cause problems if mailboxes on this Plesk server would try to send e-mails to a mailbox on a separate server (so [email protected] to [email protected] in my example above).

Things we've tried:
The Plesk installer has an option for "MSMTP (relay only)", which would would be enough for us (we have serarate SMTP servers) but selecting this options disables all other mail functionality (removes dovecot/courier etc.)

There's also a support page that addresses this problem, but unfortunately none of the resulutions work for us:
  1. Disable the mail service per domain or subscription
    We can't disable the mailservice, we need it for the mailboxes :)

  2. If the previous steps did not help, check the postfix configuration
    We can't use this one because it only allows to catch extra domains for local delivery, not block any.
  3. If the external mail service is used for all subscriptions, it is possible to modify Postfix configuration to exclude domains which exist in Plesk from the local delivery
    This one did work, but the Plesk updater and plesk repair overwrites these changes. We tried several ways to block these rules from getting overwritten but they always get added back.
So the last 2 resolutions would work but they seem too dangerous to use on a production environment with 100+ domains as an update/repair would break it (see also).
 
Back
Top