LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Procmail vacation script (https://www.linuxquestions.org/questions/linux-software-2/procmail-vacation-script-819668/)

CNBarnes 07-13-2010 03:51 PM

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?

smoker 07-13-2010 10:56 PM

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.

pixellany 07-14-2010 07:15 AM

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.)

CNBarnes 07-14-2010 08:41 AM

Quote:

Originally Posted by pixellany (Post 4032777)
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.

CNBarnes 07-14-2010 09:06 AM

Quote:

Originally Posted by smoker (Post 4032500)
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.


All times are GMT -5. The time now is 08:19 AM.