LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-25-2006, 01:51 AM   #1
gr0undz3r0
LQ Newbie
 
Registered: Oct 2006
Distribution: FC 3 and 4
Posts: 24

Rep: Reputation: 15
Postfix Vacation Solution Needed


I have postfix up and running, filtering emails though anomy and spamassassin. I need to add a vacation auto responder. I did search on here and see some stuff mentioned (ie Procmail, and vacation) However I cant really find any info on setting either of those up for a basic server setup like mine.
So any links, suggestions would be great.
Thanks so much.
 
Old 10-25-2006, 09:06 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
vacation is part of the sendmail package. vacation is usually called from .forward, so it works with postfix's local delivery agent. You can read the man page here. Another possibility is maildrop, a delivery agent with filtering capabilities. It comes with mailbot, an autoresponder, although you can write your own: its filtering language is pretty serious. maildrop reads its instructions from .mailfilter, which resides in the home directory of either real or virtual accounts, so it's good for both local and virtual delivery.

Last edited by Berhanie; 10-25-2006 at 09:22 PM.
 
Old 10-26-2006, 01:26 AM   #3
gr0undz3r0
LQ Newbie
 
Registered: Oct 2006
Distribution: FC 3 and 4
Posts: 24

Original Poster
Rep: Reputation: 15
I know you mention i can use vacation with sendmail with postfix but how. Is there a how to anywhere that anyone knows off. As far as mail drop I will take a look at that now. But I know diddle about writing anything.
Thanx bro.
 
Old 10-26-2006, 05:50 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You're welcome. Google turned up this guide for vacation. It looks decent. When you read it, keep in mind that the vacation interval is the the number of days during which a sender will receive only a single vacation response. So, if the interval is 14, anyone who sends you mail twice within any 14-day period will receive only a single vacation notification.
 
Old 10-26-2006, 09:09 AM   #5
gr0undz3r0
LQ Newbie
 
Registered: Oct 2006
Distribution: FC 3 and 4
Posts: 24

Original Poster
Rep: Reputation: 15
That link is outdated, but you along with the link set me about the right path.
Google for linux vacation got me to the Sourceforge page!
I downloaded and - unzip , untar and install with
Code:
make install
Had a couple of errors about the man pages, not important.
Its in it seems to work:
su to user i want to set up vacation for;
su username
and run vacation at command line
Code:
sh$vacation
That takes u to a vi session where u can set your message.
Edit, save done with VI.
That also creates two files:
.forward (contains the command to do the deed)
.vacation.msg (what you just made)
vi them for further info.
Now
Code:
vacation -I
That sets the default .vacation.db file that says your away and sets it to run for 7 days.
Quote edit from below
Quote:
Examples:

1. Reply interval = 0. Send a vacation notice only to each sender's first email. Subsequent email by the same sender do not get a vacation notice:
Code:
vacation -i -r 0
2. Reply interval = 10. Send a vacation notice to each sender, so long as the sender has not received a previous vacation notice in the last 10 days.
Code:
vacation -i -r 10
Hope this helps.
DISCLAIMER - IM A NEWB if something is wrong here warn me ill fix it.
Rock on!
Blesings!

Last edited by gr0undz3r0; 10-26-2006 at 11:55 AM.
 
Old 10-26-2006, 11:06 AM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
The only thing you're doing wrong is not understanding the interval specified with vacation -r. Contrary to what was mentioned in the guide to which I linked, the vacation interval is not the number of days that vacation will run, but rather the number of days each sender has to wait before he is eligible to receive a second vacation notice. I pointed this out in my previous post.

Examples:

1. Reply interval = 0. Send a vacation notice only to each sender's first email. Subsequent email by the same sender do not get a vacation notice:
Code:
vacation -i -r 0
2. Reply interval = 10. Send a vacation notice to each sender, so long as the sender has not received a previous vacation notice in the last 10 days.
Code:
vacation -i -r 10
 
Old 10-26-2006, 11:53 AM   #7
gr0undz3r0
LQ Newbie
 
Registered: Oct 2006
Distribution: FC 3 and 4
Posts: 24

Original Poster
Rep: Reputation: 15
Also lowercase i doesnt work i had to use I
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix+vacation (not working...) tosszafer Linux - Software 2 08-18-2007 02:25 AM
Procmail+Postfix vacation message issues fedora_user Linux - Software 6 08-07-2006 07:25 AM
Calendar Solution Help Needed carlosinfl Linux - Enterprise 4 08-05-2006 07:19 AM
Vacation message for postfix. SSBN Linux - Networking 0 05-29-2005 08:27 AM
vacation not working with postfix jmcollin92 Linux - Software 5 09-21-2004 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration