我们正在运行一个垃圾邮件陷阱/蜜jar,通过使用这里的成员惊人的指导,我已经能够configuration我们运行Postfix 2.11.0的Ubuntu服务器来捕获所有的入站邮件,不pipe目的地址如何,通过电子邮件发送到一个python脚本,该脚本又将电子邮件写入一个文件。 python脚本如下所示: #!/usr/bin/env python import sys import email import os import datetime em = email.message_from_file(sys.stdin) # Read message from Std Input strFilename = datetime.datetime.now().strftime('%Y%m%d%H%M%S') + ".eml" output = open('/var/mail/' + strFilename, 'w') output.write(str(em)) output.close() 我的问题是:当我们收到两个或多个收件人的电子邮件时,python脚本正在写两个(或更多).eml文件,而不是两个收件人列出的文件。 我比较了.eml文件,它们与每个文件的标题中的一行exception相同。 例如,如果我亲自发送一封电子邮件给我们的honeypot收件人,邮件地址为[email protected],抄送地址为[email protected],每个文件的唯一区别在于: X-Original-To: [email protected] 和另一个 X-Original-To: [email protected] 无论如何只写一个文件与两个X-Original-To:字段列出? 编辑:其他信息:SMTP接收器做我们需要,是我们目前正在运行的path,但我们希望能够使用后缀。 在postfix main.cf中,我添加了: virtual_alias_maps = pcre:/etc/postfix/virtual 然后我在/ etc / postfix / […]
由于我切换到我自己的邮件服务器(我接着这两个教程: https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql和https://www.digitalocean如何在邮件服务器上使用postfix-dovecot-mysql-and-spamassasin )我在15分钟内15次发送垃圾邮件… 为什么? 也许我的邮件服务器不安全? 今天我收到一封邮件,其中的字段正好是我在postfix / dovecot中configuration的主机名(Ubuntu):请参阅: From: Roberto@Ubuntu, Rojas@Ubuntu To: ******@******.com Subject: ***** SPAM 10.3 ***** your life will never be the same 他们如何发现我的主机名? 是否有可能垃圾邮件发送者已经input我的电脑,看到/删除/编辑我的一些文件? 我也有一个HTTP,FTP和Telnet 7300到适当的软件,在同一台机器的服务器
你如何得到opendkim签署一个域中的所有用户? *@exmailer.com exmailmap 在签名表中是不适合我的。 错误: opendkim[1565]: 573D4A0D3D: no signing table match for '[email protected]' 但, [email protected] exmailmap 工作,但不是一个很好的解决scheme,因为我有数百个用户。 你如何得到opendkim签署所有用户?
一些信息: example.com has a MX-record with priority 10,20 and 30 to mail.example.com mail.example.com has an A-record to 192.0.2.0 (fictional ip) 这是我的postfix的main.cf #See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # […]
我用我的smtp与网站mxtoolbox.com进行testing,并收到此错误: 220 hostname.example.com ESMTP [702 ms] EHLO MXTB-PWS3.mxtoolbox.com 250-mail.example.com 250-PIPELINING 250-SIZE 20480000 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN [671 ms] MAIL FROM: [email protected] 250 2.1.0 Ok [671 ms] RCPT TO: [email protected] 454 4.7.1 [email protected]: Relay access denied [671 ms] 这是我的后缀文件master.cf : # # Postfix master process configuration file. For details on the format # of […]
我正在实施opendkim,但我只能得到它签署1区。 即使它是两个域的相同密钥/签名/文件,tld仍然无法签名。 我的.conf: cat /usr/local/etc/mail/opendkim.conf LogWhy yes Syslog yes SyslogSuccess yes Canonicalization relaxed/simple Socket inet:[email protected] MilterDebug 5 ReportAddress [email protected] SendReports yes InternalHosts file:/usr/local/etc/TrustedHostList.txt SigningTable refile:/var/db/opendkim/dkim-signtable KeyTable file:/var/db/opendkim/dkim-keytable 签名表: cat /var/db/opendkim/dkim-signtable *@nyctelecomm.com nycmap *@e-mailer.com emailmap 键表转到相同的键: cat /var/db/opendkim/dkim-keytable emailmap e-mail.com:default:/var/db/opendkim/keys/e-mailer.com.key nycmap nyccomm.com:default:/var/db/opendkim/keys/e-mailer.com.key port25.com回复: ———————————————————- DKIM check details: ———————————————————- Result: permerror (key "default._domainkey.e-mail.com" doesn't exist) ID(s) verified: […]
我使用基于Nagios的OP5监控系统和Postfix。 如果我从OP5 Portal发送testing邮件,则会收到该邮件。 但是,如果一条消息发送导致问题,我会得到错误“客户端没有权限发送作为此发件人” Maillog通过从OP5 Portal发送testing邮件 Mar 16 11:41:36 op5-system postfix/pickup[16667]: E6D2D80D33: uid=0 from=<root> Mar 16 11:41:36 op5-system postfix/cleanup[470]: E6D2D80D33: message-id=<[email protected]> Mar 16 11:41:36 op5-system postfix/qmgr[1613]: E6D2D80D33: from=<[email protected]>, size=379, nrcpt=1 (queue active) Mar 16 11:41:37 op5-system postfix/smtp[476]: E6D2D80D33: to=<root@op5-system>, relay=relayserver[192.168.1.2]:25, delay=0.78, delays=0.1/0.16/0.03/0.48, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=34904401] Queued mail for delivery) Mar 16 11:41:37 […]
编辑:请在这整个事情之前阅读答案,因为它会为您节省大量的时间。 回答我的问题与使用Outlook更改设置一样简单,也可能适用于您。 它与任何configuration或日志文件无关,只是错误。 Alrighty … 所以这是怎么回事 我可以使用Outlooklogin到我的邮件服务器,但当我去发送电子邮件时,出现此错误。 使用SquirrelMail,我没有得到任何错误,发送工作正常。 然而,由于显而易见的原因,我不打算使用SquirrelMail。 一些可能感兴趣的文件是: mail.log: Mar 22 22:33:23 mail postfix/smtpd[18385]: connect from ool-45793236.dyn.optonline.net[69.121.50.54] Mar 22 22:33:23 mail postfix/smtpd[18385]: NOQUEUE: reject: RCPT from ool-45793236.dyn.optonline.net[69.121.50.54]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<Ebear> Mar 22 22:33:26 mail postfix/smtpd[18385]: disconnect from ool-45793236.dyn.optonline.net[69.121.50.54] main.cf resolv.conf: nameserver 2001:4860:4860::8844 nameserver 2001:4860:4860::8888 nameserver 8.8.8.8 […]
我configuration我的Django 1.6框架发送错误报告到Gmail帐户,所以我可以检查他们。 在此之前,虽然我不得不定义filter来捕获发件人邮件地址我configuration为这些电子邮件报告被标记为“非垃圾邮件”和正确分类。 虽然我每次打开报告时都会出现一条消息,例如“这不是垃圾邮件”文件夹,因为您将其标记为“非垃圾邮件”。 …直到几天前。 报告停止到达。 我检查了/var/log/mail.log中的日志,发现这个: Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131 for 550 5.7.1 more information. t17si11455054wiv.44 – gsmtp (in reply to end of DATA command)) 几乎所有的错误报告都被Gmail阻止,所以我参考了Google的“批量发件人指南”来尝试解决此问题。 我的邮件服务器使用一致的IP地址,并且域已经获得了正确的反向DNSlogging,但发件人地址可能会根据发生错误的子域更改(例如:[email protected],如果subdomain1抛出exception,或者[email protected]如果是子域2)。 […]
我已经编辑了这样的main.cf文件: message_size_limit = 25600000 service postfix restart postconf message_size_limit message_size_limit = 25600000 我试图发送一个18GB的总附件的邮件,日志仍然显示: NOQUEUE: reject: MAIL 552 5.3.4 Message size exceeds fixed limit; proto=ESMTP 还有其他的事情可以导致这个?