Solved

Mail Not Being Forwarded

Posted on 2006-07-10
2
339 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

777 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