1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Undelivered Mail Notifications

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Christopher McBride, Dec 9, 2010.

  1. Christopher McBride

    Christopher McBride Basic Pleskian

    26
    40%
    Joined:
    Apr 20, 2009
    Messages:
    91
    Likes Received:
    0
    Location:
    Glasgow, Scotland
    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
     
  2. Christopher McBride

    Christopher McBride Basic Pleskian

    26
    40%
    Joined:
    Apr 20, 2009
    Messages:
    91
    Likes Received:
    0
    Location:
    Glasgow, Scotland
    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.
     
  3. Christopher McBride

    Christopher McBride Basic Pleskian

    26
    40%
    Joined:
    Apr 20, 2009
    Messages:
    91
    Likes Received:
    0
    Location:
    Glasgow, Scotland
    Igor, can you offer any advice?

    Thanks
     
  4. NicoH

    NicoH Guest

    0
     
    Same problem. Email bounces are not delivered to the sender but to apache@server
    Any solution regarding this?
     
  5. NicoH

    NicoH Guest

    0
     
    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?
     
  6. NicoH

    NicoH Guest

    0
     
    Christopher, did you found any solution?
     
  7. NicoH

    NicoH Guest

    0
     
    Bump! Back up the list :)
     
Loading...