Operating System - HP-UX
1833314 Members
2850 Online
110051 Solutions
New Discussion

Re: change mail directory

 
SOLVED
Go to solution
Javier Ortiz Guajardo
Frequent Advisor

change mail directory

Hello
when you receive a mail in UNIX it is stored in the directory /var/mail/loginname.

I want to change the output to another filesystem but i don?t know how.

i?ve already set the MAIL and maildir variable to the new directory but the elm command does not take the variables i changed.

some idea?
thanks
email jortiz@gan.com.mx
The obstacles are those things that the people see when they left to see their goals.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: change mail directory

Hi:

Create a symbolic link, like this:

# ln -s /tmp/mymailbin myuser

...JRF...
someone_4
Honored Contributor

Re: change mail directory

This worked for me ..

ln -s /var/mail/user /home/user/usermail

in the home dir the file usermail will show an @. when you do an ll it will show you the file it is linked to.

Richard