Solved

vacation and forward with no homedir

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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 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…
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.

705 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