Solved

vacation and forward with no homedir

Posted on 1997-01-12
1
302 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:

762 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

13 Experts available now in Live!

Get 1:1 Help Now