Solved

vacation and forward with no homedir

Posted on 1997-01-12
1
304 Views
Last Modified: 2013-12-16
Is there any way for users with no home directory to use vacation and forward on a Solaris mailserver?

Thanks in advance.
0
Comment
Question by:jonie
1 Comment
 

Accepted Solution

by:
dcarrigan earned 100 total points
ID: 1811867
In your /etc/mail/sendmail.cf file, in the options section, add the line

OJ :/some/central/directory/$u:$z/.forward

This will cause sendmail to look first for a file named after the user in /some/central/directory, and if it doesn't find it there, then it will look for a file named .forward file in the user's home directory.

Thus, to set up vacation for Joe User, who doesn't have a home directory, create a file called

/some/central/directory/juser

In the file, put
\juser, "|/usr/bin/vacation -t1m juser

Make sure that the file is owned by juser, or sendmail will ignore it!

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sudo logging 5 79
AIX Server 10 78
Audit HISTFILE for all users on AIX 9 105
looking for unix program to search some keywords in side EAR WAR and JAR files 10 80
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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 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.:
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.

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now