創建郵箱過程中的問題及解決辦法

轉自白手起家博客

http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=770141


說明一下:Q代表安裝過程中遇到的問題,或者是日志中出現的現象。A:代表解決方法。

Q:
Jan 13 11:26:29 mail authdaemond: failed to connect to mysql server (server=localhost , userid=postfix ): Unknown MySQL server host 'localhost ' (2)
Jan 13 11:26:29 mail postfix/smtpd[2829]: warning: SASL authentication failure: could not verify password
Jan 13 12:11:19 mail authdaemond: failed to connect to mysql server (server=localhost, userid=postfix ): Can't connect to local MySQL server through socket '/tmp/mysql.sock ' (2)
Jan 13 12:11:19 mail postfix/smtpd[2870]: warning: SASL authentication failure: could not verify password
A:
將vi /usr/local/courier-authlib/etc/authmysqlrc中參數后的空格刪除即可
Q:
編譯pam_mysql:
[root@mail src]# tar -zxf pam_mysql-0.5.tar.gz
[root@mail src]# cd pam_mysql
修改pam_mysql.c的源代碼,去掉調試消息:
[root@mail pam_mysql]# vi +54 pam_mysql.c
將如下一行:
#define DEBUG
修改為:
/* #define DEBUG */
然后編譯:
[root@mail pam_mysql]# make
然后報錯“make: *** [dynamic/pam_mysql.o] Error 1”無法盡心,沒有生成pam_mysql.so模塊。
A:
裝mysql的devel和shared包吧,對應版本的,用mysql.com上面的就行
Q:
安裝POSTFIX2.2.7出錯
[root@mail postfix-2.2.7]# make
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefiles] Error 1
make: *** [Makefiles] Error 2
A:
沒裝berkeleyDB的開發庫,或者是指定路徑沒有找到,所以報這個錯了。如果是linux, 注意看有沒有db*-devel的rpm,或者libdb*-dev的deb(debian)如果是bsd,則看看有沒有裝db3/db4等包
Q:
按照Postfix+Cyrus-IMAP+Cyrus-SASL+MySQL+IMP(王興宇的)完全指南進行到了步驟8.5 ,用cyradm創建郵箱,可是卻出現了如下錯誤:
[root@localhost bin]# cyradm --user cyrus localhost
Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so' for module Cyrus::IMAP: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so: undefined symbol: db_version at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 44
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 44.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 44.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm line 60.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.請問是什么原因?應該怎么解決?
A:
安裝了perl-Cyrus包后就好了。
Q:
[root@mail postfix]# /usr/sbin/postfix start
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/hold
postsuper: fatal: scan_dir_push: open directory hold: Permission denied
postfix/postfix-script: fatal: Postfix integrity check failed!
呵呵權限問題,看你的postfix的用戶和用戶組是什么。是/usr/sbin/postfix的權限嗎?我改為1777還是不行
A:
chown postfix:postfix /var/spool/postfix/hold
Q:
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: SASL authentication failure: Password verification failed
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: unknown[221.221.172.11]: SASL plain authentication failed無法通過認證,請問高手這是什么原因?
A:
將main.cf中的smtpd_sasl_local_domain設為空即可。
Q:
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: SASL authentication failure: Password verification failed
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: unknown[221.221.172.11]: SASL plain authentication failed無法通過認證,請問高手這是什么原因?
A:
將main.cf中的smtpd_sasl_local_domain設為空即可。
Q:
[root@mail postfix]# /usr/sbin/postfix start
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/public
postfix/postfix-script: warning: not owned by group postdrop: /var/spool/postfix/maildrop
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc
postfix/postfix-script: starting the Postfix mail system
A:
chgrp postdrop /var/spool/postfix/maildrop
chgrp postdrop /var/spool/postfix/public
Q:
[root@mail postfix]# /usr/sbin/postfix start
postfix/postfix-script: warning: not owned by root: /var/spool/postfix/etc
postfix/postfix-script: starting the Postfix mail system
A:
chown root /var/spool/postfix/etc
Q:
postalias: warning: /usr/local/etc/postfix/aliases.db: duplicate entry: "root"
A:
這個已經很清楚告訴您,您的aliases檔案內有重復的root別名設定。修正一下該問題吧..?
Q:
postfix/master [200]: fatal: bind INADDR_ANY port 25: address already in use
A:
可能是其他的郵件服務還在運行,停掉就好了
Q:
Jan 2 12:36:31 mail saslauthd[29494]: do_auth: auth failure: [user=yardian] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
A:
MECH=pam那個改為shadow 再relstart
Q:
fatal: unsupported dictionary type: mysql
A:
沒增加mysql的支持:)
Q:
temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)
A:
沒打開amavisd吧。。內容過濾器那里沒打開。
Q:
[root@mail root]# echo pwcheck_method: saslauthd > /usr/lib/sasl2/smtpd.conf
[root@mail root]# echo mech_list: plain login >> /usr/lib/sasl2/smtpd.conf
[root@mail root]# vi /etc/sysconfig/saslauthd
MECH=shadow我想問一下我現在到底用的是shadow還是saslauthd?
A:
shadow是saslauthd認的,而pwcheck_method是postfix + sasl庫認的。2個不是一個東西
Q:
[root@localhost mysql]# mysql -u root password
ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock' (2)
A:
在/etc/rc.conf中增加mysql_enable="YES"
Q:
perl Makefile.PL
make installDBI connect('database=extmail;host=localhost;mysql_socket=/var/lib/mysql/mysql.sock','extmail',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/httpd/htdocs/extmail/libs/Ext/Auth/MySQL.pm line 44
A:
vi webmail.cf
修改
SYS_MYSQL_SOCKET = /tmp/mysql.sock
Q:
Can't call method "prepare" on an undefined value at /usr/local/httpd/htdocs/extman/libs/Ext/Mgr/MySQL.pm line 59.
A:
在mysql.pm里將RaiseError => 0 改為1 這個是打開mysql更多的出錯提示。
Q:
smtpd認證失敗:無權限連接authdaemond
Nov 20 15:58:54 bsd6 postfix/smtpd[900]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied
A:
檢查 authdaemond的socket所在目錄及其父目錄的屬性是否對smtpd可讀。如果不可讀則出現這個問題(permission的問題)。chmod +x /var/spool/authdaemon
Q:
Jan 13 13:18:27 mail postfix/virtual[3787]: warning: maildir access problem for UID/GID=502/502: create /home/mail/showdesign.com/demo/Maildir/tmp/1137129507.P3787.mail: Permission denied
A:
更改main.cf中
virtual_uid_maps = static:502
virtual_gid_maps = static:502組ID
2006-01-13 15:22加入
Q:
在extmail中不能發信,提示:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
在apache日志中顯示:
[root@mail ~]# tail -f /usr/local/httpd/logs/error_log
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
[Thu Jan 12 17:11:19 2006] [notice] caught SIGTERM, shutting down
[Fri Jan 13 12:34:46 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Jan 13 12:34:46 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/local/httpd/bin/suexec)
[Fri Jan 13 12:34:47 2006] [notice] Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7a PHP/4.4.1 configured -- resuming normal operations
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
sh: /usr/sbin/sendmail: No such file or directory
A:

ln -s /usr/local/postfix-2.2.8/src/sendmail/sendmail /usr/sbin/sendmail

本文轉自 wdy198622 51CTO博客,原文鏈接:

http://blog.51cto.com/weimouren/1826048


本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/393125.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/393125.shtml
英文地址,請注明出處:http://en.pswp.cn/news/393125.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

php的addslashes,PHP addslashes()用法及代碼示例

addslashes()函數是PHP中的內置函數&#xff0c;它返回預定義字符前帶有反斜杠的字符串。該參數中不包含任何指定的字符。預定義的字符是&#xff1a;單引號(’)雙引號(“)反斜杠(\)NULL注意&#xff1a;addslashes()函數不同于addcslashes()函數接受要在其之前添加斜杠的指定字…

如何在React Native中使用Redux Saga監視網絡更改

by Pritish Vaidya通過Pritish Vaidya 如何在React Native中使用Redux Saga監視網絡更改 (How to monitor network changes using Redux Saga in React Native) 為什么要使用Redux Saga監視網絡更改&#xff1f; (Why should I use Redux Saga to monitor Network Changes?) …

leetcode214. 最短回文串(kmp)

給定一個字符串 s&#xff0c;你可以通過在字符串前面添加字符將其轉換為回文串。找到并返回可以用這種方式轉換的最短回文串。 示例 1: 輸入: “aacecaaa” 輸出: “aaacecaaa” 代碼 class Solution {public int getShortestPalindrome(String s) {//求next數組的最后一…

跟我一起屏蔽百度搜索頁面右側的內容

苦惱百度搜索熱點等冗雜信息很久了&#xff0c;然后今天下定決心解決這個問題了。 第一步&#xff1a;搜索&#xff0c;并安裝插件Adblock Plus 第二步&#xff1a;使用攔截器 1.打開攔截器 2.具體使用 點擊這一塊 添加 轉載于:https://www.cnblogs.com/smart-girl/p/11058774.…

JavaScript語法詳解(三)

一、JavaScript循環語句 1.for循環、for/in 12345678910111213141516<!DOCTYPE html><html lang"en"> <head><meta charset"UTF-8"> <title>Title</title> </head><body><script> var array [1,2,…

鼠標拖拽吸附效果

JavaScript鼠標拖動自動吸附實例 學了幾天的JavaScript&#xff0c;自己動手做了一個簡單的鼠標拖動的實例&#xff0c;拖動過程中科自動檢測與目標容器的距離&#xff0c;在一定的距離范圍內可以自動將被拖動的元素加入到目標容器中&#xff0c;希望對開始學習javascript的童鞋…

php修改mysql數據庫中的表格,如何修改mysql數據庫表?

修改mysql數據庫表的方法&#xff1a;使用“ALTER TABLE”語句&#xff0c;可以改變原有表的結構&#xff0c;例如增加字段或刪減字段、修改原有字段數據類型、重新命名字段或表、修改表字符集等&#xff1b;語法“ALTER TABLE [修改選項]”。修改數據表的前提是數據庫中已經存…

微軟最新GDI漏洞MS08-052安全解決方案

微軟最新GDI漏洞MS08-052安全解決方案 Simeon微軟于九月九日凌晨爆出有史以來最大的安全漏洞MS08-052&#xff0c;通過該漏洞&#xff0c;攻擊者可以將木馬藏于圖片中&#xff0c;網民無論是通過瀏覽器瀏覽、還是用各種看圖軟件打開、或者在即時聊天窗口、電子郵件、Office文檔…

DEM軌跡后處理

方法一&#xff1a;直接在paraview中顯示 首先在輸出顆粒信息的時候保存global ID&#xff1a;然后在paraview中導入vtp數據&#xff08;不要導入pvd&#xff09;&#xff0c;并使用Temporal Particle To Pathlines這個filter&#xff08;可以直接ctrlspace調出搜索框搜索&…

Oracle的JDBC Url的幾種方式

1.普通SID方式jdbc:oracle:thin:username/passwordx.x.x.1:1521:SID2.普通ServerName方式 jdbc:Oracle:thin:username/password//x.x.x.1:1522/ABCD3.RAC方式jdbc:oracle:thin:(DESCRIPTION(ADDRESS_LIST(ADDRESS(PROTOCOLTCP)(HOSTx.x.x.1)(PORT1521))(ADDRESS(PROTOCOLTCP)(H…

leetcode945. 使數組唯一的最小增量(排序)

給定整數數組 A&#xff0c;每次 move 操作將會選擇任意 A[i]&#xff0c;并將其遞增 1。 返回使 A 中的每個值都是唯一的最少操作次數。 示例 1: 輸入&#xff1a;[1,2,2] 輸出&#xff1a;1 解釋&#xff1a;經過一次 move 操作&#xff0c;數組將變為 [1, 2, 3]。 代碼 …

數據科學 python_如何使用Python為數據科學建立肌肉記憶

數據科學 pythonby Zhen Liu劉震 首先&#xff1a;數據預處理 (Up first: data preprocessing) Do you feel frustrated by breaking your data analytics flow when searching for syntax? Why do you still not remember it after looking up it for the third time?? It…

oracle 管道通信,oracle管道化表函數

轉自&#xff1a;http://pengfeng.javaeye.com/blog/260360在我所做過和參與的大多數項目中,都會有用戶提出的復雜的一些統計報表之內的功能要求,根據統計的復雜程度、效率及JAVA程序調用的方便性方面考慮,主要總結出以下幾種方案&#xff1a; 1、SQL語句 該方案只能實現一些相…

ebtables之BROUTING和PREROUTING的redirect的區別

ebtables和iptables實用工具都使用了Netfilter框架&#xff0c;這是它們一致的一方面&#xff0c;然而對于這兩者還真有一些需要聯動的地方。很多人不明白ebtales的broute表的redirect和nat表PREROUTING的redirect的區別&#xff0c;其實只要記住兩點即可&#xff0c;那就是對于…

LVS的四種模式的實現

LVS 是四層負載均衡&#xff0c;也就是說建立在 OSI 模型的第四層——傳輸層之上&#xff0c;傳輸層上有我們熟悉的 TCP/UDP&#xff0c;LVS 支持 TCP/UDP 的負載均衡。LVS 的轉發主要通過修改 IP 地址&#xff08;NAT 模式&#xff0c;分為源地址修改 SNAT 和目標地址修改 DNA…

MyISAM與InnoDB兩者之間區別與選擇,詳細總結,性能對比

1、MyISAM&#xff1a;默認表類型&#xff0c;它是基于傳統的ISAM類型&#xff0c;ISAM是Indexed Sequential Access Method (有索引的順序訪問方法) 的縮寫&#xff0c;它是存儲記錄和文件的標準方法。不是事務安全的&#xff0c;而且不支持外鍵&#xff0c;如果執行大量的sel…

leetcode557. 反轉字符串中的單詞 III

給定一個字符串&#xff0c;你需要反轉字符串中每個單詞的字符順序&#xff0c;同時仍保留空格和單詞的初始順序。 示例&#xff1a; 輸入&#xff1a;“Let’s take LeetCode contest” 輸出&#xff1a;“s’teL ekat edoCteeL tsetnoc” 代碼 class Solution {public St…

linux命令數據盤分多個區,pvmove命令 – 移動物理盤區

pvmove命令的作用是可以將源物理卷上的物理盤區移動到一個或多個其他的目標物理卷。使用pvmove命令時可以指定一個源日志或卷。在這種情況下&#xff0c;只有邏輯卷使用的區才會被移動到目標物理卷上的空閑或指定的區。如果沒有指定的物理卷&#xff0c;則使用卷組的默認規則分…

spanning-tree extend system-id

spanning-tree extend system-id 在交換機上啟用extended-system ID 特征使其支持 1024 MAC 地址, 在全局模式下使用 spanning-tree extend system-id命令.禁用時前面加 no。 spanning-tree extend system-id no spanning-tree extend system-id 命令用法 在不提供 1024 MAC 地…

leetcode841. 鑰匙和房間(bfs)

有 N 個房間&#xff0c;開始時你位于 0 號房間。每個房間有不同的號碼&#xff1a;0&#xff0c;1&#xff0c;2&#xff0c;…&#xff0c;N-1&#xff0c;并且房間里可能有一些鑰匙能使你進入下一個房間。 在形式上&#xff0c;對于每個房間 i 都有一個鑰匙列表 rooms[i]&a…