Roundcube Community Forum

Release Support => Pending Issues => Topic started by: imagica on March 28, 2015, 12:51:00 PM

Title: Autoreply not working
Post by: imagica on March 28, 2015, 12:51:00 PM
Hello

we are running centos 6 with roundcube 1.0.5 and dovecot with installed sieverules. All filters are working as expected except the autoresponder.

Is there additional setup necessary?

Greets Marco
Title: Re: Autoreply not working
Post by: JohnDoh on March 28, 2015, 01:09:02 PM
If other rules are working it should be ok. Can you post your rule file please?
Title: Re: Autoreply not working
Post by: imagica on March 28, 2015, 01:29:55 PM
which file do you mean, where is it hidden (running plesk 12 also)?  :-[

Title: Re: Autoreply not working
Post by: JohnDoh on March 28, 2015, 01:55:50 PM
I mean the file which contains your sieve script. The location will be set in your dovecot configuration. A line something like "sieve = ~/.dovecot.sieve"
Title: Re: Autoreply not working
Post by: imagica on March 28, 2015, 05:25:19 PM
Hello,

in my conf.d of dovecot there is 90-plesk-sieve.conf. Inside is :
Code: [Select]
protocols = $protocols sieve

protocol sieve {
}

protocol lda {
  mail_plugins = $mail_plugins sieve
}

plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve

  # Horde webmail (Ingo sieve backend) is not aware of RFC 'imap4flags' and
  # 'enotify' extensions. Enable old deprecated ones.
  sieve_extensions = +notify +imapflags
}

# Log format compatible with Plesk statistics collector.
managesieve_logout_format = "rcvd=%i, sent=%o"

# vim:ts=2 sts=2 sw=2 et:

so the path is  sieve = ~/.dovecot.sieve

->looking in the mailnames folder there is a symbolic link pointing to .dovecot.sieve -> sieve/roundcube.sieve

inside this file the content is :

Code: [Select]
## Generated by Roundcube Webmail SieveRules Plugin ##
require ["vacation"];

# rule:[new]
if anyof (true)
{
vacation
:subject "out of office"
"out of office";
}


Marco


Title: Re: Autoreply not working
Post by: JohnDoh on March 29, 2015, 08:52:13 AM
that looks normal to me. I see in the dovecot documentation that it writes an error log in the user's directory if a script encounters an error. may be there is more infomraiton that.
Title: Re: Autoreply not working
Post by: imagica on March 29, 2015, 11:42:39 AM
I found those errors in maillog

Code: [Select]
Mar 29 16:57:25 server dovecot: service=lda, user=xx@xxx.xx, ip=[]. sieve: msgid=<b670eba9-39f9-41f9-9a8a-db44ce8dd2fa@me.com>: discarded vacation reply to <>
Could this have something to to with the problem?
Title: Re: Autoreply not working
Post by: imagica on March 30, 2015, 05:01:51 AM
so now i managed it to get working by changing the qmail deliver command by adding the preline:

| /var/qmail/bin/preline -f /usr/libexec/dovecot/dovecot-lda -d "$DELIVERED_TO"

Now the autoresponder works for most mails (tryed from iCloud and other mailservers) except gmail complaints about the syntax because of double <<>>:

Code: [Select]
Mar 30 09:56:38 server dovecot: service=lda, user=xx@xx.de, ip=[]. sieve: msgid=<CACftkLXd9ha3cJ+GeTYD_CNou71R1b=MzoLfAQ4-rX76NvxJng@mail.gmail.com>: sent vacation response to <xxxx@gmail.com>
Mar 30 09:56:39 server qmail: 1427702199.096480 delivery 133: failure: Connected_to_2a00:1450:4013:0c01:0000:0000:0000:001b_but_sender_was_rejected./Remote_host_said:_555_5.5.2_Syntax_error._cq5si16636445wjb.115_-_gsmtp/

Any suggestions?

Thanks Marco

Title: Re: Autoreply not working
Post by: JohnDoh on March 30, 2015, 08:22:31 AM
I'm glad you found the cause but I think you might have to as in the qmail or dovecot community about that. May be some people here use dovecot+qmail but I think you might get a faster from their communities.