How does useradd determine the default mailbox/maildir location
for new users
norgaard at locolomo.org
Tue Oct 10 09:05:00 PDT 2006
Lowell Gilbert wrote:
> Niek Dekker <niekdekker at gmail.com> writes:
>> I am running Exim 4.62 MTA on FBSD 6.0_release.
>> When I create a new user using useradd, a mailbox file for the new
>> user is created in /var/mail.
>> As I am using Maildir with maildirs in /var/mail, I do not want that.
> And none of those are documented to do anything of the sort.
> I think you should just write your own wrapper. You could write it as
> a wrapper for adduser, or you could make your own version of adduser
> (which is just a shell script).
Why not just store your mail in a different directory - say /var/exim?
Does it hurt your eyes if it's not called /var/mail?
In login.conf you set user environment path to the user's mailbox (don't
know if this is worth anything with Maildir), and configure exim to use
that directory - this sounds like the easier solution.
Ph: +34.666334818 web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9
More information about the freebsd-questions