-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10-Sep-2002/10:14 -0400, Kent Borg <[EMAIL PROTECTED]> wrote:
>
>If this looks sensible, try it with one user and see if it works. For
>one user you will want to do something like:
>
> /etc/init.d/sendmail stop ; \
> mv /var/spool/mail/joeuser /home/joeuser/Mail ; ln -s /home/joeuser/Mail
>/var/spool/mail/joeuser ; \
> /etc/init.d/sendmail start
>
>For many users you probably want to put the above in a script, doing
>the mv/ln part for all users.
Like this:
#!/bin/sh
service sendmail stop
for mailuser in `ls -1 /home`; do
if [ -f /home/$mailuser/.bashrc ]; then
mkdir /home/$mailuser/Mail
chown $mailuser.$mailuser /home/$mailuser/Mail
chmod 0700 /home/$mailuser/Mail
mv /var/spool/mail/$mailuser /home/$mailuser/Mail/Inbox
chown $mailuser.$mailuser /home/$mailuser/Mail/Inbox
chmod 0600 /home/$mailuser/Mail/Inbox
ln -s /home/$mailuser/Mail/Inbox /var/spool/mail/$mailuser
fi
done
service sendmail start
Tony
- --
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/>
Linux: the choice of a GNU Generation. <http://www.linux.org/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]>
iD8DBQE9fiVcpCpg3WyUI50RAqkfAJ4rUCKUJC+Dqo3yZUjPjA+nxtJsUwCeKIdw
EI0UNOpUKpG0G4x6aPlK3jo=
=W44e
-----END PGP SIGNATURE-----
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list