SSブログ

SMTP認証を有効にしたpostfixのインストールメモ [Linux]

★db-4.7.25
http://www.oracle.com/technology/software/products/berkeley-db/index.html
$ cd build_unix
$ ../dist/configure
$ make
# make install

★cyrus-sasl-2.1.22
http://cyrusimap.web.cmu.edu/downloads.html#sasl
$ ./configure -with-dblib=berkeley --with-bdb-libdir=/usr/local/BerkeleyDB.4.7/lib --with-bdb-incdir=/usr/local/BerkeleyDB.4.7/include
$ make check
# make install
# ln -s /usr/local/lib/sasl2 /usr/lib

★postfix-2.5.6
http://www.postfix.org/download.html
$ make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"
$ make
# make install
※パラメーターを聞かれるがすべてデフォルトのまま[Enter]

# vi /etc/postfix/main.cf
relayhost = [mail.so-net.ne.jp]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/isp_auth
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain, login

# vi /etc/postfix/isp_auth
mail.so-net.ne.jp hoge@aa2.so-net.ne.jp:password

# /usr/sbin/postmap /etc/postfix/isp_auth


nice!(1)  コメント(0)  トラックバック(0) 

nice! 1

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。