歡迎您光臨本站 註冊首頁

請大家幫忙看看我的postfix

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請大家幫忙看看我的postfix

# 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 編輯 ]
《解決方案》

有沒有用虛擬域呢?還是剛剛安裝了postfix?

不過看你的配置文件是沒有啟用虛擬域。

配置文件似乎不完整。
《解決方案》

/etc/postfix/filter.mysql

這個文件呢?
《解決方案》

查看一下maillog
《解決方案》

原帖由 zenglingping 於 2008-6-26 09:07 發表 http://bbs.chinaunix.net/images/common/back.gif
有沒有用虛擬域呢?還是剛剛安裝了postfix?

不過看你的配置文件是沒有啟用虛擬域。

配置文件似乎不完整。



我覺得就算沒有虛擬域也可以用啊!
《解決方案》

原帖由 ruochen 於 2008-6-26 16:14 發表 http://bbs.chinaunix.net/images/common/back.gif
/etc/postfix/filter.mysql

這個文件呢?


有這個文件呢!

[火星人 ] 請大家幫忙看看我的postfix已經有331次圍觀

http://coctec.com/docs/service/show-post-29510.html