在线等,sendmail启动后无法用outlook登录问题!
sendmail启动正常,但是无法用outlook登录发邮件。找了很多资料,试了很多次没有解决,请大虾们指教,急!
现象:
sendmail及dovecot设置并启动。使用outlook测试可以找到pop和stmp服务器,并且可以登录pop,但是最后一项发送测试邮件信息失败。 即无法从外部(内网)使用smtp登陆到server(192.168.1.1)。
但是在window上使用telnet 192.168.1.1 25 可以登陆到server,不过这个时间非常长(有好几分钟)。(因此可见smtp服务是成功的,另外pop服务也是成功的)
使用ssh可以登陆到server上发送邮件给其它用户,包括在本域(test@123.com)或者外域(test@456.com),就是无法使用window机器上的outlook发。
目前配置情况:
fedora core5+ sendmail8.13.8 linux防火墙关闭
-----------------------------------------------------
access 文件中已经添加了 192.1.1 replay
-----------------------------------------------------
local-host-names中添加了
123.com (server的公网域名)
server.123.com
-----------------------------------------------------
/etc/hosts 中添加了
192.168.1.1(server内网ip) server(server名).123.com server
222.111.10.1(内网所在外网IP) www.123.com test
-----------------------------------------------------
sendmail.mc如下:
divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST',`smtp.your.provider')
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `10m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
dnl #
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl