Solved

Mail Not Being Forwarded

Posted on 2006-07-10
2
344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

687 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