电子邮件问题

电子邮件问题

好的,我有一个小的 php 脚本,可以在注册后发送一封确认电子邮件..但它不起作用..我知道这不是代码,因为脚本在其他任何地方都可以工作,但我已确保安装了 sendmail,并检查了我的 php.ini 文件..问题是,如果一封电子邮件从一个本地电子邮件发送到另一个本地电子邮件,它会起作用,但发送到外部网站提供商就行不通了..这是我所说的图片。

http://imgur.com/IjYnd

希望这能有所帮助..我之前使用 dovecot 但刚刚将其切换到 Courier 我不知道它是否能解决问题,但现在我知道它没有 :/

这是我的邮件日志的粘贴链接。http://pastebin.com/QsZq9RbR

另外,我确实找到了一个名为 maillog-20121216 的日志,所以我打开它,它有这个,而 pastebin 帖子中没有这个

Dec 17 00:00:40 cserver exim[12268]: 2012-12-17 00:00:40 cwd=/ 2 args: /usr/sbin/exim -bV
Dec 17 00:00:40 cserver exim[12268]: 2012-12-17 00:00:40 Cannot open main log file "/var/log/exim_mainlog": No such file or directory: euid=0 egid=0
Dec 17 00:00:40 cserver exim[12268]: exim: could not open panic log - aborting: see message(s) above
Dec 17 00:00:41 cserver exim[12273]: 2012-12-17 00:00:41 cwd=/ 4 args: /usr/sbin/exim -bV -C /etc/exim.conf.buildtest.work.utMeQPXmJY3yr_Rm
Dec 17 00:00:41 cserver exim[12273]: 2012-12-17 00:00:41 Cannot open main log file "/var/log/exim_mainlog": No such file or directory: euid=0 egid=0
Dec 17 00:00:41 cserver exim[12273]: exim: could not open panic log - aborting: see message(s) above

这是 exim_paniclog 的输出

2012-12-17 09:46:32 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned
2012-12-18 05:33:01 1TkuTt-00038k-O2 User 0 set for local_delivery transport is on the never_users list
2012-12-18 06:36:10 1TkvT0-0003JX-NS User 0 set for local_delivery transport is on the never_users list
2012-12-18 07:29:52 1TkvT0-0003JX-NS User 0 set for local_delivery transport is on the never_users list
2012-12-18 08:29:52 1TkuTt-00038k-O2 User 0 set for local_delivery transport is on the never_users list
2012-12-18 08:39:20 1TkxOC-0003eU-C6 User 0 set for local_delivery transport is on the never_users list
2012-12-18 09:36:11 1TkyHC-0003nd-T1 User 0 set for local_delivery transport is on the never_users list
2012-12-18 10:41:26 1TkvT0-0003JX-NS User 0 set for local_delivery transport is on the never_users list
2012-12-18 12:29:52 1TkuTt-00038k-O2 User 0 set for local_delivery transport is on the never_users list
2012-12-18 15:29:52 1TkuTt-00038k-O2 User 0 set for local_delivery transport is on the never_users list
2012-12-18 19:33:02 1TkyHC-0003nd-T1 User 0 set for local_delivery transport is on the never_users list
2012-12-18 20:00:14 1Tl817-0005tq-WA User 0 set for local_delivery transport is on the never_users list
2012-12-18 20:16:54 socket bind() to port 25 for address (any IPv6) failed: Address already in use: daemon abandoned

答案1

似乎本地投递正在进行,但远程电子邮件帐户邮件未投递。您可以关闭防火墙并尝试发送邮件吗?

另外请检查您的/etc/resolv.conf文件并使用 8.8.8.8 并重试。这可能是由于防火墙造成的。

尝试从服务器的 Shell(命令行)向您的 gmail 或 yahoo 帐户发送邮件。也发布输出和日志(/var/log/mail.log)。

相关内容