#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Caribbean
    Posts
    22
    Rep Power
    0

    Getting mail sent to $HOMEDIR/mail instead of $HOMEDIR


    Hello to all,

    I would like to know how I setup my mail servers so that mail get sent to a subfolder (eg. mail) within the home directories of users instead of simply insite their home directory.

    I have Sendmail and hopefully soon Postfix.

    Thank you.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Set it in your shell.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Caribbean
    Posts
    22
    Rep Power
    0
    Set what where exactly? I'm kinda lost
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Set what where exactly?
    Depends on which shell you're using. You need to change the mail path environment.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    Caribbean
    Posts
    22
    Rep Power
    0
    Well I most users use the bash shell.

    There seem to be so many diff. answers to this question. I've seen responses such as recompile sendmail/postfix. Others say reconfigure procmail, now you're suggestiing to change the environmental variables.

    What's the most thorough solution? Im not looking for an easy way out.

    Thank you
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    If mails are to be delivered to user's HOMEDIR then your mail server setup is not using a single-account mechanism. When that's the case, the mail path env var should be honored, at least for qmail.

    if procmail (you just brought up in this thread) overrides it, then fix it in promail.

    A recompile to sendmail/postfix, of course, is likely out of the possibility.

    What's the most thorough solution?
    It's your server, you have physical access to it and I don't, why ask me?

    Im not looking for an easy way out
    Hire a consultant.

IMN logo majestic logo spyfu logo threadwatch logo seochat tools logo