Author Topic: [SOLVED] Zentyal 3.4 / Vacation message  (Read 2912 times)

firmwarebug

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
[SOLVED] Zentyal 3.4 / Vacation message
« on: June 25, 2014, 11:50:54 am »
Dear all,

It is holiday season in fast approach and therefore I need to provide users some out of office replay.

Since I did not find any solution about that on User's Corner to allow users to do that by their own I direct them into webmail (roundcube):

On Mail->General I enabled  "Manage Sieve scripts This service allows to a user to manage his Sieve mail filtering scripts from a local client which speaks the ManageSieve protocol" 

On Roundcube Settings- Filters- Filters set - Filters  they created their own filter with replay message (and enabled it of course).

http://www.forbin.com/support/documents/roundcube-vacation-auto-reply-filter.pdf

Unfortunately, the solution did not work . Nor with full email name nor with  aliases.

I have searching around the forum but solutions are couple of years old.

So , my question is this:
Is there any working and tested solution to enable message autoreplay or so called vacation message in Zentyal 3.4?

Thank you for your replay



« Last Edit: June 25, 2014, 08:35:44 pm by firmwarebug »

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #1 on: June 25, 2014, 12:57:46 pm »
Hello Have you checked sieve logs on /var/vmail/sieve/domain/user/ ?

firmwarebug

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #2 on: June 25, 2014, 01:27:44 pm »
Hmm, yes.

But I got permission denied

 tail: cannot open ‘/var/vmail/domain/user/’ for reading: Permission denied
 tail: cannot open ‘/var/vmail/sieve/domain/’ for reading: Permission denied


jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #3 on: June 25, 2014, 01:28:13 pm »
Did you do so as root?

firmwarebug

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #4 on: June 25, 2014, 02:00:28 pm »
Gosh ,
here is the log as root:

/var/vmail/sieve/domain/user/roundcube.sieve

=====================
require ["vacation"];
# rule:[Message about vacation]
if true
{
        vacation :days 1 :subject "Message about vacation" "Hello , I'm out of the office till 15.7.2014";
}

====================

Hope that helps.

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #5 on: June 25, 2014, 02:50:01 pm »
I would check .log files on such folder and/or /var/log/mail.log in order to look for some error regarding such sieve script.

Perhaps a good idea would be to tail those files and to try sending an email to this user and check the new lines that will be shown

firmwarebug

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #6 on: June 25, 2014, 03:59:41 pm »
This is an output of

 tail -f /var/log/mail.log | grep sieve

Jun 25 15:55:17 mail dovecot: lda(user@domain): sieve: msgid=<CADdhyQyeBVNEP6wBS-4RNPrFUV2nj3VHcjjwAu2ATq8oghan+A@mail.gmail.com>: discarded duplicate vacation response to <userwhosendsmail@gmail.com>
Jun 25 15:55:18 mail dovecot: lda(user@domain): sieve: msgid=<CADdhyQyeBVNEP6wBS-4RNPrFUV2nj3VHcjjwAu2ATq8oghan+A@mail.gmail.com>: stored mail into mailbox 'INBOX'

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #7 on: June 25, 2014, 04:17:31 pm »
Hello:

According to RFC 5230 (http://tools.ietf.org/html/rfc5230#section-4.1):

Quote
The ":days" argument is used to specify the period in which addresses
   are kept and are not responded to, and is always specified in days.
   The minimum value used for this parameter is normally 1.  Sites MAY
   define a different minimum value as long as the minimum is greater
   than 0.  Sites MAY also define a maximum days value, which MUST be
   greater than 7, and SHOULD be greater than 30.

   If ":days" is omitted, the default value is either 7 or the minimum
   value (as defined above), whichever is greater.


This error means that a message has already been  sent to that user in the :days defined period, and that's why it is not sending another one

firmwarebug

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #8 on: June 25, 2014, 05:13:03 pm »
Hi,

Let is sum it up to check If I understand correctly:

If option

 vacation :days 1

is set , sieve will respond with  vacation message to sender's address one time at one day. On all other messages from the same sender, sieve will not send vacation message but will move the message into inbox folder.

Next day the situation repeats itself. With first one it generates vacation respond to sender, but for the next messages it moves them direct into inbox folder.



 


jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #9 on: June 25, 2014, 05:25:13 pm »
Hello:

Basicly, it should be as you say

firmwarebug

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #10 on: June 25, 2014, 05:54:29 pm »
Thank you for your help.

Problem solved. What I though it was a bug was actually a feature :-)

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Zentyal 3.4 / Vacation message
« Reply #11 on: June 25, 2014, 05:55:11 pm »
No prob. Just stamp [solves] to your thread it it's solved