变态重口极致另类在线-波多久久夜色精品国产-波多野结衣在线观看一区-波多野结衣在线观看一区二区-污污的网站免费阅读-污污视频网址

當前位置:首頁文章首頁 IT學院 IT技術

詳解Linux下的postfix安裝

作者:  來源:  發布時間:2012-2-16 17:16:05  點擊:
  virtual_mailbox_extended = yes

  virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf

  virtual_mailbox_limit_override = yes

  virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please Tidy your mailbox and try again later.

  virtual_overquota_bounce = yes

  ##############END--############################################

  添加支持虛擬域和虛擬用戶所需要的配置文件

  [root@mail2 postfix]# vi mysql_virtual_domains_maps.cf

  user = extmail

  password = extmail

  hosts = localhost

  dbname = extmail

  table = domain

  select_field = description

  where_field = domain

  ~

  [root@mail2 postfix]# vi mysql_virtual_mailbox_limit_maps.cf

  user = extmail

  password = extmail

  hosts = localhost

  dbname = extmail

  table = mailbox

  select_field = quota

  where_field = username

  [root@mail2 postfix]# vi mysql_virtual_mailbox_maps.cf

  user = extmail

  password = extmail

  hosts = localhost

  dbname = extmail

  table = mailbox

  select_field = maildir

  where_field = username

  [root@mail2 postfix]# vi mysql_virtual_alias_maps.cf

  user = extmail

  password = extmail

  hosts = localhost

  dbname = extmail

  table = alias

  select_field = goto

  where_field = address

  ~

  四個配置文件

  第九,安裝courier-authlib

  Ok了,下面開始安裝

   courier-authlib

  [root@mail2 courier-authlib-0.63.0]# ./configure --prefix=/usr/local/courier-authlib --sysconfdir=/etc --without-authpam -without-authldap --without-authpwd --without-authshadow --without-authvchkpw --without-authpgsql --with-authmysql --with-mysql-libs=/usr/local/mysql/lib/mysql -with-mysql-includes=/usr/local/mysql/inculde/mysql --with-redhat --with-authmysqlrc=/etc/authmysqlrc --with-authdaemonrc=/etc/authdaemonrc CFLAGS="-march=x86-64 -O2 -fexpensive-optimizations" CXXFLAGS="-march=x86-64 -O2 -fexpensive-optimizations"

  其中有一個error,

  提示找不到expect not found - will not be able to change passwds 導致configure: error: --with-authmysql specified but no mysqlclient.so

  解決辦法:

  [root@mail2 lib]# cp /usr/local/mysql/lib/libmysqlclient.so /usr/lib/libmysqlclient.so

  之后重新編譯即可過去

  ./configure 過后,執行make提示authmysql.h:8:19: 錯誤:mysql.h:沒有那個文件或目錄

  authmysql.h:9:20: 錯誤:errmsg.h:沒有那個文件或目錄

  make[2]: *** [authmysql.lo] 錯誤 1

  Vi authmysql.h的文件

   Mysql/mysql.h

  保存即可

  [root@mail2 var]# chmod -R 755 /usr/local/courier-authlib/var/spool/authdaemon/

  進入到目錄/etc/

  [root@mail2 etc]# cp authdaemonrc.dist authdaemonrc

  [root@mail2 etc]# cp authmysqlrc.dist authmysqlrc

  編輯文件authdaemonrc

  authmodulelistorig="authmysql"

  daemons=10

  authmodulelist="authmysql"

  編輯文件authmysql

   MYSQL_SERVER 127.0.0.1

  MYSQL_USERNAME extmail

  MYSQL_PASSWORD extmail

  MYSQL_SOCKET /data/mysql/mysql.sock 數據庫的監聽文件

  MYSQL_PORT 3306 數據庫的端口

  MYSQL_DATABASE extmail 數據庫

  MYSQL_USER_TABLE mailbox 數據庫的表

  MYSQL_CRYPT_PWFIELD password 加密的字段

  MYSQL_UID_FIELD 503 郵件服務的屬主和屬組

  MYSQL_GID_FIELD 503

  MYSQL_HOME_FIELD concat('/var/mailbox/',maildir)

  MYSQL_NAME_FIELD name

  MYSQL_MAILDIR_FIELD concat('/var/mailbox/',maildir)

  ourier-authlib 的庫文件搜索路徑,并啟動courier-authlib

  [root@mail2 postfix]# /usr/local/courier-authlib/sbin/authdaemond start

  [root@mail2 postfix]# echo "/usr/local/courier-authlib/lib/courier-authlib/lib" >> /etc/ld.so.conf

  [root@mail2 postfix]# ldconfig -v

  第十安裝IMAP服務,

  安裝imap服務

  [root@mail2 postfix]# tar jxvf courier-imap-4.8.0.tar.bz2

  [root@mail2 ~]# ./configure --prefix=/usr/local/courier-imap --with-redhat --enable-unicode --disable-root-check --with-openssl --with-trashquota --without-ipv6 CPPFLAGS='-I/usr/local/courier-authlib/include' LDFLAGS='-L/usr/local/courier-authlib/lib/courier-authlib' COURIERAUTHCONFIG='/usr/local/courier-authlib/bin/courierauthconfig'

  Make && make install

  進入到/usr/local/courier-imap/etc下面,去復制imap啟動需要的配置文件

  [root@mail2 etc]# cp imapd-ssl.dist imapd-ssl

  [root@mail2 etc]# cp imapd.dist imapd

  [root@mail2 etc]# cp pop3d.dist pop3d

  [root@mail2 etc]# cp pop3d-ssl.dist pop3d-ssl

  配置courier-imap ,為用戶提供服務的類型,該處為用戶提供的是pop3d 服務,如果為用戶提供IMAP 服務,只需要修改對應的選項

  IMAPDSTART=YES

  [root@mail2 etc]# vi pop3d

  POP3DSTART=YES

  將NO改為YES

  為虛擬用戶創建郵箱所在目錄,并修改權限.把其所屬主改為postfix

  [root@localhost mail]# mkdir -pv /var/mailbox/

首頁 上一頁 [2] [3] [4] [5] [6]  下一頁 尾頁
上一篇:tar包的應用 下一篇:

相關軟件

相關文章

文章評論

軟件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
主站蜘蛛池模板: 深夜在线免费 | 天堂在线最新资源 | 波多野结衣在线免费观看视频 | 成人高辣h视频一区二区在线观看 | 韩国三级伦理片床在线播放 | 亚洲综合男人的天堂色婷婷 | 欧美日韩精品乱国产538 | 免费91视频 | 精品一区二区三区的国产在线观看 | 35pao免费视频 | 国产欧美亚洲三区久在线观看 | 日韩性生活大片 | 精品成人在线观看 | 欧美日韩精选 | 看全黄大色黄大片美女51la | 大色综合 | 亚洲图欧美 | free性hd另类 | www精品| 天天操天天爽天天射 | 日韩精品导航 | 亚洲a成人7777777久久 | 一级色黄 | 久久精品中文字幕第一页 | 成人1000部免费观看视频 | 2022国产成人福利精品视频 | 天堂视频网 | 欧美性另类69xxxx | 日本综合久久 | 亚洲精选在线 | 免费a在线观看播放 | 最近中文字幕完整国语 | 女人精aaaa片一级毛片女女 | 五月婷婷免费视频 | 成人在色线视频在线观看免费大全 | 福利理论片午夜片 | 日本黄色影院在线观看 | 午夜视频在线免费观看 | 国产一区精品在线观看 | 五月天婷婷激情 | 免费看黄的动漫永久免费 |