Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 10 of 10

This is a discussion on email with return path "nobody" rejected in the Open Discussion & Chit-chat forum
I have a forwarder on a clients email account hosted on my JPC vps to her ISP account at bellsouth which works as expected when ...

  1. #1
    JPC Senior Member
    Join Date
    Jul 2006
    Posts
    92

    email with return path "nobody" rejected

    I have a forwarder on a clients email account hosted on my JPC vps to her ISP account at bellsouth which works as expected when sent from other users email accounts. However, a form on the account submits the form data using its script which comes in as expected on her vps account but is rejected at bellsouth when forwarded apparently because the return path is from user nobody@vps.peachtreewebs.com.

    Its my understanding that the server adds this return path when when using the standard mail functions.

    Any suggestions on getting around this?

    Thanks

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    Is it phpBB version 2.x?

    message length filler
    Good luck

  3. #3
    JPC Senior Member
    Join Date
    Jul 2006
    Posts
    92
    No, its just a simple form script using php that sends the form data. I don't have direct access to the script or I would see if I could force the return path somehow.

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    Yes, the script probably needs to be modified to add the return path. Perhaps the default can be set up in .ini ?? I'm not sure.

    For the heck of it, I looked at my modded forum code. Here is how it was modified for phpBB 2.x
    2 spots in /path/to/forumroot/includes/emailer.php: (near lines 212 and 227)
    Code:
    find
    $result = @mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers);
    
    replace with
    
    $result = @mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers, "-f " . $board_config['board_email']);
    I'm going to go look at php.ini see if there's a solution in there.
    Good luck

  5. #5
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    I find:

    mail.force_extra_parameters
    and
    sendmail_from

    That look interesting. Off to google (or php.net)!
    Good luck

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    Looks like you can set the value (either "-f whateveruser@whateverdomain.com" for mail.force_extra_parameters or just "whateveruser@whateverdomain.com" for sendmail_from) in either place.
    Good luck

  7. #7
    JPC Senior Member
    Join Date
    Jul 2006
    Posts
    92
    Yea, I had found that and I'll fool around with it some. I want to do it to the scripts ini because that will isolate the change to the script whereas doing it to the php.ini will effect all sites.

    Thanks

  8. #8
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    If you want to avoid modifying the third party scritp, you could perhaps wrap it in a script of your own that makes those settings?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  9. #9
    JPC Senior Member
    Join Date
    Jul 2006
    Posts
    92
    I've considered that and may well yet do it. This form and script is an extension to Joomla which I have earlier versions on other sites which have not had the problem. It would simplify my life if I can get this solved at the extension level and the developers are cooperating. Thanks for the suggestion.

  10. #10
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,304
    I should hope they are cooperating, it is about 5 seconds' worth of coding.
    Good luck

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •