[Dovecot] Vacation - out of office
Hi all,
is it possible to install/activate a "out of office" messages for each user in dovecot?
I've read about the Sieve scripts, but can't find a howto to install it on your dovecot 1.0.7 installation.
http://wiki.dovecot.org/LDA/Sieve ... With v1.1 it's possible to include other Sieve scripts in your script ...
I know, its an old release, so don't treat me like a dog ;-). Upgrade to the newest version will be done at the next maintenance windows.
many thanks Richard
On 8/11/2010 3:18 AM, Richard Gliebe wrote:
Hi all,
is it possible to install/activate a "out of office" messages for each user in dovecot?
I've read about the Sieve scripts, but can't find a howto to install it on your dovecot 1.0.7 installation.
http://wiki.dovecot.org/LDA/Sieve ... With v1.1 it's possible to include other Sieve scripts in your script ...
I know, its an old release, so don't treat me like a dog ;-). Upgrade to the newest version will be done at the next maintenance windows.
many thanks Richard Yes, sieve, managesieve, and custom webmail/imap clients using managesieve will allow numerous ways to manipulate messages, including automatically storing spam in the spam folder, using a header or subject check, vacation response, redirecting, and more. We sell Voip and give out the e-mail accounts for the customers to receive voicemail in; sieve automatically moves voice messages e-mailed by asterisk to their Voicemail folder.
As a quick howto, you have to install dovecot with your config options to include --enable-header-install so that the development libraries will be available to sieve and managesieve, the same with sieve for managesieve to have sieve's libraries. The managesieve version will be appropriate to the dovecot version you have, of dovecot-x.x.x-managesieve-(chosen version) where x.x.x is the dovecot version you chose.
Let the list know if you need anymore help!
Jerrale G. Senior Technical Administrator Shelton Computers
On 8/11/10 10:02 AM Jerrale G wrote:
Let the list know if you need anymore help!
is there another solution available than sieve? As I read, sieve works only with dovecot 1.1 and above.
At the moment, we are running v 1.0.7. and I need a "out of office" solution for our running version of dovecot.
procmail/sendmail is also installed.
Upgrade to the newest version is at the moment not possible.
many thanks Richard
On 8/11/2010 4:19 AM, Richard Gliebe wrote:
On 8/11/10 10:02 AM Jerrale G wrote:
Let the list know if you need anymore help!
is there another solution available than sieve? As I read, sieve works only with dovecot 1.1 and above.
At the moment, we are running v 1.0.7. and I need a "out of office" solution for our running version of dovecot.
procmail/sendmail is also installed.
Upgrade to the newest version is at the moment not possible.
many thanks Richard
Yes, you can use procmail and maildrop. It isn't integrated; so, the configuration will be extensive. It would be better, in this case, to only use dovecot for sasl and have procmail or maildrop an executable of your SMTP (postfix or w/e)
J. G. SCA
On 8/11/10 10:43 AM Jerrale G wrote:
Yes, you can use procmail and maildrop. It isn't integrated; so, the configuration will be extensive. It would be better, in this case, to only use dovecot for sasl and have procmail or maildrop an executable of your SMTP (postfix or w/e)
~/.procmail is the solution without any other tools/scripts and so on. Best quick'n dirty solution for me ;-)
# cat .procmailrc
SHELL=/bin/sh
Sent_To = formail -xTo: | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'
:0 Whc: vacation.lock
- !^FROM_DAEMON
- !^X-Loop: ${Sent_To} | formail -rD 8192 vacation.cache
Only run this rule if the last rule didn't match, meaning it will only
mail each # user once.
:0 ehc # if the name was not in the cache
| (formail -rA"Precedence: junk"
-A"X-Loop: ${Sent_To}" ;
cat $HOME/.vacation.message;
echo "";
echo "-- "; cat $HOME/.signature
) | $SENDMAIL -oi -t -f "${Sent_To}"
thanks Richard
If the below replies to *all* messages, it is broken. I don't understand the code, but I don't see any attempt to detect any of the numerous situations where a vacation message shoul NOT be sent (like dovecot list messages, for just one example).
Richard Gliebe wrote:
On 8/11/10 10:43 AM Jerrale G wrote:
Yes, you can use procmail and maildrop. It isn't integrated; so, the configuration will be extensive. It would be better, in this case, to only use dovecot for sasl and have procmail or maildrop an executable of your SMTP (postfix or w/e)
~/.procmail is the solution without any other tools/scripts and so on. Best quick'n dirty solution for me ;-)
# cat .procmailrc SHELL=/bin/sh Sent_To =
formail -xTo: | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'
:0 Whc: vacation.lock
- !^FROM_DAEMON
- !^X-Loop: ${Sent_To} | formail -rD 8192 vacation.cache
Only run this rule if the last rule didn't match, meaning it will only
mail each # user once.
:0 ehc # if the name was not in the cache | (formail -rA"Precedence: junk"
-A"X-Loop: ${Sent_To}" ;
cat $HOME/.vacation.message;
echo "";
echo "-- "; cat $HOME/.signature
) | $SENDMAIL -oi -t -f "${Sent_To}"thanks Richard
--
Best regards,
Charles
On 8/11/10 1:03 PM Charles Marcus wrote:
If the below replies to *all* messages, it is broken. I don't understand the code, but I don't see any attempt to detect any of the numerous situations where a vacation message shoul NOT be sent (like dovecot list messages, for just one example).
thats why the "* !^FROM_DAEMON". This regexp should already catch them.
Hope, I doesn't misunderstood this ;-)
regards Richard
participants (3)
-
Charles Marcus
-
Jerrale G
-
Richard Gliebe