- 论坛徽章:
- 0
|
# telnet 127.0.0.1 25没什么反应!如下图所示:
请大侠们,帮忙斟酌斟酌!不胜感激!
下面是相关的详细讯息!
系统版本:RHEL4.6
防火墙关闭状态。
postfix:postfix-2.5.2
计算机名:weiguo.com
其他相关软件:
cyrus-sasl-2.1.19-14
mysql-server-4.1.20-2.RHEL4.1.0.1
openssl-0.9.7a-43.17.el4_6.1
pam_mysql-0.7RC1
postfix配置如下:
# make -f Makefile.init makefiles CCARGS="-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_MYSQL -I/usr/include/mysql" AUXLIBS="-lssl -lcrypto -L/usr/lib/mysql -lmysqlclient -lz -lm -lsasl2"
# make install
--------------------------------
/usr/lib/sasl2/smtpd.conf /* 配置如下
++++++++++++++++++++++++++++++++++++++++++
pwcheck_method: saslauthd
mech_list: plain login
++++++++++++++++++++++++++++++++++++++++++
--------------------------------
man.cf /* 相关配置
++++++++++++++++++++++++++++++++++++++++++
myhostname = weiguo.com
mydomain = weiguo.com
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
home_mailbox = Maildir/
mailbox_transport = cyrus
fallback_transport = cyrus
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
virtual_maps = hash:/etc/postfix/virtual.mysql:/etc/postfix/virtual.mysql
# For SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ''
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
check_recipient_access mysql:/etc/postfix/filter.mysql,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_unknown_sender_domain,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_unauth_destination,
permit
# For TLS
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_cert_file = /etc/postfix/smtp-cert.pem
smtp_tls_key_file = /etc/postfix/smtp-key.pem
smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/smtp-cert.pem
smtpd_tls_key_file = /etc/postfix/smtp-key.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[ 本帖最后由 Weikey 于 2008-6-24 08:33 编辑 ] |
|