Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default Exim, Nobody, bounced emails.

    How can I prevent bounced emails from just being sent to Nobody and sitting in the message queue? I would prefer that the emails be bounced back to the domain that it was relayed from. Like some users of a forum that I host setup accounts a while back and the emails are non existing, I would like that forum admin to receive the notifications, not me. However I see that the undeliverable emails are just sitting in my message queue, no notification to the domain owner.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Search this forum:

    http://forums.cpanel.net/showthread....ht=nobody+mail
    http://forums.cpanel.net/showthread....ht=nobody+mail

    If you need more help, send us an email note: support at servertune.com
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    Quote Originally Posted by JC
    This was happening on my boxes too.

    On one of them, i had a copy of exim.conf dated August (so before the upgrades changed things).

    I checked the exim.conf used now and exim.conf of the previous version.
    Found this on the older file which doesn't exist on the new one (that might explain the behaviour):

    Code:
    ######################################################################
    #                      REWRITE CONFIGURATION                         #
    ######################################################################
    
    # There are no rewriting specifications in this default configuration file.
    
    begin rewrite
    
    nobody@lsearch;/etc/localdomains "${if !eq {$header_From:}{}{$header_sender:$header_From:}fail}" Fs
    cpanel@lsearch;/etc/localdomains "${if !eq {$header_From:}{}{$header_sender:$header_From:}fail}" Fs
    I'm going to try changing the new file adding this part.
    Will I have to manually add it or is there a place in the Exim Configurator where we can do this so it doesn't get changed with updates?

    Thanks
    Quote Originally Posted by Marty
    Along with what JC posted above, the following must be done as well:

    You have to add those lines to the rewrite conditions but for it to work you need to modify the following:

    At the top of exim.conf you will find:
    local_from_check = true
    remove it - or comment # it

    Then go down to:
    #nobody as the sender seems to annoy people
    untrusted_set_sender = *

    remove it - or comment # it
    add this instead:
    no_local_from_check

    Save restart exim - now it really works :-)

    JC sent me that, so I am not taking credit for it, just posting it here so I can point Cpanel staff to the solution.

    Ok, I did both of the above and still having the issue.

    I cannot run Phpsuexec, and I host a lot of forums, so sending mail as nobody needs to be on, correct?

  4. #4
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    Ok, update. I disabled the sending mail as nobody option in tweak settings just to see if it would help. And of course it worked and mail is returned to sender. I was also worried if it would stop mail from being sent from some of my forums, and the mail is being delivered!

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Yes, you can activate Phpsuexe, but you'll need to change the permission on every single Php file to 755. In addition, Php and other files must be owned by the user, otherwise they won't work. In addition, you need to find good ACLs and RBLs rules for your Exim, to stop dictionary attack, minimize spam, and keep your email server running smoothly.

    That's one of the best ways to stop "nobody" from sending out email.

    Good luck
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  6. #6
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    I run WHMAP and it doesnt function well under phpsuexec, so I am not using phpsuexec.

    As for spam, I just deleted my Exim rule for BFD and setup http://www.configserver.com/free/eximdeny.html

Similar Threads & Tags
Similar threads

  1. bounced emails going to nobody
    By ramorse in forum cPanel and WHM Discussions
    Replies: 25
    Last Post: 05-26-2010, 04:01 PM
  2. Bounced emails getting lost
    By coopersita in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-28-2006, 11:55 PM
  3. Emails being bounced
    By WGN in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-07-2006, 11:33 AM
  4. Bounced emails
    By sigep739 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-26-2004, 07:06 PM
  5. Re-routing bounced emails
    By mickalo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-21-2003, 12:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube