Mail Not Being Forwarded
Posted on 2006-07-10
I am using Solaris, I'm sorry but I'm not sure of the version. If knowing this is fundamental to providing a soloution, can somebody please tell me how I can find out?
I have formerly used something called Exceed when creating new users. After creating a new user I used to manually create a .forward in the new user's home directory. This allowed their mail to be re-directed to an Exchange email account.
However, I have recently started using a script to create new users. To do this, I create the .forward file in /usr/local/src/skel and then use the useradd command with the -k parameter set to /usr/local/src/skel. All of this takes place within the script. This does copy the .forward to the new user's home directory with the correct email address within it but whenever a mail is sent to the user, it is not being forwarded on. Rather, the mail just sits in the /var/mail directory.
What do I need to do to enable the mail to be forwarded onto the email address in the user's .forward?