Re: How to stop automatic creation of /var/mail/$USER

2007-01-01 Thread Michael P. Soulier

On 1/1/07, Sahil Tandon [EMAIL PROTECTED] wrote:

When I 'adduser' a new account, a /var/mail/$USER file is created.  This is
unnecessary as our MTA is configured to deliver mail directly to a user's
~/Maildir/, where the IMAP server looks by default.

There is nothing in the adduser or adduser.conf man pages that explains how
to manipulate (or, in my case, simply stop) the creation of this file.


I do the same. I don't really care about the file, as it's not hurting
anything.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to stop automatic creation of /var/mail/$USER

2007-01-01 Thread Sahil Tandon

Michael P. Soulier wrote:

When I 'adduser' a new account, a /var/mail/$USER file is created.  
This is unnecessary as our MTA is configured to deliver mail directly 
to a user's ~/Maildir/, where the IMAP server looks by default.


There is nothing in the adduser or adduser.conf man pages that 
explains how to manipulate (or, in my case, simply stop) the creation 

 of this file.


I do the same. I don't really care about the file, as it's not hurting
anything.


It doesn't hurt anyone but is it possible to disable its creation?

--
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to stop automatic creation of /var/mail/$USER

2007-01-01 Thread Michael P. Soulier

On 1/1/07, Sahil Tandon [EMAIL PROTECTED] wrote:

It doesn't hurt anyone but is it possible to disable its creation?


Not sure if there's an easier way, but you could always patch it and
rebuild it.

Or, you could just put a wrapper around it that removes the file after
creating it.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to stop automatic creation of /var/mail/$USER

2007-01-01 Thread Matt Emmerton
 On 1/1/07, Sahil Tandon [EMAIL PROTECTED] wrote:
  When I 'adduser' a new account, a /var/mail/$USER file is created.  This
is
  unnecessary as our MTA is configured to deliver mail directly to a
user's
  ~/Maildir/, where the IMAP server looks by default.
 
  There is nothing in the adduser or adduser.conf man pages that explains
how
  to manipulate (or, in my case, simply stop) the creation of this file.

 I do the same. I don't really care about the file, as it's not hurting
 anything.

I looked at the adduser sources and couldn't find anything that explicitly
creates the /var/mail/$USER directory.

Further debugging shows that the pw useradd command (see the adduser
subroutine) is what is creating the mail file.

There doesn't seem to be a way from the command-line to have pw *not* create
the mail spool file, although code will skip this is PWALTDIR() is set -- 
although our version of pw doesn't set this at all.  There also appears to
be a shortage of command line options that could be used to enable this
behaviour.

Regards,
--
Matt Emmerton

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]