Solved

Mail Not Being Forwarded

Posted on 2006-07-10
2
342 Views
Last Modified: 2013-12-27
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?

 
0
Comment
Question by:delphilog
2 Comments
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 200 total points
ID: 17077721
Does the .forward file have permissions on 644?
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 300 total points
ID: 17077734
More to the point, insure that the user's home directory and .forward file are not world- or group-writable. Sendmail will refuse to use the .forward file if the file, or the directory where it is located, is not safe for it.

Also, keep in mind that the .forward file is only referenced by the local Mail Delivery Agent (probably mail.local), not by the sendmail daemon itself. Be sure that the daemon is recognizing the address as one that should be delivered locally.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question