• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Undelivered Mail Notifications

Christopher McBride

Basic Pleskian
I (the system admin) am currently recieving undelivered mail notifications from apache when outgoing mails generated by a website are not being delivered.

Specifically from a forum registration page which seems to pick up a few spam registrations per day.
The link to activate the account is sent to the registering address - but some do not exist, resulting in the bounce.


I would expect that the undelivered mail notification is sent back to the sender address of the email.

They are, however, being sent to apache@[domain].com.



Can anyone offer any advice to set it to send the messages to the sending address?


Thanks
 
Anyone able to help on this?

It's also happening for other domains - and I presume it's a global setting somewhere to send the bounce to the name of the process rather than returning to sender.
 
Same problem. Email bounces are not delivered to the sender but to apache@server
Any solution regarding this?
 
Studying the e-mails learned me that the Return-Path is not set correctly.

PHPMailer has a function to overwrite this
Using
$mail->From = $email;
$mail->Sender = $email;
$mail->AddCustomHeader('Return-Path: '.$email.'');

Should overwrite the return path but that doesnt work.

Another tried solution was to change the php.ini file

sendmail_path = /usr/sbin/sendmail -t -i
sendmail_path = /usr/sbin/sendmail -t -i -f

but that stops mail from working completely.

Looks like sendmail overwrites the return path, which is very annoing since bounce messages are not delivered correctly. (they are send to apache@server.)
Any ideas on how to fix this?
 
Back
Top