#1 what user to run as?

closed
nobody
None
5
2006-11-09
2006-03-28
Anonymous
No

I am lucky enough to be able to use a dedicated DEV
server and have replaced the normal MTA with fakemail
(on port 25).

I'm worried about running it as root, though, but
don't have enough sysadmin experience to know how to
start it as root (so I can use port 25), but run it as
someone else.

Thanks,
Hans

Discussion

  • Hans
    Hans
    2006-03-28

    Logged In: YES
    user_id=1488652

    Oops -- looks like it won't work anyway. I was wanting to
    still use the mail() function, just have it go through
    fakemail instead of actually being sent. But, the mail()
    function obviously uses /usr/sbin/sendmail -t -i, and thus
    doesn't connect with :25.

     
  • Marcus Baker
    Marcus Baker
    2006-11-09

    Logged In: YES
    user_id=695819

    Hi.

    If it's running as root, it just means that the files will
    be saved owned by root. That's probably not what you want.
    To change the ownership of the mails you have to change the
    ownership of the executable and then set the sticky bit. My
    sysadmin knowledge sucks too, so you'll have to look that up!

    If you can, have your own software use a port other than 25.
    It's much easier.

    yours, Marcus

     
  • Marcus Baker
    Marcus Baker
    2006-11-09

    • status: open --> closed