(吉)のブログ

2010/08/18(水)15:58

postfix passwd 設定 下書き

(1) postfix の環境設定 その1  postofix をインストールしたままの状態だと  [User@df24x] $ cat /etc/mail/mailer.conf# $FreeBSD: src/etc/mail/mailer.conf,v 1.2.2.1 2002/04/09 02:00:56 gshapiro Exp $# $DragonFly: src/etc/mail/mailer.conf,v 1.2 2003/06/17 04:24:47 dillon Exp $## Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail#sendmail    /usr/libexec/sendmail/sendmailsend-mail   /usr/libexec/sendmail/sendmailmailq       /usr/libexec/sendmail/sendmailnewaliases  /usr/libexec/sendmail/sendmailhoststat    /usr/libexec/sendmail/sendmailpurgestat   /usr/libexec/sendmail/sendmail[(18:27:18)~/work][User@df24x] $こんな感じになってます(というかなってました。このあたり pkgsrc の使い方、間違えてます??)で、ゴリゴリ書き換えます。書き換える内容は(つまり、postfix の sendmail 互換コマンドのありかは)[User@df24x] $ find /usr/pkg -name sendmail/usr/pkg/sbin/sendmail[(18:26:36)~/work]ってな感じ、で、結局[User@df24x] $ cat /etc/mail/mailer.conf# $FreeBSD: src/etc/mail/mailer.conf,v 1.2.2.1 2002/04/09 02:00:56 gshapiro Exp $# $DragonFly: src/etc/mail/mailer.conf,v 1.2 2003/06/17 04:24:47 dillon Exp $## Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail#sendmail    /usr/pkg/sbin/sendmailsend-mail   /usr/pkg/sbin/sendmailmailq       /usr/pkg/sbin/sendmailnewaliases  /usr/pkg/sbin/sendmailhoststat    /usr/pkg/sbin/sendmailpurgestat   /usr/pkg/sbin/sendmail[(18:27:18)~/work][User@df24x] $こんな感じになりました。(2) postfix の環境設定 その2ここで通常であれば /usr/pkg/etc/postfix/main.cf の各サイトオリジナルの設定となるのですが、そこは飛ばして、肝心の[(18:20:12)~][User@df24x] $ ll /usr/pkg/etc/postfix/sasl_passwd-rw-r--r-- 1 root wheel - 47 1 13 11:45 /usr/pkg/etc/postfix/sasl_passwd[(18:20:39)~][User@df24x] $ cat /usr/pkg/etc/postfix/sasl_passwd[smtp.gmail.com]:587 %%UserID%%@gmail.com:%%UserPassword%%[(18:20:50)~][User@df24x] $ここまでの準備をして、”/usr/pkg/etc/postfix/main.cf ”に以下を追加# ++ for SMTP Auth ++++++++++++++++++++++++++++++++++++++++++++++++++++++++relayhost = [smtp.gmail.com]:587smtp_use_tls = yessmtp_sasl_auth_enable = yessmtp_sasl_password_maps = hash:/usr/pkg/etc/postfix/sasl_passwdsmtp_sasl_security_options = noanonymoussmtp_sasl_mechanism_filter = plain  

続きを読む

総合記事ランキング

もっと見る