1

Topic: Email Auto-Reply

==== Provide basic information to help troubleshoot ====
- iRedMail version: 0.7.3
- Linux/BSD distribution name and version: Linux Debian 6.0
- Any related log? Log is helpful for troubleshooting: Nope
====

Hi,

I don't use roundcube and I wish to to put for 3 different accounts an auto reply for the time they are under vacation.
Do you have any clue as to how to do it from the command line ? Or is it a way to do it from the admin (mysql pro version) ?

Thank you for your time,

Regards

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Email Auto-Reply

Hi,

Some pointers would be already nice, so I can look for information about it.

Thank you in advance,
Regards

3

Re: Email Auto-Reply

Create file /var/vmail/sieve/domain.ltd/username/dovecot.sieve, with below content:

require ["fileinto", "vacation"];

# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
  fileinto "spam";
  # Stop here so that we do not reply on spams
  stop;
}

vacation
  # Reply at most once a day to a same sender
  :days 1
  :subject "Out of office reply"
  # List of additional recipient addresses which are included in the auto replying.
  # If a mail's recipient is not the envelope recipient and it's not on this list,
  # no vacation reply is sent for it.
  :addresses ["j.doe@company.dom", "john.doe@company.dom"]
"I'm out of office, please contact Joan Smith instead.
Best regards
John Doe";

File owner must be "vmail:vmail", file permission must be 0700.

Reference: http://wiki.dovecot.org/LDA/Sieve#Vacation_auto-reply-1