Re: How does useradd determine the default mailbox/maildir location for new users
Hi Lowell, thanks for the clarification. I'll have a look at the adduser script and probably make my own version. Regards, Niek Lowell Gilbert wrote: Niek Dekker <[EMAIL PROTECTED]> 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. I assume you mean adduser(8). As I am using Maildir with maildirs in /var/mail, I do not want that. Hmm, yes. My question is, where is this behavior of useradd configured? It isn't. It appears to be hardwired into pw(8), which is the basic tool around which adduser(8) is built. I cannot find this in the handbook. There is no /etc/useradd.conf neither an /etc/pw.conf on my system and also the contents of /usr/share/skel do not seem to make a difference. 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). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How does useradd determine the default mailbox/maildir location for new users
Lowell Gilbert wrote: Niek Dekker <[EMAIL PROTECTED]> 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. Cheers, Erik -- 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How does useradd determine the default mailbox/maildir location for new users
Niek Dekker <[EMAIL PROTECTED]> 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. I assume you mean adduser(8). > As I am using Maildir with maildirs in /var/mail, I do not want that. Hmm, yes. > My question is, where is this behavior of useradd configured? It isn't. It appears to be hardwired into pw(8), which is the basic tool around which adduser(8) is built. > I cannot find this in the handbook. There is no /etc/useradd.conf > neither an /etc/pw.conf on my system and also the contents of > /usr/share/skel do not seem to make a difference. 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). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How does useradd determine the default mailbox/maildir location for new users
Hi, 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. My question is, where is this behavior of useradd configured? I cannot find this in the handbook. There is no /etc/useradd.conf neither an /etc/pw.conf on my system and also the contents of /usr/share/skel do not seem to make a difference. Many thanks i.a. Niek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"