Solved

vacation and forward with no homedir

Posted on 1997-01-12
1
305 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.

821 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