• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Set/Change return path for Plesk Notifications emails

nilsringersma_nl

Basic Pleskian
Dear all,

I have a question about setting the return path ( envelope from ) for Plesk notification emails. I tried the documentation and KB but did not find any results. Please assist.

Context:
Plesk sends emails, i.e. when a backup task fails or completes with errors. Those emails are sent to a pre-defined address.

Problem:
On my Plesk server I'm using a relayfilter for Postfix in order to scan my outbound e-mails. The emails for the backup task are being blocked due to sender-verification which verifies the return-path / envelope from.

Log:
maillog.processed:Nov 23 21:49:06 vps-xxx-xxx postfix/smtp[23779]: 4842742187: to=<[email protected]>, relay=my.relayhost.com[11.222.33.444]:587, delay=0.14, delays=0.02/0.01/0.02/0.08, dsn=5.0.0, status=bounced (host my.relayhost.com[11.222.33.444] said: 550-Verification failed for <[email protected]> 550-Called: 555.66.77.88 550-Sent: RCPT TO:<[email protected]> 550-Response: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table 550 Invalid sender <[email protected]> (in reply to MAIL FROM command))

Question:
With my (edited) log above we can conclude that my relayhost is bouncing the message due to failing on sender verification. This is because the mailbox "[email protected]" does not exist. Also we can see the bounce itself fails, but thats logical.

I don't want to edit my servers hostname or create the mailbox. I rather want to force the return-path in Plesk configuration. ( similar to the way we can do this for a subscription's PHP-settings with the mail force extra params ).

- Is this possible?
- How can we do this?

Please note, just setting the "FROM header" is insufficient in this case because the relayhost needs to verify the existence of the return path.

Any tips or alternatives appreciated! :)
 
Hi

This is possible by setting the default from address for PHP that the Plesk server itself uses, on the latest version of Plesk Onyx it uses PHP 5.6, this is listed in the headers of any notification emails sent by Plesk.

You can modify the default PHP Return-Path / Envelope From address by editing the php.ini file that Plesk uses which is:

/usr/local/psa/admin/conf/php.ini

...and add the following line:

mail.force_extra_parameters = "[email protected]"

There is intentionally no space between '-f' and the email address. ... restart the Plesk service and try sending a notification email.

This does work and I have tested it on a dev server BUT I don't know if this would be overwritten with a Plesk update and it WILL affect all emails sent by the Plesk control panel.

If anything it might offer you a temporary solution until you can get an official response... :)

Thanks
Rob
 
Back
Top