Topic: Sieve Vacation response not working using SOGO
============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS Linux release 7.2.1511 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? : Yes
- Related log if you're reporting an issue: Dovecot, Sogo
====
Hi,
I have been struggling to make it work for Vacation response using SOGO. I can see sogo.sieve file is automatically created when vacation is enabled from sogo webmail in MAILDIR/sieve directory.
dovecot-sieve.log shows following entries:
Oct 18 18:45:28 lda: Debug: auth input: myid@mydomain.com master_user=myid@mydomain.com home=/var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10/ mail=maildir:~/Maildir/ quota_rule=*:bytes=26843545600
Oct 18 18:45:28 lda: Debug: Added userdb setting: plugin/master_user=myid@mydomain.com
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10/
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota rule: root=user mailbox=* bytes=26843545600 messages=0
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=26843545600 (100%) messages=0 reverse=no command=quota-warning 100 myid@mydomain.com
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=25501368320 (95%) messages=0 reverse=no command=quota-warning 95 myid@mydomain.com
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=24159191040 (90%) messages=0 reverse=no command=quota-warning 90 myid@mydomain.com
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=22817013760 (85%) messages=0 reverse=no command=quota-warning 85 myid@mydomain.com
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota grace: root=user bytes=2684354560 (10%)
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: dict quota: user=myid@mydomain.com, uri=proxy::quotadict, noenforcing=0
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir/
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//Maildir, alt=
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: acl: initializing backend with data: vfile:/etc/dovecot/dovecot-acl:cache_secs=300
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: acl: acl username = myid@mydomain.com
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: acl: owner = 1
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: acl vfile: Global ACL directory: /etc/dovecot/dovecot-acl
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 raw mail user
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 raw mail user
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 raw mail user
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 raw mail user
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Quota grace: root=user bytes=107374182 (10%)
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: dict quota: user=raw mail user, uri=proxy::quotadict, noenforcing=0
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: Destination address: myid@mydomain.com (source: user@hostname)
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: Pigeonhole version 0.4.2 initializing
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: executed before user's personal Sieve script(1): /var/vmail/sieve/dovecot.sieve
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: using the following location for user's Sieve script: /var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//sieve/dovecot.sieve;name=main script
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: opening script 1 of 2 from /var/vmail/sieve/dovecot.sieve
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: loading script /var/vmail/sieve/dovecot.sieve
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: script binary /var/vmail/sieve/dovecot.svbin successfully loaded
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: binary save: not saving binary /var/vmail/sieve/dovecot.svbin, because it is already stored
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: executing script from /var/vmail/sieve/dovecot.svbin
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: opening script 2 of 2 from /var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//sieve/dovecot.sieve;name=main script
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: loading script /var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//sieve/dovecot.sieve;name=main script
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: script binary /var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//sieve/dovecot.svbin is not up-to-date
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: script `main script' from /var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//sieve/dovecot.sieve;name=main script successfully compiled
Oct 18 18:45:28 lda(myid@mydomain.com): Debug: sieve: executing script from /var/vmail/vmail1/mydomain.com/m/y/myid-2016.10.07.18.27.10//sieve/dovecot.sieve;name=main script
Oct 18 18:45:28 lda(myid@mydomain.com): Info: sieve: msgid=<CAFpv_ZPYDZoFo-jaaMAVag4dziwVEHWZtfoGSD3ENuEb2XM2Jw@mail.gmail.com>: discarded duplicate vacation response to <myid@gmail.com>
Oct 18 18:45:28 lda(myid@mydomain.com): Info: sieve: msgid=<CAFpv_ZPYDZoFo-jaaMAVag4dziwVEHWZtfoGSD3ENuEb2XM2Jw@mail.gmail.com>: stored mail into mailbox 'INBOX'
Auto created dovecot.sieve (linked to sogo.sieve ) in MAILDIR/sieve shows:
require ["vacation","variables"];
if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", "list-owner", "list-post", "list-archive", "list-id", "Mailing-List"], not header :comparator "i;ascii-casemap" :is "Precedence" ["list", "bulk", "junk"], not header :comparator "i;ascii-casemap" :matches "To" "Multiple recipients of*" ) { if header :matches "Subject" "*" { set "subject" "${1}"; } vacation :days 1 :subject "Out Of Office: ${subject}" :addresses ["myid@mydomain.com"] text:
i am on vacation-- test
.
;
}
in above file days shows 1 which leads to:
If first email has been received from a sender it will send vacation response, if same user sends email again in 1 day, vacation response is not being sent.
Is there any way where we can force to send vacation response everytime whenever email comes only to sender?
I tried following plugin in dovecot.conf also just to test as sogo vacation settings allow days between responses section:
plugin {
# Use vacation-seconds
sieve_extensions = +vacation-seconds# One hour at minimum
sieve_vacation_min_period = 1h# Ten days default
sieve_vacation_default_period = 10d# Thirty days at maximum
sieve_vacation_max_period = 30d
}
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.