我试图用python发送邮件,所以我在本地configuration了一个postfix服务器。 python部分似乎工作,因为我的邮件到达smtpd服务器。 之后,后缀似乎正确地查询MXlogging,并尝试连接正确的DNS名称。 这里的问题似乎是,我的后缀服务器从不尝试端口465,只有25,端口closures时失败,然后放弃,直到重试计时器重置。 这是我的/etc/postfix/main.cf文件。 我完全知道我没有完全意识到我在做什么 # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = […]
Postfix默认使用端口25,465和587.在我的configuration中,我使用postfix的main.cf的选项smtpd_use_tls=yes启用了TLSencryption。 据我所知,这使得所有smtp通信都被encryption。 由于后缀只需要1个证书,不支持SNI ,我想用nginx作为代理,由基于SNI和域名的nginx作为代理,而不是由后缀来决定encryption。 我很困惑我必须在后缀做的变化,我会很感激你的帮助。 这是我的问题: 1)当我通过我的服务器发送电子邮件时,我使用端口25.但接收邮件又如何? 我应该改变这些后缀使用的端口(用nginxreplace它们)吗? 或者只是端口25就够了? 2)当我使用nginx作为代理时,我应该在postfix中禁用encryption吗? 如果我正确理解了这一切,那么nginx和postfix之间的内部代理通信不需要encryption,所以我应该禁用encryption,一旦我开始使用smtpd_use_tls=noconfiguration代理,对不对? 我需要任何额外的信息,请询问。
我已经部分地按照这里的指南(系列)设置了我自己的邮件服务器 筛选规则是: … truncated … # Trash messages with improperly formed message IDs if not header :regex "message-id" ".*@.*\\." { fileinto :create "Junk"; } if header :contains "X-Virus-Status" "Infected" { discard; stop; } if header :contains "X-Spam-Level" "*****" { fileinto :create "Junk"; setflag "\\Seen"; } 我在改变之后立即编译它。 重新启动鸽子。 不过,我看到日志: 2016-05-16 22:01:43 lda([email protected]): Info: sieve: msgid=emailsecuritycheck.net.2.becsz*6nYwm7BtlKdQRYXg==: stored […]
我有这种情况: Postfixconfiguration了cluebringer(Policyd v2.1),超过配额的电子邮件被caching。 我需要做的是以某种方式在队列后面使用cluebringer,以便在考虑到那些邮件的情况下重新计算配额。 问题是,一旦电子邮件进入队列某一点,它将被发送或将过期。 但是,如果这封电子邮件是发送的 – 那么通过这封电子邮件,我的意思是所有在某些时候由postfix处理的邮件 – 策略配额是无用的。 当然,我可以放弃超额配额,但这意味着失去大量的电子邮件。 有什么办法可以强制使用队列后策略守护进程来重新计算已经进入队列的邮件吗?
我已经设置了在myhostname和mydomain相应地更改的EC2实例上运行的postfix。 我也确保我的A和MXlogging指向EC2实例。 但是,当我使用我的EC2中的“邮件”发送电子邮件时,在收件人的收件箱中,发件人显示为“默认EC2用户”,而不是“我的名字”,而不是“[email protected]”。 我怎样才能解决这个问题?
我正尝试将传入的电子邮件[email protected]传送给一个名为rt-mailgate的脚本,同时通过ldap和spamassassin将其余的传入电子邮件(任何东西… @ example.org)发送给Dovecot。 一切工作很好,除了我的pipe道rt邮递门。 所有邮件都是通过master.cf中的“smtp”服务交付的(这是通过spamassassin发送到ldap-dovecot),所以我的传输映射[email protected]到“rt”服务将被忽略。 (我还没有忘记运行postmap或任何东西)。 这是我的configuration。 /etc/postfix/master.cf: smtp inet n – – – – smtpd -o content_filter=spamassassin spamassassin unix – nn – – pipe flags=DROhu user=postoffice argv=/usr/bin/spamc -u debian-spamd -f -e /usr/lib/dovecot/deliver -f ${sender} -d ${user} rt unix – nn – – pipe flags=R user=postoffice argv=/usr/bin/rt-mailgate –queue ${user} –action correspond –url http://rt.example.org/ /etc/postfix/main.cf文件: myhostname […]
我试图在spamassassin之后执行自定义操作。 我有工作在postfix master.cf spamassassin unix – nn – – pipe user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} 但是我想将垃圾邮件输出redirect到我的脚本,脚本需要参数,执行我的操作,而不是将垃圾邮件输出redirect到sendmail。 我试图做 spamassassin unix – nn – – pipe user=spamd argv=/usr/bin/spamc -e /home/scripts/my.sh ${sender} ${recipient} 和my.sh只是呼应$1和$2但在mail.log看到 spamc[31244]: exec failed: Exec format error 总之,我想至less显示发件人收件人参数在回声和之后,尝试redirect垃圾邮件输出到我的脚本sendmail,但我甚至无法运行简单的回声( UPDATE 目前我在postfix中有以下conf: smtp inet n – – – – smtpd -v -o content_filter=filter filter […]
在我的公司,我们使用Postfix作为Debian服务器中的Google Apps SMTP服务器的中继。 传统的机器,如扫描仪转发消息到我们的中继服务器。 我怎样才能允许扫描器只通过继电器发送邮件只有某些域(如我们的.com)? 我很确定这里有些东西,但我还没有find一些工作。 谢谢。
我正在configuration一个新的Web服务器,我需要从我的PHP脚本发送电子邮件。 大部分消息应该使用mandrill SMTP发送,有些则直接从我的服务器发送到电子邮件服务。 根据本教程,我在mandrill注册了一个帐户,并configuration了postfix服务器。 我创build了/ etc / postfix / sasl_passwd并编辑了main.cf文件。 我将relayhost设置为mandrill SMTP。 relayhost = [smtp.mandrillapp.com] 如果我尝试发送消息,当postfixconfiguration这种方式 – 所有消息使用mandrill SMTP发送。 我试了一下,它的工作原理。 但正如我所说,我需要一些消息直接发送。 我确定哪些邮件应该使用SMTP发送,哪些邮件直接通过设置不同的发件人(“发件人”)电子邮件地址。 在我提到的教程中,我发现要做我所需要的,我需要使用sender_dependent_relayhost_maps选项并删除relayhost的值。 我使用下面的configuration relayhost = sender_dependent_relayhost_maps = hash:/ etc / postfix / relayhost_maps 我创build了/ etc / postfix / relayhost_maps,看起来像这样 [email protected] [smtp.mandrillapp.com] 现在,所有邮件都应该直接发送,除了来自[email protected]的邮件必须使用外部SMTP发送。 问题是,当我尝试发送消息与这个configuration – 所有邮件直接发送(我收到它时,我看到这在Gmail中)。 我尝试在/ etc / postfix / relayhost_maps中放入不同的SMTP主机,不同的邮件地址,但是所有的邮件仍然被直接发送。 请帮我解决这个问题。
目前我已经安装了Postfix和Dovecot到我的AWS实例。 我能ping和打开dovecot / postfix在端口(25,110)在我的本地主机使用: telnet localhost 25 Trying 127.0.0.1… Connected to localhost. Escape character is '^]'. 220 ip-172-31-16-10.us-west-2.compute.internal ESMTP Sendmail 8.14.4/8.14.4; Sun, 10 Jul 2016 09:05:28 GMT 要么 telnet localhost 110 Trying 127.0.0.1… Connected to localhost. Escape character is '^]'. +OK Dovecot ready. 我有Elastic IP,在我的隐私组里面有好几个: 对于DNS,我正在使用Route 53.我的域的域包含: mail.domain.com. A 52.89.176.73 domain.com. MX 10 mail.domain.com 在postfix […]