1. 程式人生 > >qmail 安裝二(自己的遇到的問題)

qmail 安裝二(自己的遇到的問題)

./config-fast mail 注:mail是機器名最好不要用mail.domain.com這樣做機器名,後悔死你

一定要注意這幾個檔案在本地還無所謂但到了外面,也就是真正直接到了internet上要注意下面的設定
linux的hostname為mail
/var/qmail/control下的
me 有可能是mail 但最後要改成"domain.com"---->這是你的域名
defaultdomain 這裡有可原來是mail但你想想那因特網上是不可能有這個頂級域的,在自己的區域網網這樣玩玩兒還可以
其實連線起來就是.cn進有個domain.com
下面就是rcpthosts,裡面內容可能會是
mail
domain.com
exambbs.com.cn
exam.com.cn
一定要把mail放到最下面
還有那個locals檔案,裡面一定會有一個mail,把它刪除了為空是最好了


nameserver 指向自己但一定要用forwarders指到外面要不然無法到和外面通訊,反正要和外界保持良好的通訊


把/var/qmail 目錄許可權做了如下修改 -rw-rw-r 644
裝iGenus時可能會對資料庫的表重新寫一次,這時會搗致foxmail等也不能用,所以一定要刪除原來的domain,重新啟動mysql然後再新建立domain

#1iGENUS出現收發郵件錯誤

其應對方法如下:
1:該命令開啟
system-config-securitylevel
或這樣
2 vi /etc/selinux/config
ile controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security pThis folicy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

把SELINUX=enforcing改變為SELINUX=disabled




#2 igenus_admin_0.1出現錯誤

訪問admin/sys/目錄輸入使用者名稱Admin與密碼Admin登入後出現入下提示

系統提示:不能執行查詢(query): SELECT * FROM admin ORDER BY id ASC LIMIT -20, 20
錯誤資訊:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1
錯誤程式碼:1064

請稍候再試,如果問題仍然存在,請與 系統管理員 聯絡!

很奇怪我用igenus和foxmail等mua已經可以收發郵件,帶附件也沒有問題就是admin就有問題了
 


主要是因為原始資料庫裡沒有記錄,而新版本的Mysql 不支援 limit -20,20 這樣的查詢。

你可以修改 /var/www/html/admin/sys/index.php[igens裝在/var/www/html下] 檔案 第72行。
先把 $start_row=0;新增到$QueryStr="Select * from ....LIMIT $start_row,$CFG_NUM...上一行
然後就可以登入了。
等你登入後,點"更新資料庫"你就會看見你的域名.然後就可以 把index.php 72行改回來了。
然後登入到域名管理裡面,這時可能會出現修改任何資料都說"郵箱已滿"的資訊,那是因為你在
sys/下面對這個域名的最大磁碟容量沒有做設定,可到那裡先做域的相關設定,另外使用者也是一樣的


quota_usage-1.3-1.2.7.tar.gz要是找不到就到下面網址去down一個
http://www.squirrelmail.org/plugin_download.php?id=59&rev=1114


安裝spamassassion時可能按照說明文件上的步驟最好/etc/init.d/spamassassion start出現錯誤
spamassassin要有他自己的使用者來執行的。
先執行
useradd spamd -c "Spam Bayes Learner" -d /var/empty -s /sbin/nologin
useradd notspamd -c "Not Spam Bayes Learner" -d /var/empty -s /sbin/nologin
然後把qmailctl stop
vpopmailctl stop
然後再
spamassassion start
在用setup設定spamd開機時自動執行

/vpopmail/etc/下有一個defaultdomain
這個要是第一個設定成誰,誰就可以用foxmail收取郵件,其它的能在網上收但不能用foxmail收,這可能是由於沒有在vpopmai安裝編譯時
寫入--enable-ip-alias-doamin=y
不過這也不要緊,只要是在foxmail等mta軟體裡將使用者名稱寫成
[email protected]
密碼不要變就可以收發信件了,不過這是有點麻煩