Articles of 电子邮件

后缀多重检查

我想用Postfix来实现以下function: 通过黑名单运行所有电子邮件 允许任何客户端发送到域列表 允许一些客户端发送到任何域 这就是我所拥有的:(postfix在10.0.8.0上,一些发件人是10.0.8.0和10.0.9.0) mynetworks_style = subnet smtpd_recipient_restrictions = check_recipient_access sqlite:/etc/postfix/access-bl.query, check_client_access hash:/etc/postfix/trusted_clients, check_recipie nt_access hash:/etc/postfix/local_domains, reject_unauth_destination, permit 所以,现在黑名单的作品。 文件/etc/postfix/trusted_clients包含谁可以发送到任何地方(3),文件/etc/postfix/local_domains包含你可以发送的地方(2)。 这两个都很好,他们回来了。 我的问题是让所有三个一起工作。 不知道是否是订购问题。 目前从10.0.9.17发送一个testing,我的Relay access denied 。 如果我添加: mynetworks = 10.0.8.0/24 10.0.9.0/24 那么任何人都可以发送到任何地方,所以#2不工作。 Ubuntu 14.04上的Postfix版本是2.10。 有任何想法吗? 输出postconf | grep restrictions postconf | grep restrictions : smtpd_client_restrictions = smtpd_data_restrictions = smtpd_end_of_data_restrictions = smtpd_etrn_restrictions = smtpd_helo_restrictions […]

电子邮件pipe道程序导致Unicode字符的问题?

