Solved

vacation and forward with no homedir

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

733 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