When a user logs in, their home directory is mounted, but is there a way
to force this to happen at boot time?
Currently, qmail will not deliver, infact it reports "no such mailbox",
if the user has not, and is not logged in.
Currently, qmail will not deliver, infact it reports "no such mailbox",
if the user has not, and is not logged in.
WHat are your autmount maps? ANY attempt to look in /home/user shouldQuote:> Currently, qmail will not deliver, infact it reports "no such mailbox",
> if the user has not, and is not logged in.
--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
> WHat are your autmount maps? ANY attempt to look in /home/user should
> result in that user's home directory being automounted, if everytihng
> is set up OK.
I can access 'posty' from almost any manual command, but for some reason
qmail cannot get at it.
I have posted a similar question onto the "qmail rocks" board to see if
anyone else has experienced the same thing.
>>> Currently, qmail will not deliver, infact it reports "no such mailbox",
>>> if the user has not, and is not logged in.
>> WHat are your autmount maps? ANY attempt to look in /home/user should
>> result in that user's home directory being automounted, if everytihng
>> is set up OK.
> From auto_home:
> +auto_home
> wmjackson solaris:/export/home/wmjackson
> posty solaris:/export/home/posty
> I can access 'posty' from almost any manual command, but for some reason
> qmail cannot get at it.
> I have posted a similar question onto the "qmail rocks" board to see if
> anyone else has experienced the same thing.
> Have you tried running truss on qmail to see what exactely it's doing
> before reporting that error?
Based on my Linux installs, I believe it is attempting to write to
"/home/$USERNAME/Maildir".
A quick fix that I have implemented and put in a cron script, and I mean
quick as as in quick and *:
---- start ----
for i in `ls -1 /export/home`
do
cd /home/$i
done
cd /
---- end ----
It works for the moment, with this being run every 5 minutes, as I
noticed that the automount'er dismounts any inactive user home directory
approx every 10 minutes.
I am, however, not presently utilising NIS - this is something that is
planned at a much later time, the first this was testing if qmail would
run under Solaris, and what issues would be experienced.
What I have done, is removed /home from the automounter, so I can move
the user directories into it, and for the moment it appears that qmail
is working very well.
The next test, I guess, would be to see if I can add users under the new
structure.
The shell script below works for me, but that's no guarenteeQuote:> to force this to happen at boot time?
> Currently, qmail will not deliver, infact it reports "no such
mailbox",
> if the user has not, and is not logged in.
#!/bin/sh
PATH=/var/qmail/bin:${PATH}
export PATH
cd /var/qmail
[ -d users ] || mkdir users
cd users
ypcat passwd > passwd
(for x in `cut -d : -f 6 passwd`; do cd $x;done)
qmail-pw2u -h < passwd > assign
qmail-newu
run it every time you change your NIS passwd file.
The for loop is just to force the automounting of
all the homedirectories before creating the assign file.
Check out the qmail-pw2u and qmail-newu man pages.
1. /export/home wont automount to /home
I changed /etc/auto_home to:
user curhostname:/export/home/username
and commented out the + auto_home line.
automount -v appears to do nothing.../home remains empty
Do I have to also change one of the other files?
--
To prevent bouncing, remove the SPAS from enigSPASmatic.com
2. OakTree SVGA card (Xconfig)
3. /home and automount maps with many home directory servers
4. FTP site for boot diskettes?
5. /home/username [was Re: Automount, /home,
6. FTP Shutdown, how to restart
7. /home (AIX) and /export/home (Solaris)
8. setjmp/longjmp and gcc warning
9. Why Solaris use /export/home instead of /home?
12. jlg058@home.com, tlg62@home.com, egglectric@home.com
13. Help with multi-homed server & automount