我将传入的邮件传送到PHP脚本中,立即将RAW电子邮件存储在MySQL数据库中。 它工作得很好,除了约0.7%的电子邮件到达与截断的邮件正文。 我发现有人的电子邮件失败,并让他们发送电子邮件到我的Gmail帐户和服务器。 Gmail没有问题,我看到了整个消息。 但是我的服务器像这样裁剪了原始信息: Delivered-To: [email protected] Received: by 10.152.1.193 with SMTP id 1csp3490lao; Mon, 20 Oct 2014 05:33:31 -0700 (PDT) Return-Path: <[email protected]> Received: from vps123.blahblah.com (vps123.blahblah.com. [74.124.111.111]) by mx.google.com with ESMTPS id fb7si7786786pab.30.2014.10.20.05.33.30 for <[email protected]> (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 20 Oct 2014 05:33:30 -0700 (PDT) Message-ID: <14FBD481E1074C79AF3D@acerDator> From: =?utf-8?Q?sende=C3=A4r?= <[email protected]> To: "test" <[email protected]> References: […]

Postfix SMTP中继服务器

我使用Gmail从我的Gmail地址和我自己的域名接收电子邮件,但是Gmail不再允许您从自己的域名发送电子邮件,除非您提供自己的SMTP服务器通过发送。 因此,我正在尝试在Ubuntu服务器上configurationPostfix,以将来自任何远程设备的电子邮件转发到电子邮件上的目标电子邮件地址。 我只希望服务器从mydomain中继电子邮件(只有在经过身份validation的情况下),并且不要在用户邮箱中保留服务器上的任何电子邮件。 目前,我已经能够从一个特定的源地址转发电子邮件,但是发送到Gmail地址的电子邮件在中继时被反弹。 如果我从服务器本身使用sendmail,gmail不会反弹,certificategmail很乐意从我的服务器收到电子邮件。 但是当电子邮件被中继时,我从gmail收到以下消息: status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:400c:c00::1a] said: 550-5.7.1 [2001:41d0:a:f9a0::1 12] Our system has detected that this 550-5.7.1 message is likely unsolicited mail. To reduce the amount of spam sent 550-5.7.1 to Gmail, 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. n6si25532296wjy.39 – gsmtp (in reply to […]

从Windows Server 2003 Powershell 2.0发送邮件通知到Office 365

我的脚本是为了吸收不正确完成的计划任务中的错误,并通过Office365将它们发送到我的电子邮件地址: $reportHTML = Get-Content C:\windows\tasks\SchedLgU.Txt | Select-String -Pattern "an exit code of \(1\)" -context 2 $reportHTML = Out-String -InputObject $reportHTML #TODO Add an if statement $emailUsername = "[email protected]" #TODO: Change this to a file…. #$emailPassword = cat "C:\ps\emailCred.txt" | convertto-securestring $emailPassword = ConvertTo-SecureString "somepassword" -AsPlainText -Force $emailCred = new-object -typename System.Management.Automation.PSCredential($emailUsername, $emailPassword) Send-MailMessage -To "[email protected]" […]

怎么能configurationexim仍然拒绝无效的收件人之前的ACL返回“丢弃”?

由于我之前提出的来自“信任度较低”的主机的源(非关键性)电子邮件的原因,不幸的是,我们似乎必须运行SMTP服务器才能接受并立即丢弃退回邮件! 我们想用Exim来达到这个目的。 为此,我在acl_smtp_mail访问控制列表中放置了以下内容: discard senders = : drop 虽然这会产生所需的行为以响应SMTP MAIL命令,但Exim现在正在响应250 Accepted 所有 RCPT TO命令。 我们希望它只接受有效的收件人,并拒绝无效的(以便客户不会得到错误的印象,我们公开转播信息)。 为什么Exim现在接受所有的收件人(不是在引入上面的访问列表之前),现在怎么configuration拒绝无效的收件人?

postfix回送电子邮件和交换问题

我有一个服务器上的多个域已经生活和呼吸,包括电子邮件,所有的工作正常plesk安装。 我的问题来了一个新的域名,我补充说,使用交换电子邮件,而不是本地后缀。 因此,我在plesk中closures了这个“gencom.us”的postfix,但是任何时候这个网站都会尝试发送一封电子邮件(PHP联系表格),我永远不会收到testing邮件(尽pipe报表成功)。 这里是我在我的maillog中得到的错误: Jul 30 08:00:19 pacobob postfix/pickup[22664]: 15F972500E30: uid=10000 from=<[email protected]> Jul 30 08:00:19 pacobob postfix/cleanup[22750]: 15F972500E30: message-id=<[email protected]> Jul 30 08:00:19 pacobob postfix/qmgr[22665]: 15F972500E30: from=<[email protected]>, size=836, nrcpt=1 (queue active) Jul 30 08:00:19 pacobob postfix/smtp[22852]: 15F972500E30: to=<[email protected]>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=5.4.6, status=bounced (mail for 206.225.87.101 loops back to myself) Jul 30 08:00:19 pacobob postfix/cleanup[22750]: 2EB332500EEF: […]

使用Postfix转发邮件时,如何保存本地邮件副本?

这个问题有一个相关的答案在这里: 如何转发邮件,同时使用后缀和MySQL保存副本? 但是有两个问题: OP的设置使用了MySQL,所有的答案都是针对这个的 似乎是我想要的答案,使用main.cf和哈希表的答案是从2009年开始的(并且没有被重视)。 所以我想再次问一下这个configuration文件的设置,而不是MySQL的设置。 我正在使用/etc/postfix/main.cf中的这些行成功地将邮件转发到我的Gmail地址: virtual_alias_domains = example.com, example.net virtual_alias_maps = hash:/etc/postfix/virtual 并在/ etc / postfix / virtual中: @example.com myusername @example.net myusername myusername [email protected] 这工作很好,并转发所有邮件[email protected],但我想保留在服务器上的副本。 理想情况下,他们会去myusername的收件箱。 什么是正确的方法来做到这一点? 发送testing邮件后,我的/var/log/mail.log日志: Oct 8 09:16:26 myservername postfix/qmgr[1494]: 89736105BA7: from=<[email protected]>, size=1676, nrcpt=2 (queue active) Oct 8 09:16:26 myservername postfix/trivial-rewrite[7338]: warning: do not list domain mydomain.com in BOTH mydestination […]

转移到Exchange 2016,同时将Exchange 2010保留为主中继

这是我们目前的设置: – 带有SMTP代理的防火墙,扫描传入/传出邮件并转发到Exchange2010服务器 – 内部Exchange 2010服务器(SP3 RU11),运行Sophos PureMessage作为Exchange AV软件 我们希望在短时间内升级到2016年(跳过2013年),但是2016年第二季度,PureMessage软件似乎不会在Exchange 2016上“authentication”。我真的不想在没有PureMessage的情况下运行它导致它有时会发生病毒/垃圾邮件仍然通过我们的防火墙SMTP代理,但幸运的是被PureMessage检测到。 所以这是我的问题:我可以离开我的Exchange 2010服务器,并保持从SMTP代理转发邮件到2010年,同时将我所有的邮箱移动到我的2016年服务器,以保持我的PureMessage检查2010年服务器上的传入邮件和仍然受益于Outlook的新的Exchange 2016function等在networking上? 我想2010服务器将知道它要发送邮件到哪个服务器? 非常感谢任何build议。 米希尔。

SpamAssassin:避免FREEMAIL_REPLYTO联系表格

假设:有人填写我的联系表格www.example.com/contact/。 我的服务器端脚本将这些信息发送给组织的销售人员。 为了使SPF工作,我将“From”设置为[email protected] 为了使“回复”button有效(对于销售人员),我在网站访问者填写的电子邮件地址中设置了“回复” 现在,显然这是一个问题:例如,如果有人用gmail或hotmail电子邮件地址填写联系表单,则会触发以下SpamAssassin规则: 2.1 FREEMAIL_FORGED_REPLYTO回复中的Freemail,但不是 1.0 FREEMAIL_REPLYTO回复/回复/正文包含不同的免费邮件 我应该如何避免这一点,同时保持SPF工作,并保持回复button工作的人收到这封电子邮件? 或者是不可能的? 请注意,我不想更改SpamAssassinconfiguration,因为我想弄清楚如何解决这个问题。

为什么我的Postfix充当一个开放的邮件中继,我该如何阻止它呢?

我在CentOS 7中有一台邮件服务器,它由Postifx / Dovecot / MariaDBbuild立。它以某种方式configuration为开放中继。 你有什么想法如何阻止这个? configuration下面的文件: master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv […]