• 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

Disabled Plesk mail and Specify External Mail Server

Chris_Lemmer

New Pleskian
Hi there,

I have disabled my Plesk mail and specified an external SMTP mail server for Plesk. I am using Microsoft office 365 for the mail. However, I can see that the mail isn't working. Please see this log entry:

Nov 28 03:24:48 panel01 msmtp: host=smtp.office365.com tls=on auth=on user=[My Office 365 User] from=root@[My Plesk URL] recipients=[My E-Mail] smtpstatus=550 smtpmsg='550 5.7.60 SMTP; Client does not have permissions to send as this sender' errormsg='the server did not accept the mail' exitcode=EX_UNAVAILABLE

From what I can see, Plesk is trying to relay the mail as root@[My Plesk URL] and not [My Office 365 User].

So Microsoft is blocking this. How can I tell Plesk to relay the mails from another "FROM" address?

Thanks
Chris
 
Exact same issue here.

I just set up Office 365 in the External SMTP Server configuration, and tried to send a mass email for testing (just to the Admin address), but it doesn't work.
When I use my own (external) mailserver, it does work, and I see the following log on the mailserver:

Code:
[2015.11.29] 16:03:52 [19213] CMD: MAIL FROM:<psaadm@[My Plesk URL]> SIZE=581
[2015.11.29] 16:03:52 [19213] RSP: 250 2.1.0 Sender OK
[2015.11.29] 16:03:52 [19213] CMD: RCPT TO:<[ADMIN EMAIL]>
[2015.11.29] 16:03:52 [19213] RSP: 250 2.1.5 Recipient OK

So, although I enter a specific email address from which the email should be sent (the administrator's email address), Plesk uses the psaadm@[My Plesk URL] address to send the email!

plesk.png

This is of course not working with Office 365, because the service only allows you to send from email addresses that are specifically created there.

Running Plesk 12.5.30 Update #12 on CentOS 7.1.1503.
 
Back
Top