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

This is a discussion on Proper EXIM Setup? in the VPS & Dedicated forum
Hi Folks, I am new to VPS and love it here at Jag. These forums are great! But I can't seem to find the solution ...

  1. #1
    JPC Member
    Join Date
    Jan 2008
    Posts
    3

    Question Proper EXIM Setup?

    Hi Folks,

    I am new to VPS and love it here at Jag. These forums are great! But I can't seem to find the solution to what I am trying to figure out... and I am hoping it's something simple.

    What is happening is that when one of my sites uses any sort of web form to send an e-mail, and that e-mail gets bounced back for whatever valid reason, the bounces come back to clientusername@myrootdomain.com, and not the address that they have provided in the "FROM" field in their scripts or web forms.

    So these bounces just endup stuck in my mail queue with nowhere to go, and the client never knows they bounce.

    Looking at the bounced mail headers, it's looks like EXIM is using the suexec username and adding the root server name in the "ENVELOPE-FROM" header, and that is how this is happening (at least that my guess, and that does sound like what it SHOULD be doing).

    I've tried adding the -f option to the user scripts, but that didn't help.

    So I guess the question is...

    Is there a simple rewrite rule I can plug into WHM's EXIM config, to rewrite the "ENVELOPE-FROM" header from what it wants to use, to what has been provided in the "FROM" header information given to it via the users scripts that are running on the sites?

    I should also note (just in case it makes a difference) I already have one rewrite rule in there to change servername.myrootdomain.com to simply myrootdomain.com.

  2. #2
    JPC Member
    Join Date
    Jan 2008
    Posts
    3
    80 people read this, but no one responded, does that mean no one knows? Does this happen on your sites??

  3. #3
    Loyal Client
    Join Date
    Nov 2007
    Location
    UK
    Posts
    281
    Does this happen with all your clients? What is the mail script sending out as if it is just using the default it will sendout using user@rootdomain you need to change that or write s script that sends out as the client (user@usersdomain) then it will bounce back to them.

  4. #4
    JPC Member
    Join Date
    Jan 2008
    Posts
    3
    That's just it... it happens with every client, and the scripts are set to send from the respective e-mail addresses. These are not new scripts they are ported over from my previous hosts, and have worked fine there, and on the previous one and the one before that!

    Here's the headers of one of these that was bounced (because the visitor entered a 2 for an e-mail address).

    Note that the "From:" header is correct and what is provided by the script. Instead of carrying that info into the Envelope-From and Return-path, EXIM has decided to change it to use this users login name at the root domain.

    Return-path: <bodyarts@stylishdns.com>
    Received: from bodyarts by server.stylishdns.com with local (Exim 4.68)
    (envelope-from <bodyarts@stylishdns.com>)
    id 1JajJg-0005Gt-Av
    for 2@stylishdns.com; Sat, 15 Mar 2008 23:13:44 -0400
    To: 2@stylishdns.com
    From: sales@crazychameleon.net
    Subject: You've made a sale
    Message-Id: <E1JajJg-0005Gt-Av@server.stylishdns.com>
    Date: Sat, 15 Mar 2008 23:13:44 -0400

  5. #5
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    I think you'll need to put in another field in the mail() function.

    The 5th ("additional parameters") parameter needs to set the "real" from in the header. So it will be something like this:

    PHP Code:
    mail($mail_to,$message_title,$actual_message,$additional_headers,"-f from:administration@mydomain.com"); 
    or

    PHP Code:
    $additional_parameters "-f from:administration@mydomain.com";
    mail($mail_to,$message_title,$actual_message,$additional_headers,$additional_parameters); 
    I don't know if this is a single application that is having a problem or a bunch. Perhaps there's a server-wide fix that can be made to set the parameter from the "from:" field if the parameter is blank.

    Perhaps you could check with Masood?
    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
  •