利用DDNS建立POSTFIX邮件服务器的问题?
我的环境是这样的,用的是网通的1M ADSL,接TPLINK-R402M的宽带路由器,在连一台IP:192.168.1.100的LINUX AS4的系统,我想在这台机器用www.3322.org提供的动态域名(我申请的的动态域名是ipcmail.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
[ 本帖最后由 guohaili 于 2006-5-21 15:28 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
现在我的邮箱能收发内外邮箱了,但是新的问题有出现了
我用我外部邮箱给我的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
不知道是什么原因?
万分感谢solaris007的帮助现在邮件可以发出去了!!!谢谢!!!
但是现在还有一个问题就是:我的mail.163.com的这个hailiguo@163.com收到的是确是test1@3322.org的邮件,我现在回复这个邮件,我自己建的这个ipcmail.3322.org的邮件服务器却没有收到来至hailiguo@163.com邮件,不知道为什么?
[ 本帖最后由 guohaili 于 2006-5-21 17:42 编辑 ]
以下是日志的内容:
附带说一句:我建的这个服务器未加入身份验证的功能
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>Sample Text
[ 本帖最后由 guohaili 于 2006-5-21 17:41 编辑 ]
修改mynetwords加上你自己的ip地址試試
以下是OPENWEBMAIL的出错信息
抱歉!无法发出您的邮件.<br> <a href="/cgi-bin/openwebmail/openwebmail-send.pl?sessionid=test2*192.168.1.100 -session-0.737518373216552&action=composemessage&composetype =editdraft&folder=saved-drafts&message_id=%3C20060521081846.M19148% 40easy.com%3E">请检查暂存于草稿箱中的邮件, 然后再重发一次.</a><br><br> <form><textarea name="smtperror" rows="10" cols="72" wrap="soft">>>> Net::SMTP(2.29) >>> Net::Cmd(2.26) >>> Exporter(5.5 >>> IO::Socket::INET(1.27) >>> IO::Socket(1.2 >>> IO::Handle(1.24) <<< 220 ipcmail.3322.org ESMTP Postfix >>> EHLO ipcmail.3322.org <<< 250-ipcmail.3322.org <<< 250-PIPELINING <<< 250-SIZE 10240000 <<< 250-VRFY <<< 250-ETRN <<< 250 8BITMIME >>> MAIL FROM:<test2@ipcmail.3322.org> <<< 250 Ok >>> RCPT TO:<guohaili@gmail.com> <<< 554 <guohaili@gmail.com>: Relay access denied </textarea></form>