在我的Postfix上,我尝试拒绝使用来自本地托pipe的域的伪地址的发件人。 但是我只想执行本地域的检查,而不是每个发件人。 所以如果example.com是在本地pipe理的,我想阻止[email protected]并让[email protected]和[email protected]通过。 我看着与reject_unverified_sender smtpd_sender_restrictions ,但我不知道如何做本地域的检查。
我有我的Ubuntu服务器上运行的Postfix,我想configuration它运行一个命令,当它收到某些电子邮件。 例如,如果我通过gmail帐户发邮件给自己,主题是“todo”,我希望Postfix将邮件正文附加到/ home / brian / todo。 从阅读Postfix文档,我只看到如何configuration规则拒绝错误代码的电子邮件。 所以也许Postfix不是这个工作的工具,在这种情况下,我会很感激一个更合适的工具的反馈。 谢谢,Brian [更新:20090616]扩展选定的答案,这里是我的.procmailrc: :0 * ^To.*[email protected] * ^Subject.*specialsubject | ~/bin/extract_email_body.py >> ~/todo 这里是〜/ bin / extract_email_body.py: #!/usr/bin/python import sys import email def print_plain_text_parts(msg): if msg.is_multipart(): for part in msg.get_payload(): print_plain_text_parts(part) elif msg.get_content_type() == 'text/plain': print(msg.get_payload().strip()) msg = email.message_from_file(sys.stdin) print_plain_text_parts(msg)
我需要能够指定Postfix将用于传递出站邮件的接口。 我正在做的是设置一个SMTP网关来传递来自不同的,不相关的组的邮件。 我打算为每个组设置一个单独的Postfix实例来接收邮件,每个实例都需要在自己的虚拟接口上交付。 我需要他们分开的原因是,如果其中一个组发生错误,并将服务器列入黑名单,我不希望任何其他组受到影响。 但是我不想在可能的情况下设置完全独立的服务器或虚拟机。
我有一个与Postfix的VPS。 电子邮件正在工作 – 我可以发送消息,使用mutt和我的GMail帐户进行testing。 但是,我想将发送到我的VPS的所有邮件转发给我的GMail帐户,因此全部在一个地方。 我尝试在我的.forward指定我的Gmail地址,但是这样做后,电子邮件完全丢失。 他们不会出现在mutt ,并且不会在GMail中显示。 mail.logbuild议发送电子邮件,并且没有我在mail.err可以看到的错误。 从我的angular度来看,似乎GMail只是收到电子邮件并丢弃它,但这是不对的! 附录:在/etc/postfix/virtual指定我的转发电子邮件地址导致相同的结果: Apr 4 08:49:28 vps-375 postfix/smtpd[16235]: 8062044D1B2F: client=mail-qw0-f48.google.com[209.85.216.48] Apr 4 08:49:28 vps-375 postfix/cleanup[16239]: 8062044D1B2F: message-id=<[email protected]> Apr 4 08:49:28 vps-375 postfix/qmgr[15970]: 8062044D1B2F: from=<[email protected]>, size=1581, nrcpt=1 (queue active) Apr 4 08:49:29 vps-375 postfix/smtp[16240]: 8062044D1B2F: to=<[email protected]>, orig_to=<[email protected]>, relay=gmail-smtp-in.l.google.com[209.85.143.27]:25, delay=1.3, delays=0.41/0.02/0.36/0.52, dsn=2.0.0, status=sent (250 2.0.0 OK 1301903372 m53si9513199wej.191) Apr […]
所以我只是成功地设置了postfix + dovecot。 是足够的SPF,以确保电子邮件得到传递到我的网站的用户? 我不希望我的电子邮件最终在他们的垃圾邮件框中。
我希望postfix 停止发送未送达通知到我的本地帐户,这里是我的日志的例子 17:47:08 A727B62C6F61: message-id=<20121124174708.A727B62C6F61@mail.***********> 17:47:08 F151362C6F5F: sender non-delivery notification: A727B62C6F61 17:47:08 A727B62C6F61: from=<>, size=4676, nrcpt=1 (queue active) 17:47:08 F151362C6F5F: removed 17:47:08 warning: dict_nis_init: NIS domain name not set – NIS lookups disabled 17:47:08 A727B62C6F61: to=<**********>, relay=local, delay=0.01, delays=0/0.01/0/0, … 我怎样才能在我的main.cfconfiguration这个?
最后结果 我通过将我的xvda分区从700MB调整到10GB来解决了这个问题。 我用Linode的控制面板来做到这一点,包括closuresVPS,运行resize操作,然后启动它。 非常感谢所有提供见解和解决scheme的人。 他们都是有用的和有益的。 原文问题 我将Postfix作为我的MTA运行,并且随机决定停止接收传入的电子邮件: Sep 14 07:50:26 zulu postfix/smtpd[27946]: warning: not enough free space in mail queue: 6832128 bytes < 1.5*message size limit 在我的postconf : message_size_limit = 10240000 queue_minfree = 25000000 所有到我的系统的邮件都被拒绝了452 4.3.1 Insufficient system storage 。 我对分区和相关的魔法知之甚less,我只知道Postfix似乎告诉我它没有空间,事实上我的系统有足够的空间: http://f.cl.ly/items/3d242t393a2F0M1x0q2H/Screen%20shot%202011-09-14%20at%208.34.44%20AM.png 最后,Postfix仍然向我的postmaster@账户发送失败通知,所以我真的很茫然。 编辑 root@zulu:/# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda […]
我已经安装了后缀,当我试图发送邮件到Gmail它告诉我,它已经发送,但是当我在Gmail中检查我的收件箱,我没有看到它。 这就是连接的样子: $ telnet localhost 25 Trying ::1… Connected to localhost. Escape character is '^]'. 220 DarkSenic ESMTP Postfix (Debian/GNU) HELO localhost.localdomain 250 DarkSenic MAIL FROM:<[email protected]> 250 2.1.0 Ok RCPT TO:<[email protected]> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> Subject: Test test . 250 2.0.0 Ok: queued as E15692031E9 QUIT 221 2.0.0 Bye Connection […]
邮件服务器configuration让我疯狂。 从我自己的私人服务器发送的电子邮件被禁止,再次由Gmail和其他私人服务器。 我检查了gmail头文件和SPF,DKIM和DMARC通过了考试。 附加由gmail发送和阻止的封锁电子邮件的标题(发送到垃圾邮件文件夹) Delivered-To: t***@gmail.com Received: by 10.129.84.197 with SMTP id i188csp307475ywb; Tue, 28 Mar 2017 08:09:36 -0700 (PDT) X-Received: by 10.223.179.15 with SMTP id j15mr28236175wrd.62.1490713776657; Tue, 28 Mar 2017 08:09:36 -0700 (PDT) Return-Path: <x****@e****a.com> Received: from sd-****.h****t.net (sd-****.h****t.net. [62.***.***.202]) by mx.google.com with ESMTPS id d9si3721691wmf.26.2017.03.28.08.09.36 for <t***@gmail.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar […]
# host 1.2.3.4 4.3.2.1.in-addr.arpa domain name pointer mail.domain.vn. # dig +short txt domain.vn "v=spf1 a mx ptr -all" # dig +short txt mail.domain.vn "v=spf1 a -all" 这是一个标记为垃圾邮件的电子邮件标题: Delivered-To: [email protected] Received: by 10.223.30.6 with SMTP id s6csp119326fac; Sat, 19 May 2012 22:16:56 -0700 (PDT) Received: by 10.68.218.72 with SMTP id pe8mr55329860pbc.45.1337491015749; Sat, 19 May 2012 22:16:55 […]