国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 服務(wù)器 > Mail服務(wù)器 > 正文

構(gòu)建反病毒反垃圾郵件系統(tǒng)(二)

2024-09-08 23:46:37
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

3、與MySQL結(jié)合的配置及數(shù)據(jù)表結(jié)構(gòu)

注意:配置mysql相關(guān)部分要寫(xiě)127.0.0.1而不要寫(xiě)localhost,如果使用localhost,postfix會(huì)嘗試socket連接。debian的postfix使用socket連接好像有問(wèn)題。mysql不能使用skip-networking選項(xiàng),要使用--bind-address=127.0.0.1讓它監(jiān)聽(tīng)在127.0.0.1。(非常感謝MartinList-Petersen指點(diǎn))

還有要注意的是如果是自己編譯的mysql,建議在啟動(dòng)的時(shí)候加上--socket=/var/run/mysqld/mysqld.sock參數(shù),因?yàn)閜am-mysql又需要使用這個(gè)socket。如果你的apache+php是自己編譯的話,php又需要重新編譯,配置的時(shí)候需要加上--with-mysql-sock=/var/run/mysqld/mysqld.sock參數(shù)。

是不是比較煩?這不過(guò)是個(gè)開(kāi)始。

MySQL的數(shù)據(jù)表:
  
以下為引用的內(nèi)容:
  CREATETABLEalias(
  idint(11)unsignedNOTNULLauto_increment,
  aliasvarchar(128)NOTNULLdefault'',
  destinationvarchar(128)NOTNULLdefault'',
  PRIMARYKEY(id)
  )TYPE=MyISAM;
  
  CREATETABLErelocated(
  idint(11)unsignedNOTNULLauto_increment,
  emailvarchar(128)NOTNULLdefault'',
  destinationvarchar(128)NOTNULLdefault'',
  PRIMARYKEY(id)
  )TYPE=MyISAM;
  
  CREATETABLEtransport(
  idint(11)unsignedNOTNULLauto_increment,
  domainvarchar(128)NOTNULLdefault'',
  destinationvarchar(128)NOTNULLdefault'',
  PRIMARYKEY(id),
  UNIQUEKEYdomain(domain)
  )TYPE=MyISAM;
  
  CREATETABLEusers(
  idint(11)unsignedNOTNULLauto_increment,
  emailvarchar(128)NOTNULLdefault'',
  clearvarchar(128)NOTNULLdefault'',
  nametinytextNOTNULL,
  uidint(11)unsignedNOTNULLdefault'1011',
  gidint(11)unsignedNOTNULLdefault'1011',
  homedirtinytextNOTNULL,
  maildirtinytextNOTNULL,
  quotatinytextNOTNULL,
  postfixenum('Y','N')NOTNULLdefault'Y',
  PRIMARYKEY(id),
  UNIQUEKEYemail(email)
  )TYPE=MyISAM;
  
  CREATETABLEvirtual(
  idint(11)unsignedNOTNULLauto_increment,
  emailvarchar(128)NOTNULLdefault'',
  destinationvarchar(128)NOTNULLdefault'',
  PRIMARYKEY(id)
  )TYPE=MyISAM;
  
  /etc/postfix目錄下各mysql配置文件:
  
  mysql-aliases.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=alias
  select_field=destination
  where_field=alias
  hosts=127.0.0.1
  
  mysql-relocated.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=relocated
  select_field=destination
  where_field=email
  hosts=127.0.0.1
  
  mysql-transport.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=transport
  select_field=destination
  where_field=domain
  hosts=127.0.0.1

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 兰溪市| 望都县| 平安县| 新营市| 龙泉市| 兴安县| 福清市| 甘德县| 荥经县| 沂水县| 广西| 尤溪县| 阿坝县| 乌拉特后旗| 肥城市| 山西省| 安龙县| 会泽县| 镇远县| 玉山县| 景德镇市| 金华市| 丘北县| 芜湖市| 晴隆县| 海淀区| 牡丹江市| 饶阳县| 内江市| 抚远县| 衡水市| 海门市| 江北区| 南丰县| 延长县| 喀喇沁旗| 湘乡市| 翁牛特旗| 九龙县| 和平区| 高邮市|