Autoreply

A lot of people in our forum asked for autoreply for the Mailstation. Most of such solutions base on the binary vacation. Until today I could no achive to compile it on the DS

dovecot-sieve

But there is an „easy“ solution with dovecot-sieve.
dovecot-sieve and deliver have to be compiled from source

After that you create in users home direcotry the file

.dovecot.sieve

This file need to be owned by the owner of the home directory and chmod 0600

The file itself is „cunstructed“ quite easy as follows

require ["envelope", "vacation"];
vacation
 :days 1
 :subject "Jo Man I'm outta on the road"
"Hei Gangster,
I'm not at home but cuising on the streets until next week.

Peace

Jack the Ripper";

Using :days 1 ensures that only one mail is sent per sender address a day. Bigger values can be set but 0 is NOT possible and will be „changed“ by the plugin to 1

Now dovecot-sieve looks for sendmail in the wrong location. This can be fixed by adding a symlink

ln -s /usr/syno/mailstation/sbin/sendmail /usr/lib/

Tipp while testing: As only once a day a respond is sent, it is a bit tricky to test the vacation dovecot-sieve creates the following file in users home

.dovecot.lda-dupes

and saves the addresses that already received a reply in it. So just delete this file and dovecot-sieve will create a new empty one

Autoreply is a bit tricky. First of all they confirm the existance of an email address. And if a „faked“ sender is used an inocent user will receive your autoreply.
Especially when using getmail and deliver to get mails from external accounts it would be quite un-intelligent to add a autoreply for this account!!!
Melden sich Sie an um ein Kommentar zu erstellen.
 
/var/vhosts_root/syno/data/pages/vacation_with_dovecot-sieve.txt · Zuletzt geändert: 2010/09/12 19:31 von lecheffe
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki