This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vacation_messages_setup [2018/07/03 12:04] – [Use Roundcube Webmail] deul | vacation_messages_setup [2022/08/16 08:00] (current) – jansen | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Vacation messages setup ====== | + | ====== Vacation messages setup | E-mail auto reply ====== |
- | {{: | + | {{: |
---- | ---- | ||
+ | We provide a form to set this up at the | ||
+ | [[https:// | ||
+ | This from is only accessible from inside the institute, so you either have to be there physically, or use VPN, VPC or any of the other remote access methods. | ||
+ | ---- | ||
+ | |||
+ | Below are some older methods that are still available: | ||
===== Email yourself ===== | ===== Email yourself ===== | ||
==== Turn on auto reply ==== | ==== Turn on auto reply ==== | ||
- | To turn on the " | + | To turn on the " |
==== Turn off auto reply ==== | ==== Turn off auto reply ==== | ||
Line 17: | Line 23: | ||
---- | ---- | ||
- | ===== Use Roundcube Webmail ==== | + | ===== Procmail |
- | The Observatory provide a [[https:// | + | |
- | + | ||
- | {{:: | + | |
- | + | ||
- | Click on the Vacation tab and (after some time) you are presented the vacation form: | + | |
- | {{:: | + | |
- | + | ||
- | If you did not yet set a vacation message, a default text is filled in for you to modify. Then select the checkbox ' | + | |
- | + | ||
- | If you have a vacation message setup previously, you will see the text from that vacation message in the form. You now have two options, | + | |
- | * modify the text, tick the checkbox and click Save to update your message text, or | + | |
- | * leave the checkbox unchecked and click Save to remove the vacation message and thus disabling the vacation messaging system | + | |
- | + | ||
- | + | ||
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Procmail | + | |
Vacation messages are setup at the mail server using the [[procmail]] program facilities. | Vacation messages are setup at the mail server using the [[procmail]] program facilities. | ||
- | The use of the ' | + | Below you find the lines (that may already be in your .procmailrc file) which have to be in the .procmailrc file to make [[procmail]] perform |
- | Additional note: as of Fedora Core 1(?), the vacation program is no longer distributed with the mail server setup, probably because of these same reasons. All the more reason to use an alternative like this. | ||
- | Below you find the lines (that may be commented out in your .procmailrc file) which have to be the .procmailrc file to make [[procmail]] perform | + | ######################################################################## |
+ | # | ||
+ | # | ||
+ | VAC_MESSAGE=$HOME/ | ||
+ | VAC_CACHE=$HOME/ | ||
+ | VAC_LOCK=$HOME/ | ||
+ | NL=" | ||
+ | " | ||
+ | |||
+ | # test if message is to and from the same address and if suject is | ||
+ | # "vacation | ||
+ | :0 | ||
+ | # adressed to a system user | ||
+ | *$ ^TO_$LOGNAME@ | ||
+ | # and is from that same user | ||
+ | *$ ^From:.*$LOGNAME@ | ||
+ | # has subject containing only " | ||
+ | * ^Subject: *vacation *\/o(ff|n) *$ | ||
+ | # clean out extra space | ||
+ | * MATCH ?? ()\/ | ||
+ | { | ||
+ | ACTION=$MATCH | ||
+ | LOG=" | ||
+ | |||
+ | :0c | ||
+ | | ||
+ | # remove vacation message and cache | ||
+ | | rm $VAC_MESSAGE $VAC_CACHE | ||
+ | :0Ebc | ||
+ | # create vacation message from body | ||
+ | | cat > $VAC_MESSAGE | ||
+ | # FIXME: extra newline in output; how to deal with attachements? | ||
+ | |||
+ | # As confirmation that vacation works the user will receive his own | ||
+ | # auto-reply from the next recipe | ||
+ | } | ||
+ | |||
+ | :0 | ||
+ | # is there a vacation message for that user? | ||
+ | | ||
+ | { | ||
+ | |||
+ | # from procmailex | ||
+ | :0 Whc: $VAC_LOCK | ||
+ | # Perform a quick check to see if the mail was addressed (to|cc) us | ||
+ | *$ ^TO_$\LOGNAME@ | ||
+ | # Don't reply to daemons and mailinglists | ||
+ | | ||
+ | # Mail loops are evil | ||
+ | | ||
+ | | formail -rD 8192 $VAC_CACHE | ||
+ | |||
+ | # if the name was not in the cache | ||
+ | :0 ehc | ||
+ | | (formail -rI" | ||
+ | cat $VAC_MESSAGE ) | $SENDMAIL -oi -t | ||
+ | |||
+ | } | ||
+ | | ||