The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mail with user as nobody

Discussion in 'E-mail Discussions' started by just-curious, Feb 9, 2005.

  1. just-curious

    just-curious Registered

    Joined:
    Nov 17, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Can somebody let me know if there are any scripts or options available for sending mails with the original username
    other than user nobody. I have enabled Suexe. One of our customer is asking for alternate options. Please advise.


    Thanks in advance,

    Aby
     
  2. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA

    a perl script run from the user's cgi-bin should run as and send as the user. php, unless running php_suexec i think will still go out as nobody.
     
  3. bornonline

    bornonline Well-Known Member

    Joined:
    Nov 19, 2004
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    I have been doing this as suggested in a thread here... It seems to be working pretty good. I hope this is what you are talking about.

    In exim.conf
    First Text box #!!# cPanel Exim 4 Config
    Code:
    local_from_check = false
    untrusted_set_sender = root
    Under Rewrite config text box..
    Also that is "fail" not "fai l"

    Code:
    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
     
  4. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Is it possible to run mod_perl enabled Apache as suExec?

    The answer is No. The reason is that you can't "suid" a part of a process. mod_perl lives inside the Apache process, so its UID and GID are the same as the Apache process. So any scripts running under mod_perl would still be as nobody

    Anup
     
  5. just-curious

    just-curious Registered

    Joined:
    Nov 17, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Thanks for the response.

    Shall I add more.......... Is there a way to find out whois is sending out the mail. I mean the username.
     
Loading...

Share This Page