Автоответчик Dovecot с vmail

У меня есть сервер с postfix и dovecot. Электронная почта доставляется с голубятней. /etc/postfix/master.cf выглядит так:

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/bin/spamc -e /usr/libexec/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop}

У меня недействительный адрес.

Если кто-то напишет туда письмо, я хочу отправить туда автоответчик и переслать письмо кому-то другому.

Я выполнял переадресацию с помощью / etc / postfix / virtual :

vess@trabels.net    vess@trabels.net, ticket@trabels.net

Однако я не знаю, как использовать решето автоответчика:

require ["fileinto", "vacation"];

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 []
"
Hello,
I will be out of the office till Monday, 29 January with no access to the e-mail.
Please write to ticket@trabels.net.
";

Использование / etc / postfix / virtual как-нибудь будет лучше, например что-то вроде:

vess@trabels.net    vess@trabels.net, ticket@trabels.net, autorespond
0
задан 22 January 2018 в 17:00
1 ответ

Eintlik was dit baie maklik sodra ek besef het dat die sif opdragte is soos funksies in programmeertaal, behalwe dat daar geen hakies is nie.

Ek kom hiermee uit:

require ["fileinto", "vacation"];

if header :contains "X-Spam-Flag" "YES" {
    fileinto "Junk";

}elsif address :is "to" "vess@trabels.net" {
    vacation "I will be out of the office till Monday.";

}
0
ответ дан 5 December 2019 в 06:45

Теги

Похожие вопросы