AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 893511
Accepted
Nick
Nick
Asked: 2018-01-23 07:00:47 +0800 CST2018-01-23 07:00:47 +0800 CST 2018-01-23 07:00:47 +0800 CST

带有 vmail 的 Dovecot 自动回复

  • 772

我有带有 postfix 和 dovecot 的服务器。电子邮件与 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
postfix
  • 1 1 个回答
  • 2300 Views

1 个回答

  • Voted
  1. Best Answer
    Nick
    2018-01-26T05:26:51+08:002018-01-26T05:26:51+08:00

    实际上,当我意识到 sieve 命令就像编程语言中的函数时,这很容易,只是没有括号。

    我想出了这个:

    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.";
    
    }
    
    • 1

相关问题

  • Postfix 在特定端口上接受邮件

  • 让 Postfix 以两种方式处理垃圾邮件

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 后缀电子邮件地址

  • 什么是最好的开源电子邮件解决方案包

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve