Raspberry PI 2 に FreeBSD を(現在の main.cf)
今日は postfix の設定ファイルをば![myname@hostname postfix]$ diff main.cf main.cf.install-default-freebsd | cat -n1 96d952 < myhostname = hostname_mydomainname3 104d1024 < mydomain = mydomainname5 121d1186 < myorigin = $mydomain7 138d1348 < inet_interfaces = all9 187d18210 < mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, testdomain11 271,272c26612 < mynetworks_style = subnet13 < #mynetworks_style = host14 ---15 > mynetworks_style = host16 288d28117 < mynetworks = privateIP.0/24, 127.0.0.0/818 319d31119 < relay_domains = $mydestination20 342,349d33321 < relayhost = [smtp.gmail.com]:58722 < smtp_sasl_auth_enable = yes23 < smtp_sasl_password_maps = hash:/usr/local/etc/postfix/sasl_passwd24 < smtp_sasl_mechanism_filter = plain25 < #smtp_sasl_security_options =26 < smtp_sasl_security_options = noanonymous27 < smtp_use_tls = yes28 <29 420d40330 < alias_maps = hash:/etc/aliases31 430d41232 < alias_database = hash:/etc/aliases33 451c43334 < home_mailbox = Maildir/35 ---36 > #home_mailbox = Maildir/[myname@hostname postfix]$21行から27行ぐらいまでは gmail にメールを伝奏してもらうよう設定/usr/local/etc/postfix/sasl_passwd は----[smtp.gmail.com]:587 GMAILメールアドレス:パスワード----な感じのテキストファイルを作成し----# postmap hash:/usr/local/etc/postfix/sasl_passwd----問題がなければ sasl_passwd.db ができているはずあとは----# service postfix reload----するとpostfix/postfix-script: refreshing the Postfix mail systemこんな感じの反応が返ってくるはず。34行目は受けたメールは Maildir 形式で保存してもらうよう指定もちろん Dovecot も Maildir を使用するよう設定