Roundcube Community Forum

 

Autoreply not working

Started by imagica, March 28, 2015, 12:51:00 PM

Previous topic - Next topic

imagica

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

JohnDoh

If other rules are working it should be ok. Can you post your rule file please?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

imagica

which file do you mean, where is it hidden (running plesk 12 also)?  :-[


JohnDoh

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"
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

imagica

#4
Hello,

in my conf.d of dovecot there is 90-plesk-sieve.conf. Inside is :
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 :

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

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



Marco



JohnDoh

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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

imagica

#6
I found those errors in maillog

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?

imagica

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 <<>>:

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


JohnDoh

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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...