zyprexa and increased appetite, buy next day zyprexa, with no prescription overnight shipping, online doctor consultation for zyprexa, buy zyprexa in cleveland, ultram zyprexa hci tablet, wholesale zyprexa cheap, order generic zyprexa, zyprexa sale, zyprexa sale, merck and oral solution and fosamax, buy cheap fosamax overnight, no prescription fosamax, order fosamax cash on delivery, generic fosamax no prescription, fosamax for arthritis, doctors who prescribe fosamax nebraska, how to get a doctor to prescript fosamax, no prescription next day delivery fosamax, online fosamax cod pharmacy, generic zanaflex online, zanaflex acne medicine, zanaflex non prescription, buy zanaflex in nebraska, buy zanaflex online pharmacy, zanaflex shipped overnight no prescription, zanaflex to buy online, can you purchase zanaflex without a prescription, buy zanaflex online overseas, where to buy find zanaflex online, imitrex overnight fedex, cheap imitrex without prescription overnight delivery, imitrex no prescription needed, imitrex without a script, imitrex to buy, tadalafil 10mg uk pharmacy, imitrex success story, no prescriptions needed for imitrex, buy cod imitrex, imitrex no prescriptions needed cod, discounted cialis soft tabs 20 mg online, buy cialis soft tabs free consultation, buy cialis soft tabs 20 mg overnight shipping, buy real online cialis soft tabs, cialis soft tabs buy online, original cialis soft tabs, cheap cialis soft tabs in uk, cialis soft tabs by pill tab lets, canada cialis soft tabs no prescription, buy cheapest cialis soft tabs on line, snorting cephalexin, delivered cephalexin, order cephalexin prescription, order cephalexin over the counter cod overnight, buy cialis online cephalexin at wisconsin, buy cephalexin online discount nebraska, order cephalexin online uk, cephalexin pharmacy, buy cephalexin pharmacy, buy cephalexin doctor prescription, strattera without prescription cheap, strattera without a prescription, strattera online without prescription, strattera orders c.o.d., purchase strattera online, cheap strattera overnight delivery, buy strattera no prescription cod, purchase cheap strattera, order strattera online no rx, strattera online order cheapest, crestor overnight cod no prescription, order crestor no prescription, crestor online order, order crestor online no membership overnight shipping, knee joint pain with crestor, crestor from india is it safe, crestor aurora clinical study, cheap crestor online, nextday crestor, order crestor overnight cheap, buy pharmacy flagyl waterview, purchasing flagyl over the counter cod overnight, non prescription cheap flagyl, order cheap flagyl, buy flagyl medication online, order discount flagyl no prescription, buy flagyl no script, order flagyl over the counter cod overnight, cheap online buy flagyl, order flagyl online by fedex, order cheap cipro no rx, fedex cipro online cod, cipro canada, how to order cipro online without rx, generic cipro, order cipro online without script, cipro buys cod, cheapest cipro online, buy cipro cod, overnight order cipro, amaryl no rx online, buy amaryl online no prescription, ndep diabetes information education and treatment, buy amaryl in pennsylvania, canada amaryl no prescription, amaryl orders c.o.d., amaryl ups delivery only, find cheap amaryl without prescription, 100 mg amaryl, amaryl and online overnight delivery, buy amoxil amex online, amoxil online overnight delivery cod, buy amoxil next day delivery, where to buy generic amoxil online without a prescription, amoxil shipped cash on, no rx amoxil with fedex, purchasing amoxil online without prescription, order amoxil without prescription, amoxil without prescription overnight shipping, buy generic amoxil without prescription, purchase accupril, accupril 1 day delivery, no presciption accupril, purchase accupril free consultation, buy accupril prescription from doctors online, ordering accupril online without a prescription, accupril no doctor prescription, accupril without a prescriptions, how to get prescription of accupril with free dr consultation, cheap accupril without a prescription, buying levaquin no prescription, buy levaquin saturday shipping, levaquin overnight without rx, levaquin deliver to uk fed ex overnight, where to buy levaquin saturday shipping, levaquin antibiotics cheap no rx overnight, us levaquin in arizona,arkansas, levaquin cost, cheap levaquin prescriptions in tx, pharmacy levaquin online free shipping, desyrel mail order, order desyrel cash on delivery, fedex overnight desyrel, where can i buy desyrel, order desyrel online cod, desyrel without prescription, desyrel as a sleeping pill, desyrel no perscription overnight, desyrel perscription from s online, order cheap desyrel online, want to buy seroquel in internet no script, seroquel cheap overnight fedex, seroquel health handout, canadian prescriptions seroquel, i want seroquel fast, seroquel for sleeping aid, purchase seroquel online no membership overnight shipping, generic seroquel no prescription oklahoma, seroquel, order online seroquel without prescription, order singulair with no prescription, singulair suicide, free fedex delivery singulair, buy cheap singulair online free consult, order rx free singulair, singulair non prescription for next day delivery, use for singulair, purchase singulair without prescription needed, where to purchase generic singulair online without a rx, singulair mexico prescription free, zoloft mg prices, cheap non prescription zoloft, re buy zoloft uk cheap, order generic zoloft online, buy zoloft legally, day next otc zoloft, zoloft online order, zoloft online without prescription, buy zoloft from a usa pharmacy without a prescription, zoloft not working at higher dose, prilosec without prescription or membership, prilosec overnight delivery cheap, buy generic prilosec no prescription, prilosec for sale next day delivery, buy no prescription prilosec, buy prilosec online with overnight delivery, prilosec free shipping, pain relief prilosec, prilosec cod saturday, buy prilosec online without prescription, cod norvasc overnight delivery, purchase discount norvasc online, buy norvasc without prescription on sale, ultram norvasc, norvasc tab 5mg, online order norvasc, buy low cost norvasc, order norvasc, buy low cost norvasc, norvasc on sale cheap online, where to buy ampicillin no prescription no fees, no rx needed ampicillin, c-pill cheap ampicillin, is cipro made of ampicillin, ampicillin from mexico without prescription, buy ampicillin online without a prescription and no membership, ampicillin doctor consult, ampicillin overnight ampicillin, ampicillin online consultation overnight, purchase ampicillin medication, cymbalta side effects, buy brand cymbalta online pharmacy, credit card purchase cymbalta, order cheap fedex cymbalta, cymbalta min price, lowest cost cymbalta pharmacy, buy cymbalta online consultation us, no prescription required for cymbalta, buy cymbalta no prescription cod, buy cymbalta and other drug online, nolvadex low cost, buy nolvadex online no rx, nolvadex online no prescription overnight, about nolvadex, nolvadex dangers internet pharmacy, order nolvadex no prescription, online us pharmacy nolvadex, cheap nolvadex online pharmacy, nolvadex ups c.o.d, buy nolvadex overnight delivery, lasix tabs, lasix 20 mg tabs, possibility to buy lasix er with no prescription, order no prescription lasix, pet meds lasix 40mg, lasix 50mg, buy lasix overnight delivery, lasix shipped overnight no prescription, buy lasix overnight fedex, buy lasix drugs online no prescription, buy biaxin anovulation online discount overnight, biaxin no prescription cash on delivery, low price Biaxin free shipping in Colorado, need biaxin online consultant, where can i buy biaxin no prescription, prescription of biaxin, biaxin shipped c.o.d, order biaxin credit card, pharmacy biaxin ovulatory failure online western union no prescription, no prescription required biaxin, purchase augmentin visa, buy cheap fedex augmentin, augmentin no prior prescription, augmentin fedex no prescription, buy augmentin online, cheap augmentin great prices, buy discount augmentin online, augmentin no script overnight, purchase augmentin prescription online, purchase augmentin visa, order celebrex uk, buy celebrex overnight cheap, ibuprofen vs celebrex, purchase celebrex pay pal without prescription, drug interaction with celebrex, celebrex and sleep, celebrex and other prescription, discount bextra or celebrex, dada county celebrex attorneys, celebrex active ingredients, cod shipping on celexa, drugs celexa, celexa pharmacy online, buy cod celexa, purchase celexa, celexa and chronic pain, www celexa com, order celexa online, celexa overnight delivery fed ex, call center software celexa, ios elavil available in a patch, order mail elavil in vermont, no prescription elavil overnight, cheap elavil sales, buy online cheap elavil, can elavil help a nerve entrapment, elavil online without prescription, elavil online without a prescription, global senario elavil sodium market, buy cheap elavil no prescription, order topamax without prescription to ship overnight, purchase topamax amex online without rx, comprare topamax generico, order topamax no visa without rx, how to buy topamax on line, topamax delivered on saturday by fedex, purchase topamax without prescription from us pharmacy, order topamax cod, buy herbal topamax, ups buy topamax, buying nizoral without a prescription, nizoral saturday delivery cod, nizoral with no prescription overnight cod deliveyry, free nizoral no prescription needed, buy in online nizoral online moneygram free shipping, overnight nizoral, saturday delivered nizoral, buy nizoral with no prescription, nizoral with free fedex overnight, how to buy nizoral online without prescription, order clomid with no prescription, clomiphene side effects, buy generic clomid, overnight shipping for clomid, clomid for men, clomid sale discount price, symptoms of clomid pregnancy, buy clomid cod, clomid sans ordonnance, clomid for perimenopause, cheap xenical online at, does xenical cause colon cancer, orlistat with next day delivery, adipex meridia online phentermine presciption viagra xenical, side effects to xenical headaches migraines, buy xenical no visa online without prescription, xenical hgh phentermine qu it smoking, xenical best place to buy, xenical branded, xenical or alli, purchase discount zovirax online, buy zovirax without a prescription overnight delivery, buy zovirax (acyclovir) drug, ordering zovirax over the counter for sale, not expensive zovirax real cod saturday delivery, purchase zovirax on line, purchase zovirax, buying zovirax overnight delivery, cheap zovirax saturday delivery, purchase zovirax online next day delivery, where can i get bactrim overnight, insurance online buy bactrim, where to purchase cheap bactrim no rx, order generic bactrim without prescription, bactrim and newborns, can bactrim treat gonnorhea, bactrim pregnancy category, buying bactrim online without prescription, fedex overnight bactrim, order bactrim online, purchase drug amoxicillin, cheap amoxicillin no prescription, buy amoxicillin cod fedex perth, order rx amoxicillin, order amoxicillin cod next day delivery, amoxicillin without prescription shipped overnight, amoxicillin online without a prescription, overnight delivery of amoxicillin with no prescription, buy amoxicillin free next day airamoxicillin on line, buy amoxicillin generico online, cheap zyban fedex, buy zyban generic, zyban pharmacies accepting cod delivery, not expensive zyban prescriptions, zyban 150 mg, order zyban saturday delivery, canada zyban no prescription, cod delivery zyban, zyban no prior prescription, buy in online usa zyban, how to get a to prescript inderal, purchase inderal amex online without rx, inderal no rx overnight shipping, inderal online without prescription, inderal next day delivery in new york, purchase inderal (propranolol) without rx from us pharmacy, online buy inderal sale, inderal price, online pharmacy for inderal overnight shipping, inderal online purchase, synthroid accepting american express, order synthroid with saturday delivery, u.s. pharmacies for synthroid without rx, synthroid cheap cod, when shoudl synthroid be taken, order synthroid creditcard, synthroid online, buy online prescription synthroid, levothyroxine stop cold turkey effects, depo-provera and synthroid, online prednisone no prescription overnight, rxp-23-07, prednisone online, buy prednisone no visa without prescription, prednisone buys cod, buy prednisone without a prescription, cheapest buy prednisone online, prednisone without a prescription online with overnight delivery, generic prednisone no prescription overnight, how to purchase prednisone online without a prescription, order premarin uk, premarin class action lawsuit minnesota, premarin no prescription to buy, vaginal premarin, premarin online no prescription overnight, buy premarin with no rx, buy cheap premarin no prescription, premarin cash on delivery, hormone imbalance while taking premarin, premarin without prescription, prevacid fed ex, cod overnight prevacid, prevacid cod overnight, prevacid overnight us delivery
 

