歡迎您光臨本站 註冊首頁

菜鳥debian下安裝postfix遇到阻礙~~望幫助~~

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

菜鳥debian下安裝postfix遇到阻礙~~望幫助~~

各位大哥~~小弟我初玩linux,,現在準備安裝一套郵件伺服器,自己捉摸了半個月,,實在是沒有找到一個很好的方法。。
我按照http://workaround.org/articles/ispmail-sarge/index.shtml.en,安裝到pop3測試這一步, 就是telnet localhost pop3,
總是提示telnet: Unable to connect to remote host: Connection refused
所以想請教各位,,可能是什麼問題,,,我估計問題原因可能很多,所以如果可以,哪位前輩可以指點下小弟最好了。。小弟這裡可以vpn訪問。。。

小弟qq:83955097。。。

非常感謝~~
《解決方案》

原帖由 zlyzwy 於 2008-9-30 20:54 發表 http://bbs.chinaunix.net/images/common/back.gif
各位大哥~~小弟我初玩linux,,現在準備安裝一套郵件伺服器,自己捉摸了半個月,,實在是沒有找到一個很好的方法。。
我按照http://workaround.org/articles/ispmail-sarge/index.shtml.en,安裝到pop3測試這一 ...
pop服務啟動成功沒有嘛
《解決方案》

原帖由 scyzxp 於 2008-10-1 11:18 發表 http://bbs.chinaunix.net/images/common/back.gif

pop服務啟動成功沒有嘛


謝謝回復啊~~但是我啟動了courier啊~~

root@sharepoint:/etc/init.d# /etc/init.d/courier-authdaemon start
Starting Courier authentication services: authdaemond.
《解決方案》

回復 #4 xiaoone 的帖子

你好~~
日誌文件應該是/var/log/mail.log裡面的內容吧?

我查看過,發現裡面這樣的錯誤~~

Oct  1 20:31:37 sharepoint postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Oct  1 20:31:38 sharepoint postfix/master: warning: process /usr/lib/postfix/smtpd pid 20455 exit status 1
Oct  1 20:31:38 sharepoint postfix/master: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct  1 20:32:39 sharepoint postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Oct  1 20:32:40 sharepoint postfix/master: warning: process /usr/lib/postfix/smtpd pid 20457 exit status 1
Oct  1 20:32:40 sharepoint postfix/master: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct  1 20:33:40 sharepoint postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Oct  1 20:33:41 sharepoint postfix/master: warning: process /usr/lib/postfix/smtpd pid 20459 exit status 1
Oct  1 20:33:41 sharepoint postfix/master: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct  1 20:34:41 sharepoint postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Oct  1 20:34:42 sharepoint postfix/master: warning: process /usr/lib/postfix/smtpd pid 20461 exit status 1
Oct  1 20:34:42 sharepoint postfix/master: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct  1 20:35:42 sharepoint postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Oct  1 20:35:43 sharepoint postfix/master: warning: process /usr/lib/postfix/smtpd pid 20463 exit status 1
Oct  1 20:35:43 sharepoint postfix/master: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct  1 20:36:44 sharepoint postfix/smtpd: fatal: open database /etc/aliases.db: No such file or directory
Oct  1 20:36:45 sharepoint postfix/master: warning: process /usr/lib/postfix/smtpd pid 20466 exit status 1
Oct  1 20:36:45 sharepoint postfix/master: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
《解決方案》

原帖由 zlyzwy 於 2008-10-1 20:42 發表 http://bbs.chinaunix.net/images/common/back.gif
你好~~
日誌文件應該是/var/log/mail.log裡面的內容吧?

我查看過,發現裡面這樣的錯誤~~




pop應該是courier-authlib的功能,你確認啟動了,另我看你的日誌是sasl的問題,請你貼smtpd.conf文件
《解決方案》

原帖由 scyzxp 於 2008-10-1 22:40 發表 http://bbs.chinaunix.net/images/common/back.gif



pop應該是courier-authlib的功能,你確認啟動了,另我看你的日誌是sasl的問題,請你貼smtpd.conf文件

你好,我的/etc/postfix/sasl/smtpd.conf中內容是:
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: provider_admin
sql_passwd: willingzhou
sql_database: provider
sql_select: select password from users where email='%u@%r'
log_level: 7

順便我再貼下我的main.cf內容
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

inet_interfaces = all

myhostname =zlyzwy.3322.org
mydomain = zlyzwy.3322.org
mydestination = $myhostname, $mydomain, $transport_maps


virtual_alias_domains =

virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_email2email.cf

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf

virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf

virtual_mailbox_base = /home/vmail

virtual_uid_maps = static:5000

virtual_gid_maps = static:5000

smtpd_sasl_auth_enable = yes

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

smtpd_use_tls = yes

smtpd_tls_cert_file = /etc/postfix/smtpd.cert

smtpd_tls_key_file = /etc/postfix/smtpd.key

非常感謝你的幫助~~再次感謝~~

[ 本帖最後由 zlyzwy 於 2008-10-1 23:55 編輯 ]
《解決方案》

有人幫忙看下么~~多謝了~~頂~~
《解決方案》

netstat -tnl 查看下埠的監聽是否正常
《解決方案》

原帖由 蟲蟲貓 於 2008-10-3 21:44 發表 http://bbs.chinaunix.net/images/common/back.gif
netstat -tnl 查看下埠的監聽是否正常


謝謝回復~~


root@sharepoint:~# netstat -tnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN


這個是不是說明pop3的110埠沒有使用?
但是我登陸25埠,進去之後還是有問題阿~~

root@sharepoint:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
ehlo zlyzwy.3322.org

這裡就卡住了,任何動作都沒有用~本來應該是出來一些250之類的命令吧~~
《解決方案》

按這個 http://workaround.org/articles/ispmail-etch/ 文章做下來就成功了,LZ參照的這個版本沒有試過.

[火星人 ] 菜鳥debian下安裝postfix遇到阻礙~~望幫助~~已經有509次圍觀

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