- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vacation program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 06:49 AM
07-29-2003 06:49 AM
vacation program
I am trying to set up the vacation program for a specific user.
I've tried to follow the manuals, but the procedure doesn't seem to work. We are using sendmail 8.11.1 on HP-UX 11.
1) I have created the file .vacation.msg with the following text (just to test the functionality):
From: mysql@gissi.marionegri.it
Subject: Vacation
X-Delivered-By-The-Graces-Of: the vacation program
Precedence: bulk
I will be out of the office until August 15, 2002.
EOF
The file is created in the home dir of the user "mysql". Permissions on the file are
-rwxr-xr-x (755)
2) Used the command
# vacation -i
3) created (as user mysql) a file .forward in the home dir with the following single line:
\mysql, "|/usr/bin/vacation -a mysql@gissi.marionegri.it mysql"
Permissions on the file are
-rw------- (600)
Unfortunately, a mail reply isn't sent to any sender.
Thank you for your help
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 06:53 AM
07-29-2003 06:53 AM
Re: vacation program
as the user mysql?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 06:57 AM
07-29-2003 06:57 AM
Re: vacation program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 06:58 AM
07-29-2003 06:58 AM
Re: vacation program
Does anything appear in "/var/adm/syslog/mail.log"?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 06:59 AM
07-29-2003 06:59 AM
Re: vacation program
You could try creating a .forward to send to another user account only, just to test the .forward without the vacation functionality. If that works, then move on to using vacation.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:08 AM
07-29-2003 07:08 AM
Re: vacation program
cat .forward
\melvyn, | "/usr/bin/vacation melvyn "
I think your error may be you have the | inside the double quotes
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:07 AM
07-29-2003 08:07 AM
Re: vacation program
\melvyn, "|/usr/bin/vacation melvyn"
and this also worked.
Try leaving out the -a mysql@gissi..... section, i.e. try it as
\mysql, "|/usr/bin/vacation mysql" and at least get that working.
As per the man page, remember to run vacation -i BEFORE modifiying the .forward file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 08:27 AM
07-29-2003 08:27 AM
Re: vacation program
\pauls, "|vacation pauls"
and it works for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 10:56 AM
07-29-2003 10:56 AM
Re: vacation program
As of Melvyn's suggestion, I tried
\mysql, "|/usr/bin/vacation mysql"
as a .forward file.
The reply is not sent again: in addition, in the /var/adm/syslog/mail.log nothing about the vacation reply is present: just the receival of the message of the user mysql.
I really don't know what to do now ...
Thank you
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 11:11 AM
07-29-2003 11:11 AM
Re: vacation program
vacation will create for you the .forward file, and .vacation.msg file.
It clearly states that running vacation when a .forward file will cause vacation to ask if you want it removed.
It also states that you can run "vacation -I" which will initialize the vacation.pag and vacation.dir files to log forwards. With no ability to log, vacation will fail.
Here's the interesting sniplets...
To install vacation, type it with no arguments on the com-
mand line. The program creates a .vacation.msg file, which
contains the message that is automatically sent to all
senders when vacation is enabled, and starts an editor for
you to modify the message. (See USAGE section.) Which editor
is invoked is determined by the VISUAL or EDITOR environment
variable, or vi(1) if neither of those environment variables
are set.
A .forward file is also created if one does not exist in
your home directory. Once created, the .forward file will
contain a line of the form:
\username, "|/usr/bin/vacation username"
If the string $SUBJECT appears in the .vacation.msg file, it
is replaced with the subject of the original message when
the reply is sent; thus, a .vacation.msg file such as
Subject: I am on vacation
I am on vacation until July 22.
Your mail regarding "$SUBJECT" will be read when I return.
If you have something urgent, please contact
Joe Jones (jones@fB0).
--John
Hope it helps!
Sincerely,
Shannon Petry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 11:59 AM
07-29-2003 11:59 AM
Re: vacation program
Unfortunately the HP-UX version of vacation does not create a .forward nor a .vacation.msg file. But there is a usable template of the .vacation.msg file in /usr/share/lib.
And the manual is clear:
1) create .vacation.msg (eventually from template) - this is not mandatory
2) vacation -i
3) create .forward with
\user, "|/usr/bin/vacation -a user"
The absence of error logging is something that I really don't understand; if the problem persists I am thinking to try some freeware utility, like 'forward'.
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 12:15 PM
07-29-2003 12:15 PM
Re: vacation program
Can you run vacation -I to initialize them?
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 12:43 PM
07-29-2003 12:43 PM
Re: vacation program
Joerg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 01:41 PM
07-30-2003 01:41 PM
Re: vacation program
Yes, all the files .vacation.* are correctly created.
I have a new small addition, for anybody that is so persistent to read something more about this subject:
trying with another user I've found (don't know why this didn't come out with the "mysql" user) an error message given as a reply from sendmail:
----- The following addresses had permanent fatal errors -----
"|vacation -a user"
(reason: 550 Unsafe for mailing to programs)
(expanded from:
----- Transcript of session follows -----
550 5.7.1 /home/user/.forward: line 1: "|vacation -a user"... Address
Reporting-MTA: dns; gissi.marionegri.it
In sendmail the restricted sendmail shell (smrsh) was already enabled, and the vacation program had been already copied in the correct directory (sm.bin) where the restricted shell looks for executables.
In the sendmail configuration file I haven't found the phrase "is unsafe for mailing to programs"
Any idea ?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 01:24 AM
07-31-2003 01:24 AM
Re: vacation program
That suggests to me that perhaps your file permissions are too wide. If it's only affecting this user I'd check the .forward, otherwise compare permissions on things like their home dirs.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 07:39 AM
11-22-2004 07:39 AM
Re: vacation program
I have the same problem.
Do you find the solution?
Thanks in advance.
Marco