User Tools

Site Tools


vacation_messages_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vacation_messages_setup [2018/07/03 12:02] – [Vacation messages setup] deulvacation_messages_setup [2022/08/16 08:00] (current) jansen
Line 1: Line 1:
-====== Vacation messages setup ======+====== Vacation messages setup | E-mail auto reply ======
  
  
-{{:setting-away-message-in-outlook.jpg?nolink&200 |}} You can setup a vacation message while you are away from your email in several ways. The most simple method is email yourself a specific message (see below). This may, however, not be so simple if you tend to use HTML formatted email or use an exotic program such as Outlook. For such occasions the webmail utility provides a nice feature (also see below). As a last resort you can always us the Linux specific procmail utiltity, which for all STRW accounts has been setup for you already (see last section below).+{{:setting-away-message-in-outlook.jpg?nolink&200 |}} You can setup a "vacation messagewhile you are away from your email in several ways. All this makes use of the Linux specific procmail utiltity, which for all STRW and IL accounts has been setup for you already (see last section below).
  
 ---- ----
 +We provide a form to set this up at the
 +[[https://intranet.strw.leidenuniv.nl/services/restricted/index.php?self_service=vacation|STRW Self service]]
 +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 "vacation" message, send yourself an e-mail with subject: **''vacation on''**. The message body will become the message sent to others when they mail you. Be sure to send the mail from your local strw account, otherwise it will not get processed (we don't want that others can turn this feature on or off for you!)+ To turn on the "vacation" message, send yourself an e-mail with subject: **''vacation on''**. The message body will become the message sent to others when they mail you. Be sure to send the mail from your local strw or Lorentz Institute account, otherwise it will not get processed (we don't want that others can turn this feature on or off for you!)
  
 ==== Turn off auto reply ==== ==== Turn off auto reply ====
Line 17: Line 23:
 ---- ----
  
-===== Use Roundcube Webmail ==== +===== Procmail Setup =====
-The Observatory provide a WEB mail facility that allows to to read and write email from your STRW account using a standard browser. The tool providing this facility is based on the open source package Roundcube. This package as sevelar pluging, one of which is the vacation plugin. You can access this pluging by selecting the Settings option (top right). Once selected you are presented a window with tabs, one of which is the Vacation Tab: +
- +
-{{::roundcube_vacation1.png?600|}}  +
- +
-Click on the Vacation tab and (after some time) you are presented the vacation form: +
-{{::roundcube_vacation2.png?600|}} +
- +
-If you did not yet set a vacation message, a default text is filled in for you to modify. Then select the checkbox 'Enable vacation message' and click on the Save button. Now this text is put into your vacation message file and from this point on people who send you an email will get this text in reply. +
- +
-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 Alternative =====+
 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 'vacation' program is not always a good ideaIt causes spam bounces to the local postmaster (who probably has better things to do than reading spam addressed to you) and in the worst case, it confirms the validity of your e-mail address to the spammer, which makes your address so much more valuable to himSo if you don'want to be burried in spam when you come back from your tripdon't use 'vacation', but use this vacation-like setup (from procmailex man page, modified for local settings)+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 the same actions as the vacation programIf you don'have a .procmailrc fileor an older one without these additions, run **''SfinxUpdate .procmailrc''** to install a [[procmail]] setup on your account.
  
-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 the same actions as the vacation program, excluding the problems mentioned above. If you don't have a .procmailrc fileor an older one without these additionsrun **''SfinxUpdate .procmailrc''** to install a [[procmail]] setup on your account.+  ######################################################################## 
 +  # 
 +  # 
 +  VAC_MESSAGE=$HOME/.vacation.msg 
 +  VAC_CACHE=$HOME/.vacation.cache 
 +  VAC_LOCK=$HOME/.vacation.lock 
 +  NL=" 
 +  " 
 +   
 +  # test if message is to and from the same address and if suject is 
 +  # "vacation on" or "vacation off" 
 +  :0 
 +  # adressed to system user 
 +  *$ ^TO_$LOGNAME@ 
 +  # and is from that same user 
 +  *$ ^From:.*$LOGNAME@ 
 +  # has subject containing only "vacation (on|off)" 
 +  *  ^Subject: *vacation *\/o(ff|n) *$ 
 +  # clean out extra space 
 +  *  MATCH ?? ()\/o(ff|n) 
 +  { 
 +      ACTION=$MATCH 
 +      LOG="ACTION: $ACTIONUSER: $LOGNAMEHOME: $HOME $NL" 
 +    
 +      :0c 
 +      ACTION ?? off 
 +      # 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? 
 +  *$? "test -e $VAC_MESSAGE" 
 +  {  
 +     
 +      # 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 
 +       !^FROM_DAEMON 
 +      # Mail loops are evil 
 +      *$ !^X-Loop: $XLOOP 
 +      | formail -rD 8192 $VAC_CACHE 
 +  
 +      # if the name was not in the cache 
 +      :0 ehc 
 +      | (formail -rI"Precedence: junk" -A"X-Loop: $XLOOP" ; \ 
 +          cat $VAC_MESSAGE ) | $SENDMAIL -oi -t 
 +  
 +  } 
 +  
  
vacation_messages_setup.1530619343.txt.gz · Last modified: 2018/07/03 12:02 by deul