出口邮件过滤条件 示例 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 (将#修改为@)