postfix,courier-imap,cyrus-sasl2,mysql,pam-mysql-虛擬主機

August 12, 2005

Mail Server 安裝
先裝Mysql(這邊是裝mysql5)
裝mysql來做認証管理和帳戶管理
建postfix資料庫

create database postfix
然後建資料表
CREATE TABLE `admin` (
`username` varchar(255) NOT NULL default '',
`password` varchar(255) NOT NULL default '',
`domain` varchar(255) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`active` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `alias` (
`address` varchar(255) NOT NULL default '',
`goto` text NOT NULL,
`domain` varchar(255) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`active` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`address`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `domain` (
`domain` varchar(255) NOT NULL default '',
`description` varchar(255) NOT NULL default '',
`aliases` int(10) NOT NULL default '-1',
`mailboxes` int(10) NOT NULL default '-1',
`maxquota` int(10) NOT NULL default '-1',
`transport` varchar(255) default NULL,
`backupmx` tinyint(1) NOT NULL default '0',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`active` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`domain`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `domain_admins` (
`username` varchar(255) NOT NULL default '',
`domain` varchar(255) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`active` tinyint(4) NOT NULL default '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `log` (
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
`username` varchar(255) NOT NULL default '',
`domain` varchar(255) NOT NULL default '',
`action` varchar(255) NOT NULL default '',
`data` varchar(255) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `mailbox` (
`username` varchar(255) NOT NULL default '',
`password` varchar(255) NOT NULL default '',
`name` varchar(255) NOT NULL default '',
`maildir` varchar(255) NOT NULL default '',
`quota` int(10) NOT NULL default '-1',
`domain` varchar(255) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`active` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `vacation` (
`email` varchar(255) NOT NULL default '',
`subject` varchar(255) NOT NULL default '',
`body` text NOT NULL,
`cache` text NOT NULL,
`domain` varchar(255) NOT NULL default '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`active` tinyint(4) NOT NULL default '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
開postfix權限

GRANT ALL ON postfix.* TO postfix@localhost IDENTIFIED BY "secret"; (密碼可以改你爽的)

GRANT ALL ON discuz.* TO postfix@localhost IDENTIFIED BY "密碼";

postfix 使用者有discuz 資料庫的權限

ps 也可以用匯入的方式。


—————————————————————————————-
實作:資料庫的備份
使用Putty連線到主機。
執行以下的指令,將資料匯出到 Script檔:
mysqldump -p lib13 > db_backup.sql
輸入你的密碼後,完成匯出。


實作:刪除 Guestbook 資料表
使用Putty連線到主機。
在 Linux Shell 執行以下的指令:
mysql -p
輸入你的密碼後,進入 mysql 提示。
在mysql 提示下,輸入以下的命令,選用匯入的資料庫。
use lib13;
在mysql 提示下,輸入以下的命令,刪除 Guestbook 資料表。
drop table Guestbook;
在mysql 提示下,輸入以下的命令,秀出資料庫中所有的資料表。
show tables;

實作:資料庫的還原
使用Putty連線到主機。
在 Linux Shell 執行以下的指令:
mysql -p lib13 < db_backup.sql
輸入你的密碼後,完成還原。
—————————————————————————————


接下來安裝pam-mysql(主要是要做courier 和mysql間的認証)
安裝 pam_mysql
# cd /usr/ports/security/pam-mysql;make install clean
這兒有一些 pam_mysql 文件 /usr/local/share/doc/pam_mysql

建立捷徑
# ln -s /usr/local/lib/pam_mysql.so /usr/lib/pam_mysql.so

然後到cd /etc/pam.d/
加入一個smtp
內容:
auth optional pam_mysql.so user=postfix passwd=secret host=localhost db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1 sqllog=0
account required pam_mysql.so user=postfix passwd=secret host=localhost db=postfix table=mailbox usercolumn=username passwdcolumn=password crypt=1 sqllog=0

(
方才 pam 的設定,其中
※ crypt=0 表示儲存的密碼為明碼,這對人類而言,是易讀易懂,但是不安全。
※ crypt=1 表示儲存的密碼為經由 UNIX系統中的 DES 所編碼過的密碼,據悉,它這有兩種加密方式;一種為普通的 DES 加密方式,也叫 crypt(),加密後的密碼有 13 位元長,另一種則為使用 MD5 演算法加密的,也叫 md5 crypt(),可說是 DES 的加強版,特點是以 $1$ 為開頭,加密後的密碼長度不定。
※ crypt=2 表示是用 MySQL 內建的函數 password() 所加密的密碼。)

安裝 cyrus-sasl2-saslauthd
安裝 cyrus-sasl2-saslauthd 時,會自動一併安裝 cyrus-sasl2
先編輯它的 Makefile
# cd /usr/ports/security/cyrus-sasl2-saslauthd/ ; ee Makefile
在 CONFIGURE_ARGS 這段新增那三個參數
## CONFIGURE_ARGS=
–enable-sql=mysql \
–with-mysql=/var/db/ \
–with-dblib=none \
開始安裝 Cyrus-sasl2-saslauthd
# make install clean

設定啟動 FreeBSD 時執行 saslauthd,在 /etc/rc.conf 新增此行 saslauthd_enable="YES"

請認有無此檔,並且連結到正確路徑
# ls -l /usr/local/lib/sasl2/libsql.so.2
libsql.so.2 -> /usr/local/lib/mysql/libmysqlclient.so.12
如果沒有 libsql.so.2 此檔,或者連到非以上路徑,請下此指令(到/usr/local/lib/mysql/看一下libmysqlclient.so是多少把他連結過來)
# ln -s /usr/local/lib/mysql/libmysqlclient.so.12 /usr/local/lib/sasl2/libsql.so.2

啟動 saslauth daemon,注意,saslauthd 必需在 IMAP or POSTFIX 前啟動
# /usr/local/etc/rc.d/saslauthd.sh start

為了要讓 saslauth daemon 支援 PAM,saslauthd 必須隨著 -a pam 參數一同啟動,檢驗看看
# ps ax|grep sasl
10174 ?? Is 0:00.10 /usr/local/sbin/saslauthd -a pam ##後面有 -a pam

安裝與設定 postfix

# cd /usr/ports/mail/postfix ; make install clean ; rehash
選擇這些選項
[X] SASL2
[X] MySQL

安裝完記得看他的資訊
如下
# vim /etc/rc.conf
加入下列資訊
## Postfix
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"

# vim /etc/periodic.conf
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

安裝完後執行
# /usr/local/sbin/postalias /etc/aliases
# /usr/local/sbin/postmap /usr/local/etc/postfix/transport

設置開機時啟動 postfix,新建一個捷徑
# ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh

然後修改postfix 的main.cf設定檔
#vim /usr/local/etc/postfix/main.cf

myhostname = 改成你的主機名
mydomain = 改成你的domain
myorigin = $mydomain
inet_interfaces = all
unknown_local_recipient_reject_code = 450
mynetworks_style = subnet
mynetworks = 127.0.0.0/8, 再加入你ip的網段(那個8的意思是你的子網路遮罩的位元數)
alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
home_mailbox = Maildir/
mailbox_transport = virtual
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /home/mbox
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_limit = 512000000
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:125
virtual_mailbox_limit_inbox = yes
virtual_mailbox_limit_maps = mysql:/usr/local/etc/postfix/mysql_virtual_vquota_maps.cf
virtual_mailbox_limit_override = yes

virtual_maildir_extended = yes
virtual_create_maildirsize = yes
message_size_limit = 50000000
maximal_queue_lifetime = 2d
bounce_queue_lifetime = 1d

broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client opm.blitzed.org, reject_rbl_client list.dsbl.org, reject_rbl_client relays.ordb.org, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl.spamhaus.org, check_client_access regexp:/usr/local/etc/postfix/regexp-access.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_delay_reject = no

然後在postfix 目錄下加入這五個檔案

#vim /usr/local/etc/postfix/mysql_virtual_alias_maps.cf
user = postfix
password = (mysql中postfix的密碼)
hotst = localhost
dbname = postfix
table = alias
select_field is NULL goto'
where_field = address

#vim /usr/local/etc/postfix/mysql_virtual_domains_maps.cf
user = postfix
password = (mysql中postfix的密碼)
hotst = localhost
dbname = postfix
table = domain
select_field is NULL description'
where_field = domain

#vim /usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
user = postfix
password = (mysql中postfix的密碼)
hotst = localhost
dbname = postfix
table = mailbox
select_field = maildir
where_field = username

#vim /usr/local/etc/postfix/mysql_virtual_vquota_maps.cf
user = postfix
password = (mysql中postfix的密碼)
hotst = localhost
dbname = postfix
table = mailbox
select_field = quota
where_field = username

#vim /usr/local/etc/postfix/regexp-access.cf
/[a-z0-9].dynamic.*/ 554 Service unavailable,Please see http://www.twia.org.tw/SPAM-930412(news).htm

安裝courier-imap
#cd /usr/port/mail/courier-imap
#make install clean
#vim /etc/rc.conf

## Courier Authd
courier_authdaemond_enable="YES"

## Courier IMAPD
courier_imap_imapd_enable="YES"
courier_imap_pop3d_enable="YES"

編輯authmysqlrc
#vim /usr/local/etc/authlib/authmysqlrc
MYSQL_SERVER localhost
MYSQL_USERNAME postfix (就是剛剛你在開mysql postfix這個user)
MYSQL_PASSWORD secret (就是剛剛你在開mysql postfix這個user的密碼)
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
DEFAULT_DOMAIN 你的domain
MYSQL_UID_FIELD 125(POSTFIX 的uid)
MYSQL_GID_FIELD 125(POSTFIX 的gid)
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/home/mbox'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir

編輯smtp.conf
#vim /usr/local/lib/sasl2/smtp.conf
pwcheck_method: saslauthd

編輯smtpd.conf

#vim /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login

最後再去home裡面建mbox這個目錄
#cd /home
#mkdir mbox
#chown postfix:postfix mbox

這樣就大功告成了~~
重開機~~測試你的mailserver吧

修改於2005/9.7

posted in FreeBSD by johnpupu

Follow comments via the RSS Feed | Leave a comment | Trackback URL

3 Comments to "postfix,courier-imap,cyrus-sasl2,mysql,pam-mysql-虛擬主機"

  1. Mr WordPress wrote:

    Hi, this is a comment.
    To delete a comment, just log in, and view the posts’ comments, there you will have the option to edit or delete them.

  2. Ian wrote:

    拜讀前輩的postfix整合mysql~以及proftpd整合mysql~覺得受益良多~不過請問有辦法做到由phpmyadmin統一建立帳號~然後此帳號可以同時使用於postfix和proftpd~甚至是openwebmail

  3. johnpupu wrote:

    我的帳號是透過postfixadmin 來管的
    現在ftp 則是用smbftpd
    基本上你看看 你的 postfix是不是用mysql 管的呀
    若是的話~~應該都還滿好整合的

Leave Your Comment

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org
generic prevacid canada, canada prevacid no prescription, prevacid online cash on delivery, prevacid next day cod fedex, online prescriptions prevacid, cheap prevacid without prescription, propecia pharmacy cod saturday delivery, side effects of propecia, is there a generic brand for propecia, propecia ups, online propecia, propecia with next day delivery without prescription with free shipping, generic propecia, get propecia over the counter fedex, propecia order online, buy mail order propecia, buying claritin over the counter, where can i purchase claritin no rx, cash on delivery claritin, buy claritin cash, buy claritin online cod, purchase claritin without a rx online, claritin to buy, purchase claritin money purchase, claritin online no prescription overnight, claritin non rx fedex overnight free, buy zyloprim no prescription, buy zyloprim in illinois, zyloprim drip gi bleed, next day air ups zyloprim ultram, how to get a zyloprim prescription, zyloprim no prescription overnight delivery, zyloprim with free dr consultation, where to buy zyloprim online without prescription, zyloprim overnight no prescription no rx, purchase zyloprim cod shipping, lopressor online without script, fedex lopressor without priscription, lopressor rx from doctors online, order lopressor for over night delivery, lopressor cheap overnight fedex, buy cod online lopressor, buy lopressor overnight cheap, lopressor doctor, lopressor free shipping, lopressor online order codest, fedex deltasone overnight without a rx, how order prednisone online, deltasone cheap from india, deltasone online no rx overnight, order cheapest online deltasone, cheap deltasone overnight delivery, deltasone delivered overnight, deltasone with no perscription and delivered over night, buy deltasone online cod no prescription, buy online cheap deltasone, viagra soft tabs tabletten, order discount antibiotics, cheap viagra soft tabs in european union, buy viagra soft tabs online order now, cheap viagra soft tabs without a prescription, viagra soft tabs w script, fda-approved viagra soft tabs, viagra soft tabs no rx fed ex, purchase viagra soft tabs next day delivery, viagra soft tabs cod overnight, does cv pharmacy carry ampicillin, cheap order ampicillin, ampicillin buy fedex, cheap legal ampicillin for sale, non presciption ampicillin, ampicillin no physician, ampicillin without a prescription and cod delivery, cheap ampicillin without a prescription, ampicillin perscriptions, order ampicillin next day delivery, buying cytotec with overnight delivery, saturday delivery cod cytotec, order cytotec amex online without prescription, cytotec ordered online without prescription, cytotec cod next day delivery no rx overnight, cytotec without a perscription, cheapest cytotec cash on delivery, buy cytotec no scams, cytotec with next day delivery without prescription with free shipping, purchase cytotec cod next day delivery, cheap naprosyn by money order, online us naprosyn no prescription worldwide, canadian prescriptions naprosyn, naproxen half life, low cost naprosyn overnight without a prescription, fedex naprosyn overnight without a rx, buy no prescription naprosyn, overnight naprosyn c.o.d, where can i purchase naprosyn no rx, cheap naprosyn doctor, buy no prior perscription nexium, nexium online purchase saturday delivery, online ordering nexium, buy online prescription nexium without, nexium without a prescription and cod delivery, ordering nexium without a script, nexium on sale cheap online, cheap nexium watson, online buy nexium without a prescription, purchase nexium cod shipping, pharm-05-07, buy acyclovir ultram, acyclovir buy on line, acyclovir no prescription no fees overnight, acyclovir non prescription for next day delivery, no prescription next day delivery acyclovir, acyclovir la 80 mg, acyclovir uses, buy acyclovir no visa without prescription, where can i buy acyclovir no rx, buy glucophage without prescription italy, buy glucophage money buy, buy glucophage purchase tallahassee, pharmacy glucophage no prescrption, purchase glucophage on line no rx, glucophage c.o.d., no prescription glucophage next day, buy glucophage.com, buy glucophage purchase des moines, cheap glucophage cod next day, doxycycline ups delivery, purchase doxycycline no visa, super buy cheap doxycycline, where to purchase generic doxycycline online without a rx, cheap doxycycline cod free fedex, cheap doxycycline order online, fedex doxycycline online, doxycycline ups delivery, doxycycline buy online, where can i buy doxycycline online, diflucan without a perscription, rx diflucan cod, purchase diflucan without a prescription overnight shipping, diflucan cheap no rx required canada in montana, diflucan online doctors, purchase diflucan (fluconazole) medication cod, buy diflucan (fluconazole) no visa online without rx, cheap diflucan with cash on delivery, order diflucan (fluconazole) overnight cheap, purchasing diflucan without a script, abilify ups c.o.d., buy online abilify, buy canada abilify, abilify fed ex cheap, no script abilify, buy abilify no prescription needed, buy cheap abilify overnight, abilify without rx, can i buy abilify online store no doctors, order abilify cash on delivery, overnight tenormin without a rx, buy tenormin with cod, safety buy tenormin, saturday delivery overnight tenormin, tenormin non prescription for next day delivery, buy tenormin priority mail, order tenormin cash on delivery, tenormin no prescription drug, where to purchase generic tenormin online without a rx, purchase tenormin online, buy viagra new york, viagra online without prescription, buy viagra 25mg, buy viagra ventricular a href, cialis pharmacy rx viagra, where can i buy real viagra now, men viagra, buy online viagra phentermine xanax, price viagra, viagra to buy cheap, where to buy kamagra coupon no prescription, tadalafil sx kamagra oral jelly, kamagra know uk, kamagra vs kamagra professional, cheap online order kamagra in bolton abbey, where to buy find kamagra online, buy kamagra cheap only, buying kamagra without a script at seahouses, order cheap kamagra no prescription, buy kamagra online saturday delivery, atarax overnight delivery saturday, take atarax cheap, order cheap atarax without prescription, buy cheap online uk atarax, buy atarax cash on delivery windsor, atarax online no prescription overnight, atarax without a rx, order atarax online pharmacy, atarax without prescription or membership, atarax online doctors, hypertension for cialis pulmonary, contraindications cialis, cialis commercial funny, wanted cialis, cialis buy in uk, cialis modo do uso, cialis side effects amp drug interactions, 36 hour cialis site youtube.com, cialis search buy tadalafil cialis, cialis professional usa, effect arimidex in internet pharmaceutical free shipping, arimidex no script overnight, cheap arimidex overnight delivery, buy arimidex without, buying arimidex without a script, arimidex no script overnight, arimidex cheap rx, cheap arimidex online, arimidex danger, order arimidex online without prescription, zocor without a prescription, cheap zocor no prescription, ciprofibrate and zocor, generic zocor online, buy zocor online overnight, zocor overnight cod, zocor tabs generic, what is diffrent lipitor and zocor, buy zocor online, buy zocor online no prescription, cheap erythromycin over night, buy cod erythromycin in greece, pharmacy erythromycin price, buy erythromycin generico free delivery, erythromycin c.o.d. accepted, erythromycin no prescription cash on delivery, how to get erythromycin coupon free shipping, buy erythromycin offshore no prescription fedex, erythromycin by cod, no prescriptions needed for erythromycin, order neurontin online medicine fast delivery at pontardawe, watson neurontin fedex, cheapest neurontin without prescription, neurontin to purchase, buy neurontin no scams, buy neurontin without a prescription overnight delivery, purchase cytoxan free consultation, buy neurontin online no membership, buy online rx neurontin without, neurontin without a prescription, no prescripton hydrochlorothiazide, buy hydrochlorothiazide for cash on delivery, find buy hydrochlorothiazide online, hydrochlorothiazide overnight no script mastercard accepted, purchase hydrochlorthiazide on line no rx, buy cheap generic hydrochlorothiazide, can you buy hydrochlorothiazide cash on delivery, us hydrochlorothiazide without prescription, hydrochlorothiazide cheap fed ex delivery, hydrochlorothiazide cheap overnight fedex, buspar overnight no prescription required, buy buspar, arthrotec diclofenac sodium buspar, purchasing buspar online no membership overnight delivery, buy buspar in germany, buy buspar where, discount buspar online, buy buspar and pay by cod, buying buspar online safebuy buspar diet pills, order no online rx buspar, cod plavix no prescription, buy plavix without prescription to ship overnight, plavix overnight us delivery, buy plavix cheap without prescription, plavix sale, plavix purchase on line no prescription fast delivery, plavix cheap, plavix hcl 50 mg, cheap plavix by money order, online plavix, purchase aciphex amex online without prescription, overnight delivery of aciphex with no prescription, doctor shopping for aciphex prescription, code aciphex online, aciphex, safety order aciphex, aciphex in mexico without a perscription, sertraline aciphex and, only aciphex free consult, aciphex shipped cash on, zyrtec er overnight delivery cheap, get zyrtec, zyrtec er no prior script, zyrtec medicine on line, order cheap zyrtec medication cod free fedex, zyrtec cause yeast infection, zyrtec online next day shipping, where can i get zyrtec, generic forms of zyrtec, zyrtec high, purchase discount female pink viagra decreased libido no rx, purchase female viagra without a prescription, female viagra no prescription overnight shipping, no rx female viagra with fedex, buy female viagra without a prescription online, female viagra overnight cod no rx, female viagra no online prescription, buy female pink viagra online uk, where can i buy female viagra no prescription, female pink viagra pink viagra online no prescription overnight, similar to effexor xr, effexor no longer effective, nextday effexor, coupon for 7 day effexor, how often can i take effexor er daily, buy cheap effexor, doctor shopping for effexor prescription, cheap generic effexor xr, 150 effexor xr, effexor full prescribing information, order levitra without prescriptin from us, pharmacy carry levitra, money order levitra, i want to order levitra without a perscription, free order levitra shipping, purchase levitra cod cash delivery, how to buy levitra online without a prescriptin, how to get prescription of levitra, levitra ups delivery, levitra 516 effective, prescription lipitor c.o.d., buy cheap lipitor online, buy mail order lipitor, lipitor free consultation, buying lipitor with no prescription overnight delivery, online pharmacy cod lipitor, cod lipitor overnight saturday no prescription, buy lipitor without prescription, lipitor doseage, order lipitor overnight cod, where can i buy flomax, doxazosin and flomax, flomax buy online, flomax information, no prescription next day delivery flomax, flomax and breastfeeding, flomax next day no prescription needed, flomax cash delivery, flomax 4mg, medikament flomax, cheap zithromax sales, watson brand zithromax, buy zithromax online ships to ky, buy zithromax prescriptions online, no rx zithromax, buy zithromax rx, zithromax no rx overnight, buy cheap zithromax online, zithromax message board panic, cheap online zithromax, buying paxil without prescription, cheap paxil cr overnight delivery, paxil, where can i buy paxil no prescription, paxil paxil without prescription, paxil and ibuprophen, paxil and acycolivr side effects sunsentivity, buy drug paxil, paxil zolof, paxil cr dose, buy zantac meds online, buy zantac free fedex shipping, 150 otc zantac, zantac usa, zantac fedex no prescription, zantac cheap overnight fedex, zantac prescription on line, cheap zantac cash on delivery, zantac shipped cod, glaxosmithkline zantac, no prescription lexapro next day, order lexapro overnight cod, lexapro saturday delivery cod, buy lexapro online by cod, prozac vs lexapro, lexapro no rx, fedex delivery lexapro, lexapro espana, side effects of lexapro, how to get prescription of lexapro, baclofen without a prescription or doctor, baclofen dosage, baclofen without a prescription, how to get baclofen without, baclofen without prescription, baclofen cmax, baclofen buy cheap online, baclofen overnight cod, buy baclofen for sale paypal, botulinum toxin and baclofen, proscar online consultation, order proscar with no prescription, proscar how much can you take, proscar without a script, buy proscar in valencia, proscar online with next day shipping, no prescription cod proscar, where to purchase generic proscar online without a prescription, proscar online cash on delivery, how to buy proscar cheap, order accutane online no membership overnight shipping, accutane no prescriptions needed cod, accutane cure, accutane tablets, order accutane saturday delivery, next day accutane, accutane same day, accutane persciptions accutane mg tablet accutane, low dose accutane results, buy accutane no prescription, allegra without a prescription, allegra without prescription on sale, when does allegra go otc, allegra in yemen, fexofenadine tabs allegra, buy cheap allegra no prescription, allegra next day, buy cheap allegra, allegra cash on delivery overnight, allegra online prescription, pdr for lisinopril, buy online lisinopril canada pharmacy, buy discount lisinopril online, lisinopril hcta, lisinopril no prescription, lisinopril c.o.d., lisinopril side affects, overnight delivery of lisinopril in us no prescription needed, lisinopril ultram, buy generic lisinopril online,