首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >只向本地用户发送度假回复

只向本地用户发送度假回复
EN

Server Fault用户
提问于 2014-12-22 21:01:10
回答 1查看 1.3K关注 0票数 1

我已经在os服务器(10.8)上安装了一个圆形多维数据集/后缀设置,运行了一段时间。今天,我们发现假期过滤器只向本地用户发送消息。它在一段时间前就起作用了,所以我想是一次更新弄坏了什么。我已经重新安装了圆形立方体,但仍然只有本地用户才能得到假期响应。

我想这一定是邮件传送,但我不知道出了什么问题。任何想法都将不胜感激。

这是从myself@outside.example.net发送到user@example.com的消息的日志

代码语言:javascript
复制
macmini.example.com postfix/qmgr[5115]: 3508123A2110: from=<myself@outside.example.net>, size=2674, nrcpt=1 (queue active)
macmini.example.com postfix/smtpd[5152]: disconnect from mxout-027-ewr.mailhop.org[216.146.33.27]
macmini.example.com postfix/smtpd[5118]: connect from localhost[127.0.0.1]
macmini.example.com postfix/smtpd[5118]: 3FB9A23A2119: client=localhost[127.0.0.1]
macmini.example.com postfix/cleanup[5120]: 3FB9A23A2119: message-id=<CAGgjO8Pv4UZ+QmDOgJdo8V5MZptiRTP25c0w2bnwZieNyrnUMQ@mail.gmail.com>
macmini.example.com postfix/smtpd[5118]: disconnect from localhost[127.0.0.1]
macmini.example.com postfix/qmgr[5115]: 3FB9A23A2119: from=<myself@outside.example.net>, size=3101, nrcpt=1 (queue active)
macmini.example.com postfix/smtp[5116]: 3508123A2110: to=<user@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, delays=1.1/0/0/0.06, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 3FB9A23A2119)
macmini.example.com postfix/qmgr[5115]: 3508123A2110: removed
macmini.example.com postfix/pickup[5114]: 4A8E123A211C: uid=214 from=<>
macmini.example.com postfix/cleanup[5120]: 4A8E123A211C: message-id=<dovecot-sieve-1419283881-289928-0@macmini.example.com>
macmini.example.com postfix/qmgr[5115]: 4A8E123A211C: from=<>, size=659, nrcpt=1 (queue active)
macmini.example.com postfix/pipe[5122]: 3FB9A23A2119: to=<user@example.com>, relay=dovecot, delay=0.05, delays=0/0/0/0.05, dsn=2.0.0, status=sent (delivered via dovecot service)
macmini.example.com postfix/qmgr[5115]: 3FB9A23A2119: removed
macmini.example.com postfix/smtpd[5118]: connect from localhost[127.0.0.1]
macmini.example.com postfix/smtpd[5118]: 58C3C23A2129: client=localhost[127.0.0.1]
macmini.example.com postfix/cleanup[5120]: 58C3C23A2129: message-id=<dovecot-sieve-1419283881-289928-0@macmini.example.com>
macmini.example.com postfix/qmgr[5115]: 58C3C23A2129: from=<>, size=1088, nrcpt=1 (queue active)
macmini.example.com postfix/smtp[5116]: 4A8E123A211C: to=<myself@outside.example.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.08, delays=0/0/0/0.07, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 58C3C23A2129)
macmini.example.com postfix/qmgr[5115]: 4A8E123A211C: removed

这是圆形立方体/managesieve生成的规则。

代码语言:javascript
复制
require ["vacation"];
# rule:[out 2]
if true
{
   vacation :days 1 :addresses ["user@example.com"] :subject "not here" "out of office";
}

现在我看到我的邮件中继正在弹出答复,因为它是从<>发送的(请注意,这不是模糊的,它是空的)。

代码语言:javascript
复制
macmini.example.com postfix/smtp[5173]: 58C3C23A2129: to=<myself@outside.example.net>, relay=smtpcorp.com[216.22.15.247]:25, delay=2.1, delays=1/0.02/0.9/0.16, dsn=5.0.0, status=bounced (host smtpcorp.com[216.22.15.247] said: 550-MDR refused, to send MAIL FROM: <> use both IP-address and password 550 xxxx.xxxx.xxxx.xxxx/32 (in reply to RCPT TO command))
EN

回答 1

Server Fault用户

回答已采纳

发布于 2014-12-23 06:53:59

这条邮件记录线

代码语言:javascript
复制
macmini.example.com postfix/smtp[5173]: 58C3C23A2129: to=<myself@outside.example.net>, relay=smtpcorp.com[216.22.15.247]:25, delay=2.1, delays=1/0.02/0.9/0.16, dsn=5.0.0, status=bounced (host smtpcorp.com[216.22.15.247] said: 550-MDR refused, to send MAIL FROM: <> use both IP-address and password 550 xxxx.xxxx.xxxx.xxxx/32 (in reply to RCPT TO command))

表示您的SMTP上游被拒绝转发您的电子邮件。看来修改策略对你来说是有效的解决方案。

是否有办法避免from=<>并让它实际插入发送方?

RFC 5230第4.3节说,在发送假期时可以使用自定义发送者。只需在规则中指定:from "user@example.com"即可。例如

代码语言:javascript
复制
vacation :days 1 :from "user@example.com" :addresses ["user@example.com"] :subject "not here" "out of office";

我不熟悉圆形立方体,所以我不能告诉你插件管理器是否有能力设置发送方。

参考资料(S)

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/654277

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档