Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Member
    Join Date
    May 2002
    Posts
    249

    Default Exim return-path

    Hi,

    I was wondering if anyone knows how to make it so that users can set return-path in emails that are sent from scripts. Currently all return-paths are set to nobody@ourserver.com.

  2. #2
    Member bert's Avatar
    Join Date
    Aug 2001
    Posts
    602

    Default

    You cannot change this unless you make the user nobody a trusted exim user, this is indeed not recommended at all. I would not even try to do it
    Bert Kammerer
    Creator of the X Skins[/url]

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    Another solution is to use the -f option in php mail().

  4. #4
    Member
    Join Date
    May 2002
    Posts
    249

    Default

    We have this customer that is complaining because he says the undelivered emails are routed to nobody and not back to him so he and his users doesn't know what emails that have failed to deliver. I was thinking about setting up a script that checked the failed delivery emails and forwards them to the right person instead of messing with Exim. What do you guys think?

  5. #5
    Member
    Join Date
    Oct 2001
    Posts
    651

    Default

    [quote:af653a66fd][i:af653a66fd]Originally posted by moronhead[/i:af653a66fd]

    Another solution is to use the -f option in php mail().[/quote:af653a66fd]

    explain that? I would like some details on that one.
    Marty Hoskins
    TLC Web Enterprises

  6. #6
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    [quote:0b6abd6c1b][i:0b6abd6c1b]Originally posted by (SH)Saeed[/i:0b6abd6c1b]
    We have this customer that is complaining because he says the undelivered emails are routed to nobody and not back to him so he and his users doesn't know what emails that have failed to deliver. I was thinking about setting up a script that checked the failed delivery emails and forwards them to the right person instead of messing with Exim. What do you guys think?[/quote:0b6abd6c1b]

    Since the -f flag that Moronhead talked about can't be set when safe_mode is on (afaik), I've written an Exim filter which could do the trick:

    http://html.conclase.net/cp/scripts/2somebody.txt

    Your comments are very welcome.

  7. #7
    Member
    Join Date
    May 2002
    Posts
    249

    Default

    The file is password protected. Anyways, we had a customized PHP script created for our company that logs into the returned mail account and forwards all reurned emails to their senders. Works pretty good.

  8. #8
    Member
    Join Date
    Jun 2002
    Posts
    106

    Default

    Which directory would this filter go in?

    John

  9. #9
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    In my servers the .forward file for user &nobody& is inside the root directory. Check if /.forward exists, and if it contains the address where nobody's mail goes, then that is it.

  10. #10
    Member
    Join Date
    Oct 2001
    Posts
    651

    Default

    Has anybody tested this filter, and does it work as it should?
    Marty Hoskins
    TLC Web Enterprises

  11. #11
    Member
    Join Date
    Oct 2001
    Posts
    651

    Default

    Juanra,

    I just put your .forward file on my server and it appears to be working. Thank you very much!!
    Marty Hoskins
    TLC Web Enterprises

  12. #12
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    [quote:8630d30c97][i:8630d30c97]Originally posted by Juanra[/i:8630d30c97]

    [quote:8630d30c97][i:8630d30c97]Originally posted by (SH)Saeed[/i:8630d30c97]
    We have this customer that is complaining because he says the undelivered emails are routed to nobody and not back to him so he and his users doesn't know what emails that have failed to deliver. I was thinking about setting up a script that checked the failed delivery emails and forwards them to the right person instead of messing with Exim. What do you guys think?[/quote:8630d30c97]

    Since the -f flag that Moronhead talked about can't be set when safe_mode is on (afaik), I've written an Exim filter which could do the trick:

    http://html.conclase.net/cp/scripts/2somebody.txt

    Your comments are very welcome.[/quote:8630d30c97]


    Juanra, I put in the new .forward but I'm getting some errors.

    defer (-11): error in forward file: missing or malformed local part (expected word or &&&amp in &if first_delivery then&
    Return to Mail Queue

    Any idea? I followed the instructions to the letter.
    Regards,
    David
    Forum Moderator

  13. #13
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    DUP
    Regards,
    David
    Forum Moderator

  14. #14
    Member
    Join Date
    Oct 2002
    Posts
    21

    Default

    Did you miss out & or has an extra & somewhere in the file?

    It should be in this part of the script.
    ---
    else deliver &nobody&
    endif
    else
    deliver &nobody&
    endif
    else
    deliver &nobody&
    endif
    ----

    Otherwise you should not get the error.

  15. #15
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    &nobody& should be replaced by a default nobody address, this way:

    Instead of:
    deliver &nobody&

    write (for example):
    deliver admin@yourdomain.com

    without the angle brackets. &deliver &nobody&& appears four times in the filter.

Similar Threads & Tags
Similar threads

  1. Exim remove and change return-path
    By webstyler in forum E-mail Discussions
    Replies: 4
    Last Post: 11-13-2009, 08:18 PM
  2. Return-path: <>
    By xayk in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-19-2004, 03:24 PM
  3. WHM 9.7 and return-path in exim
    By manghooli in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-07-2004, 03:19 AM
  4. Exim Return Path Different
    By amdmachine in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-21-2003, 05:24 AM
  5. Email Return-Path, return-path problems with email address
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-21-2003, 05:29 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube