微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

出口邮件过滤条件 示例 harish@dot.com

如何解决出口邮件过滤条件 示例 harish@dot.com

请帮助解决以下查询

if
    $header_from: contains "harish@dot.com"
    or $header_from: contains "ravish@dot.com"
then
    if ("$h_to:,$h_cc:,$h_bcc:" contains "@client.pw")    
    or ("$h_to:,$h_bcc:" contains "harish@dot.com")    
    or ("$h_to:,$h_bcc:" contains "ravish@dot.com")
then
    finish
else
    if error_message then save "/dev/null" 660 else fail "Messages from this domain or email are blocked." endif
    endif
endif

我的想法是我的域是 dot.com,我们希望来自该域 dot.com 的 2 个用户(粗暴和狂暴)应该能够通信并且可以向 client.pw 发送和接收电子邮件

示例。 harish@dot.com

  • 可以发送邮件ravish@dot.com 或@client.pw 的任意邮箱
  • 可以接收来自 ravish@dot.com 的电子邮件或@client.pw 的任何电子邮件
  • 不能向任何其他机构发送电子邮件,例如 xyz@dot.com、abc@gmail.com
  • 无法接收来自任何其他机构的电子邮件,例如 xyz@dot.com、abc@gmail.com
  • 当我们输入一封电子邮件 to 或 cc 时,上面的脚本工作正常,当我们输入 2 封电子邮件时出现问题,一封已授权,另一封未授权
    ravish@dot.com,abc@gmail.com
  • 它也通过了,因为我们正在检查包含 ravish@dot.com 并且这使条件为真,我们希望如果除了 harish@dot.com、ravish@dot.com 和 @client.pw 之外还有其他任何东西,这应该是错误

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。