LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2392|回复: 6

POSTFIX邮件服务器无法收发外部邮件的问题? 斑主进来看看!!!!!!!!!

[复制链接]
发表于 2006-5-21 15:36:10 | 显示全部楼层 |阅读模式
我的环境是这样的,用的是网通的1M ADSL,接TPLINK-R402M的宽带路由器,在连一台IP:192.168.1.100的LINUX AS4的系统,我想在这台机器用www.3322.org提供的动态域 ... 已经把25和110 端口都影射给192.168.1.100这台机器,经过从外网测试也证明了这两个端口确实打开了,而且POSTFIX的内部收发邮件已经没有问题,我现在想用这个邮件服务器来给其他邮件服务器如mail.163.com发信,但是总是发送不成功,不知道是什么原因,还请各位大侠帮帮忙看看!!!!!!!
以下是我的POSTFIX MAIN.CF和DOVECOT.CONF的配置文件

[root@localhost firefox]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
mydomain = ipcmail.3322.org
myhostname = 3322.org
mynetworks = host
myorigin = 3322.org
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.5/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
[root@localhost firefox]#




[root@localhost firefox]#vi /etc/dovecot.conf
protocols = imap imaps pop3 pop3s
imap_listen = [::]
pop3_listen = [::]
login = imap
login = pop3
mbox_locks = fcntl
auth_passdb=shadow
 楼主| 发表于 2006-5-21 16:19:21 | 显示全部楼层
以下是openwebmail的出错信息

抱歉!无法发出您的邮件.<br> <a href="/cgi-bin/openwebmail/openwebmail-send.pl?sessionid=test2*192.168.1.100 -session-0.737518373216552&amp;action=composemessage&amp;composetype =editdraft&amp;folder=saved-drafts&amp;message_id=%3C20060521081846.M19148% 40easy.com%3E">请检查暂存于草稿箱中的邮件, 然后再重发一次.</a><br><br> <form><textarea name="smtperror" rows="10" cols="72" wrap="soft">&gt;&gt;&gt; Net::SMTP(2.29) &gt;&gt;&gt; Net::Cmd(2.26) &gt;&gt;&gt; Exporter(5.58) &gt;&gt;&gt; IO::Socket::INET(1.27) &gt;&gt;&gt; IO::Socket(1.28) &gt;&gt;&gt; IO::Handle(1.24) &lt;&lt;&lt; 220 ipcmail.3322.org ESMTP Postfix &gt;&gt;&gt; EHLO ipcmail.3322.org &lt;&lt;&lt; 250-ipcmail.3322.org &lt;&lt;&lt; 250-PIPELINING &lt;&lt;&lt; 250-SIZE 10240000 &lt;&lt;&lt; 250-VRFY &lt;&lt;&lt; 250-ETRN &lt;&lt;&lt; 250 8BITMIME &gt;&gt;&gt; MAIL FROM:&lt;test2@ipcmail.3322.org&gt; &lt;&lt;&lt; 250 Ok &gt;&gt;&gt; RCPT TO:&lt;guohaili@gmail.com&gt; &lt;&lt;&lt; 554 &lt;guohaili@gmail.com&gt;: Relay access denied </textarea></form>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-21 17:19:37 | 显示全部楼层
以下是日志的内容:
附带说一句:我建的这个服务器加入身份验证的功能
May 21 17:12:03 localhost postfix/smtpd[3785]: NOQUEUE: reject: RCPT from unknown[218.24.95.102]: 554 <guohaili@126.com>: Relay access denied; from=<test2@ipcmail.3322.org> to=<guohaili@126.com> proto=SMTP helo=<winxp>
May 21 17:12:03 localhost postfix/smtpd[3785]: NOQUEUE: reject: RCPT from unknown[218.24.95.102]: 554 <hailiguo@163.com>: Relay access denied; from=<test2@ipcmail.3322.org> to=<hailiguo@163.com> proto=SMTP helo=<winxp>
May 21 17:12:03 localhost postfix/smtpd[3785]: disconnect from unknown[218.24.95.102]
May 21 17:15:57 localhost postfix/smtpd[3794]: connect from unknown[218.24.95.102]
May 21 17:15:57 localhost postfix/smtpd[3794]: NOQUEUE: reject: RCPT from unknown[218.24.95.102]: 554 <guohaili@126.com>: Relay access denied; from=<test2@ipcmail.3322.org> to=<guohaili@126.com> proto=SMTP helo=<winxp>
May 21 17:15:57 localhost postfix/smtpd[3794]: NOQUEUE: reject: RCPT from unknown[218.24.95.102]: 554 <hailiguo@163.com>: Relay access denied; from=<test2@ipcmail.3322.org> to=<hailiguo@163.com> proto=SMTP helo=<winxp>
May 21 17:15:57 localhost postfix/smtpd[3794]: NOQUEUE: reject: RCPT from unknown[218.24.95.102]: 554 <guohaili@gmail.com>: Relay access denied; from=<test2@ipcmail.3322.org> to=<guohaili@gmail.com> proto=SMTP helo=<winxp>
回复 支持 反对

使用道具 举报

发表于 2006-5-21 18:45:01 | 显示全部楼层
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

类似这句话的,你的配置文件是什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-21 19:04:15 | 显示全部楼层
谢谢斑主谢谢!!!!我看了我的/etc/postfix/main.cf的文件
没有找到您说的这些smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination可能
我这个没有配身份验证的原因吧,另外我在别人的指导,在mynetworks=host,192.168.1.100把邮件服务器IP
现在我可以把邮件发出去了,但是我发出去的邮件却无法转发回来
而且,给别人发出去的邮件是显示为test@3322.org,而不是在postfix中设置的ipcmail.3322.org,我想这也是邮件
无法回复的原因,不知道该怎么改才能让我给别人发的邮件显示为test@ipcmail.3322.org应该就好了
但是我改了一些,现在还是没好使
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-21 19:36:57 | 显示全部楼层
现在我的邮箱能收发内外邮箱了,但是新的问题有出现了
我用我外部邮箱给我的ipcmail.3322.org任何一个帐号发信时,我在主机不能自动刷新,我就手动刷新一下吧,但是一下子就出现错误信息了
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.52 (CentOS) Server at 192.168.1.100 Port 80
不知道是什么原因?
回复 支持 反对

使用道具 举报

发表于 2006-5-21 22:11:50 | 显示全部楼层
这个devot 的问题就不知道为什么了。。没用过。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表