Changing Users Default Env variables at creation
Okay Thanks for helping me for starters. I just installed postfix and dovecot on my CentOS 6 Server and got it configured to use system users. Now I also got the default mail dir
$HOME/Maildir So what I am trying to figure out is how would I stop the /var/spool/mail file from creating and changed the users default MAIL variable to $HOME/Maildir Now I changed the MAIL variable by editing /etc/skel/.bash_profile and adding these 2 lines. Quote:
Now I think there is another way to achieve this and would like some suggestions. Thanks again |
Quote:
Quote:
Code:
echo 'MAIL="${HOME}/Maildir"; export MAIL' > /etc/profile.d/maildir.sh //NTLB |
No ~/Maildir created with user automatically
System is Centos 7
Postfix Dovecot MySQL Frankly I am more than a little surprised that creating a user is not creating the ~/Maildir with the correct permissions and any sub-folders that are needed. I would have thought that was a "gimmie" so to speak. I would like to set up user creation so that it automatically adds the ~/Maildir with the correct permissions and I guess files structures. I tried your command " echo 'MAIL="${HOME}/Maildir"; export MAIL' > /etc/profile.d/maildir.sh " and while it appears in /etc/profile.d it is not propagated to the users created. At least it didn't work for me. I have read documents till I'm blue in the face for the past 2 days and have no answer. This thread was as close as I got and like I said, no go. I'm still trying to figure out how to do this other than /etc/skel Thanks for your help in advance. |
Hi,
please start a new thread for your question. When you do, please include what method you are using to create new users. Regards, Evo2. |
ok thanks
ok thanks
|
Quote:
That's prolly less work than mods having to trawl fora for duplicates. TIA |
All times are GMT -5. The time now is 04:35 PM. |