/etc/default/useradd has the option of modifying the /home dir for new users.
/etc/default # vi useradd
# useradd defaults file
GROUP=100
HOME=/home3
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes
I've added a new HD and mounted it on /home2
A new user I created was added onto /home2 with no prob.
I've added new email account via DA, and found new dirs in /home
2/username1/imap/domain.net/admin/Maildir .
So it all seem like it is pointed to the right place.
However, when tried to send an email to a newly created email account, I got a bounce back.
The /var/log/exim/mainlog showed:
2012-09-18 02:43:25 1TDkyL-0004dO-Ll ==
[email protected] R=virtual_user T=virtual_localdelivery defer (13): Permission denied: cannot
create /home/username1/imap/domain.net/admin/Maildir
So what am I missing as far as Exim learning to know where the homedir is?
Should we have such a variable in the /usr/local/directadmin/data/users/user.conf so that DA can tell Exim to look for it?