LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-13-2010, 03:51 PM   #1
CNBarnes
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Debian
Posts: 41

Rep: Reputation: 15
Procmail vacation script


I followed the instructions for a vacation script using procmail per the instructions at http://www.sns.ias.edu/~jns/wp/2006/01/31/configuring-vacation-mail-with-procmail/

It is working perfectly.

Which means, my questions are not of the debugging variety, but more of a "now that this is working, how do I tweak it".

(1) I modified the rc.vacation with my "primary" email address, specifically <<mod edit: remove e-mail address>>. But I would like it to ALSO match if someone sends me email to my "department specific address" <<mod edit: remove e-mail address>>
How do I modify the rc.vacation file to use multiple addresses for myself?


(2) The script is apparently keeping track of who it has sent the vacation message to (ie. the cache), but for the life of me I can't find the cache file. The docs seem to indicate that it is in $HOME./vacation.cache, but for it's not in either ~/.procmail/vacation.cache, nor ~/vacation.cache (nor in /tmp/)
Where might it really be?

Last edited by pixellany; 07-14-2010 at 07:13 AM.
 
Old 07-13-2010, 10:56 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
1)
Code:
* .*for <USER@DOMAIN>|\
  .*for <USER@OTHERDOMAIN>
* !^FROM_DAEMON
* !^X-Loop: USER@DOMAIN|\
  !^X-Loop: USER@OTHERDOMAIN
2)You can specify where the cache gets created. Here's another approach to vacation messages.
 
Old 07-14-2010, 07:15 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
CN*;
It's asking for trouble to post your e-mail address(es) on a public forum. I have removed them, but if you feel you really want them there, you can restore them. (I think your question can be answered without them.)
 
Old 07-14-2010, 08:41 AM   #4
CNBarnes
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 15
Talking

Quote:
Originally Posted by pixellany View Post
CN*;
It's asking for trouble to post your e-mail address(es) on a public forum. I have removed them, but if you feel you really want them there, you can restore them. (I think your question can be answered without them.)
This is true for the "average home user". But so long as one has *really good spam filtering*, it isn't a problem. Fwiw, I've been posting my real email addy on public forums since the mid-80's (in days of BitNet)...

No need to re-add them to the post however.
 
Old 07-14-2010, 09:06 AM   #5
CNBarnes
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smoker View Post
1)
Code:
* .*for <USER@DOMAIN>|\
  .*for <USER@OTHERDOMAIN>
* !^FROM_DAEMON
* !^X-Loop: USER@DOMAIN|\
  !^X-Loop: USER@OTHERDOMAIN
That was close. It works perfectly if I send email to the 2nd email address listed.
However, if I send email to the 1st email address listed, the sender does get the vacation reply, but the sender ALSO gets the original message sent back to them.

Subsequent email messages to either address are properly trapped by the vacation.cache. However, sending subsequent email to the 1st address continues to get the original message sent back to the sender.


Quote:
2)You can specify where the cache gets created.
Ah,,, I see. I changed it to
Code:
| formail -rD 8192 $PMDIR/vacation.cache
and it put it in the ~/.procmail directory.
 
  


Reply



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
PROCMAIL+POSTFIX - Vacation Mail issue arjuns8471 Linux - Newbie 4 02-26-2009 11:12 PM
LXer: Setup a Spam-Proof Vacation Autoresponder with Procmail + Sendmail LXer Syndicated Linux News 0 03-19-2008 01:50 PM
Procmail Script Cottsay Linux - Software 2 09-04-2006 11:55 AM
Procmail+Postfix vacation message issues fedora_user Linux - Software 6 08-07-2006 07:25 AM
procmail vacation messages works with command line but not squirrelmail paul_mat Linux - Networking 0 05-02-2006 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 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