Hello,

I'm running TSL2.2.  Here's my issue:

I want mailx to read from the /var/spool/mail/<username> file everytime 
I invoke it.  In TSL, mailx reads ~/Maildir even if I have configured 
the MAIL_DIR parameter on /etc/login.defs.  Doing an strace of mailx 
shows that mailx attemps to read ~/Maildir instead of the spool file.  
The man page for mailx specifies that the spool (or any) directory can 
be read with the -f option.  However, what I would like to know is the 
global configuration file that controls where mailx will read mail from.

Here's the strace output:

[EMAIL PROTECTED] ~$ strace mail
execve("/bin/mail", ["mail"], [/* 17 vars */]) = 0
brk(0)                                  = 0x805db18

<SNIPPED>
open("/home/users/carlo/.mailrc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No 
such file or directory)
open("/home/users/carlo/Maildir/", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No 
such file or directory)

<SNIPPED>

[EMAIL PROTECTED] ~$

As you can see, mailx attemps to open Maildir.


My /etc/login.defs contains the following relevant parameters:


[EMAIL PROTECTED] ~$ cat /etc/login.defs

<SNIPPED>

# *REQUIRED*
#   Directory where mailboxes reside, _or_ name of file, relative to the
#   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
#   QMAIL_DIR is for Qmail
#
#QMAIL_DIR      Maildir
MAIL_DIR /var/spool/mail
MAIL_FILE mbox
#MAIL_FILE      .mail

<SNIPPED>

[EMAIL PROTECTED] ~$


Any clues?

Thank you very much!

Best Regards,

Carlo


_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to