Autoresponder does not work after update from 3.1 to 3.2

Discussion in 'Installation/Configuration' started by Carth, Oct 27, 2020.

  1. Carth

    Carth New Member

    Hello,

    after update on Debian 9 autoresponder does not work. What can I do or how can I track why?

    Thank you.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    It seems like this only happens when a forward address is set. Is that the case for you aswell?
     
  4. Carth

    Carth New Member

    Both tested email adresses (with forward and without (forwarded in the past)) are affected.
     
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Do you get a copy of the message delivered to your INBOX even when the autoresponder doesn't work? What logs do you get in mail.log when the autoresponder fails to send?

    What do you have in the /var/vmail/domain.com/user/.ispconfig-before.sieve and /var/vmail/domain.com/user/.ispconfig.sieve files? And do you have a /var/vmail/domain.com/user/.sieve? (If so, what does it contain?)
     
  6. Carth

    Carth New Member

    Autoresponder doesn't work, but forwarding works. In mail.log only original delivery.
    ---
    [email protected]:/data/vmail/penax.cz/lukas.vapenik# cat .ispconfig-before.sieve
    Code:
    # This sieve script is generated by ISPConfig, any changes made will be overwritten.
    # You can create and activate a per-user sieve script (manually or via managesieve),
    # which will execute after this.
    
    require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
    
    
    # Send a copy of email to
    redirect :copy "[email protected]";
    redirect :copy "[email protected]";
    ---
    [email protected]:/data/vmail/penax.cz/lukas.vapenik# cat .ispconfig.sieve
    Code:
    # This sieve script is generated by ISPConfig, any changes made will be overwritten.
    # You can create and activate a per-user sieve script (manually or via managesieve),
    # which will execute before this.
    
    require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
    
    
    #################################################################
    # Autoreply
    #################################################################
    
    # Move spam to spam folder
    if anyof (header :contains "X-Spam-Flag" "YES", header :contains "X-Spam" "Yes", header :contains "subject" "*** SPAM ***", header :contains "subject" "***SPAM***") {
     # Stop here so that we do not reply on spams
     stop;
    }
    
    if currentdate :value "ge" "iso8601" "2020-10-25T09:00:00" {
    if currentdate :value "le" "iso8601" "2020-10-31T15:40:00" {
    
    vacation  :days 1
     :subject "Out of office reply / mimo kancelář"
     :addresses ["[email protected]"]
     "Dobrý den,
     
    Ve dnech 26.-30.10.2020 čerpám řádnou dovolenou. E-mail i telefon jsou přesměrovány na pana Vojtěcha Koptu.
    
    
    Dear sender,
    I’m out of the office from 26.10. until 30.10.2020. I have no access to the internet , yours e-mails are forwarded to mr.Kopta.
     
     
     
    Děkuji.
    Thank you
     
    Lukáš Vápeník";
    
    }
    } 
    ---
    Folder sieve is empty. ".sieve" file do not exists .
     
  7. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Is the date correct on your server? Do you have these in /etc/dovecot/dovecot.conf:
    Code:
      sieve_before=/var/vmail/%d/%n/.ispconfig-before.sieve
      sieve_after=/var/vmail/%d/%n/.ispconfig.sieve
    
     
  8. Carth

    Carth New Member

    Date is OK and I change:
    Code:
      sieve=/var/vmail/%d/%n/.sieve
      sieve_before=/var/vmail/%d/%n/.ispconfig-before.sieve
      sieve_after=/var/vmail/%d/%n/.ispconfig.sieve
    to:

    Code:
      sieve=/data/vmail/%d/%n/.sieve
      sieve_before=/data/vmail/%d/%n/.ispconfig-before.sieve
      sieve_after=/data/vmail/%d/%n/.ispconfig.sieve
    Because I have vmail on /data partition and responder works.

    Thank you.
     
  9. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Glad you found the issue. Another approach to that which might be easier in the long run is to leave the paths the same, then bind mount /data/vmail at /var/vmail.
     
    Th0m likes this.

Share This Page