• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

Question Disable local mail delivery

Adeko

New Pleskian
Server operating system version
AlmaLinux 8.9
Plesk version and microupdate number
18.0.59 #2
Hi all,

I have an issue that i can not find a correct answer to for a while now.
Office 365 makes it very difficult to use regular smtp so that a webshop on Plesk can send E-mails from an Office 365 account.

Since our customers would like to continue using Office 365 we have setup the following:

Plesk E-mail server that has the domain example.com
Different server running a webshop that uses smtp to connect to this Plesk E-mail server to use webshop@example.com to send and recieve E-mails.
Office 365 with many E-mail accounts for example: orderpicking@example.com.

Now if the webshop sends a new order E-mail to orderpicking@example.com it will never arrive since Plesk will recognise example.com as a local domain that already exists and it will attempt to deliver the E-mail locally which fails because only webshop@example.com exists.
I know that disabling incoming E-mail for a domain solves the issue of same-server delivery as shown in this post but i would like to recieve E-mails on this webshop@example.com account too.

Is it not just possible to disable the check if a domain exists locally and always force postfix/plesk to lookup the mx records and send it over the internet?
A server-wide or domain/subscription specific a mailsetting that just says "allow E-mails to be delivered locally" that you can uncheck would be amazing, but if this has to be done by editing some postfix/plesk config files in linux that is fine too.
 
Is it not just possible to disable the check if a domain exists locally and always force postfix/plesk to lookup the mx records and send it over the internet?
A server-wide or domain/subscription specific a mailsetting that just says "allow E-mails to be delivered locally" that you can uncheck would be amazing, but if this has to be done by editing some postfix/plesk config files in linux that is fine too.
Not directly from Plesk. I am sure that you can modify the Postfix configuration to get this done. But that might break Plesk. So I would advice against that.

You've setup is rather unique. The most obvious solution would be to let the webserver, on which the webshop is hosted, send email directly. Alternatively you can consider using another domain for handling the webshop's email. Could be as simple as using a sub domain (ie: email.example.com). But rather than adding the sub domain as a sub domain in Plesk, add it as a full domain. That way you can created mailboxes for it.
 
So if i add mail.example.com and then make an E-mail account: webshop@mail.example.com it will not see that as example.com being the main domain?
Meaning that if i send from webshop@mail.example.com to orderpicker@example.com that will not trigger the local delivery?
Yes. Provided that the main domain (example.com) isn't available on the Plesk server (ie has been removed), or that the mail service for the main domain is disabled or configured for sending only.
 
Back
Top