我有一个Perl邮件发送邮件列表的脚本。 在我的旧专用服务器上,它运行良好,基本上每秒发送一封电子邮件。 我最近换了一个新的专用服务器,大概有相同的规格,而且速度非常慢,每30秒就有一封邮件。 我build立了一个testing脚本来观察哪个部分最长: open(MAIL,"| /usr/sbin/sendmail -tv -d8.7 $recipient_email"); print MAIL <<EOF; From:Test Sender <$sender> To:$recipient_email Subject:Testing Justw ant to see how long this takes EOF close(MAIL); -d8.7有一个debugging选项,可以让我观看脚本的输出。 我将在这里粘贴,有3个点都挂了太久,我会在这里标记他们: dns_getcanonname(receiving_server.com, trymx=1) dns_getcanonname: trying receiving_server.com. (A) 这里5秒延迟是 dns_getcanonname: receiving_server.com getmxrr([127.0.0.1], droplocalhost=1) andrew@receiving_server.com… Connecting to [127.0.0.1] via relay… 220 my_server.com ESMTP Sendmail 8.13.8/8.13.8; Fri, 18 May 2012 […]
我有一台机器,我不想让后缀运行,并使用sendmail。 我修改/etc/mail/sendmail.mc有这一行(希望它会通过该postfix服务器发送邮件)… define(`SMART_HOST', `postfixhost.yyyy.com')dnl 并运行make重新生成sendmail.cf文件,并检查它,它看起来不错。 然后,我发送邮件(使用相同的确切的命令和相同的电子邮件,我用我的中继代理主机已经很好)。 我在sendmail主机的/ var / log / maillog中看到这个错误 Jan 4 06:59:22 b1 sendmail[20508]: r04DxMkr020508: from=root, size=101, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost Jan 4 06:59:22 b1 sendmail[20508]: r04DxMkr020508: [email protected], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30101, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] 为什么使用127.0.0.1仍然发送电子邮件? 有任何想法吗? 谢谢,Dean
sendmail发送邮件给一个特定的主机,我感到非常困惑。 在与其他服务器进行通信的时候,这似乎是绝对正确的,但是在一个特定的主机上,它只是挂在最后: 050 250 local recipient ok 050 >>> DATA 050 354 Command DATA Start mail input; end with <CRLF>.<CRLF> 050 >>> . 最后一行只是挂了3-4分钟才继续 050 250 message sent ok
我们的网站没有发送自动发送的电子邮件,因为php_mail()函数不起作用,它似乎是因为sendmail不工作。 我曾尝试使用各种命令行,但没有电子邮件发送。 我也有安装qmail。 php.ini显示它正在使用sendmail。 日志中没有任何东西: /var/log/maillog 当我尝试再次安装sendmail时,它指出这些错误: Error: plesk-mail-qc-driver conflicts with plesk-mail-pc-driver-11.0.9-cos6.build110120608.16.x86_64 Error: plesk-mail-pc-driver conflicts with psa-qmail-rblsmtpd-0.88-cos6.build110120606.19.x86_64 Error: plesk-mail-pc-driver conflicts with plesk-mail-qc-driver-11.0.9-cos6.build110120608.16.x86_64 Error: plesk-mail-pc-driver conflicts with 2:psa-qmail-1.03-cos6.build110120606.19.x86_64 You could try using –skip-broken to work around the problem You could try running: rpm -Va –nofiles –nodigest 它不能识别–skip-broken rpm -Va –nofiles –nodigest结果没有变化 当我尝试做service sendmail start它回复:'sendmail:无法识别的服务' 我怎样才能让sendmail工作?
我有一个小型服务器(Ubuntu 14.04)多个网站。 其中一个网站需要通过各种操作(注册,密码恢复等)向用户发送电子邮件。 我安装了sendmail,我可以从PHP脚本发送邮件。 我configuration了SFP DNS条目。 我服务器的主机名是“橡皮”。 我的/ etc / hosts文件包含 127.0.0.1 localhost localhost.localdomain rubber public.ip.address rubber 使用此configuration,发送电子邮件需要很长时间(大约20秒)。 另外,sendmail日志(/var/log/mail.log)显示如下一行: Sep 24 17:28:52 server sendmail[19842]: s8OFSLUd019842: to=<[email protected]>, delay=00:00:15, xdelay=00:00:15, mailer=relay, pri=30370, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (s8OFSbcl019844 Message accepted for delivery) 收到的邮件标题看起来像这样(我已经改变了真实的地址): Delivered-To: [email protected] Received: by 10.112.136.195 with SMTP id qc3csp517582lbb; Wed, 24 Sep 2014 08:20:55 -0700 […]
如何禁止sendmail 8.14的.doc和.zip附件? 我正在寻找一个解决scheme,将自动无法接受一个消息,在这样的附件的情况下,从来没有接受任何这样的消息,首先交付。
我在一个网页上有一个表单,在同一台服务器上使用sendmail发送一封电子邮件。 收件人是使用Google Apps进行电子邮件的客户端。 在表格中,我input我的电子邮件地址。 如果我input*@aol.com或*@yahoo.com (其中“*”是任何内容,当然不是字面星号),则电子邮件无法在/var/log/mail.log使用以下转储进行发送: Sep 22 14:01:12 localhost sendmail[16522]: t8ME1CSU016522: Authentication-Warning: localhost.local: www-data set sender to [email protected] using -f Sep 22 14:01:12 localhost sendmail[16522]: t8ME1CSU016522: [email protected], size=1099, class=0, nrcpts=1, msgid=<[email protected]>, relay=www-data@localhost Sep 22 14:01:12 localhost sm-mta[16523]: t8ME1CIi016523: from=<[email protected]>, size=1418, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.local [127.0.0.1] Sep 22 14:01:12 localhost sendmail[16522]: t8ME1CSU016522: [email protected], […]
有什么区别: define(`SMART_HOST',`relay:[1.1.1.1]')dnl 和 define(`SMART_HOST',`[1.1.1.1]')dnl 我已经看到两个使用,但在sendmail文档中没有看到什么relay:意味着什么细节。
从gmail帐户发送邮件到Gmail帐户时遇到问题。 发送邮件之后,我收到邮件在我的Linux机器本身,说authentication要求。 当我看到我find的日志 Sep 13 02:28:05 ip-172-31-25-143 sendmail[9264]: v8D2S5gQ009264: [email protected], size=141, class=0, nrcpts=1, msgid=<201709130228.v8D2S5gQ009264@ip-172-31-25-143.ap-south-1.compute.internal>, relay=ubuntu@localhost Sep 13 02:28:05 ip-172-31-25-143 sm-mta[9265]: v8D2S54l009265: from=<[email protected]>, size=487, class=0, nrcpts=1, msgid=<201709130228.v8D2S5gQ009264@ip-172-31-25-143.ap-south-1.compute.internal>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Sep 13 02:28:05 ip-172-31-25-143 sendmail[9264]: v8D2S5gQ009264: to=<[email protected]>, [email protected] (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30141, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (v8D2S54l009265 Message accepted for delivery) Sep 13 02:28:06 […]
默认情况下,sendmail(我在RHEL4上有版本8.13)只允许本地邮件。 我希望允许来自特定networking的邮件通过系统进行中继,所以我根据各地的build议做了以下工作: / etc / mail / access:添加了子网和域名8.37 RELAY mydomain.com RELAY(我假设这是原始邮件的域名) 这本身没有工作,所以我添加了以下sendmail.mcfunction(access_db)dbl 现在,问题是它也允许从其他域访问。 为了进行testing,我从访问中删除了8.37 RELAY,并将电子邮件从字段更改为[email protected] 不过,我仍然收到邮件。 什么是正确的方式来configuration,以便只有来自特定子网的邮件被中继?