pinewell's farmer blog 農業と電子工作、ソフトウェア、バイク、車

2013年4月3日

postfixの設定

Filed under: 育苗管理システム — pinewell @ 5:52 PM

これはワシが借りているVPSサーバーへ relayする設定。
サブミッションポートでlistenしてSASL認証を用いてる。

postfixの設定
vi /etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
myhostname = debian.%ドメイン名%
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = camera.%メールドメイン名%, debian.%ドメイン名%, localhost.%ドメイン名%, localhost
relayhost = [%メールドメイン名%]:587
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_use_tls = no
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a “$EXTENSION”
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
message_size_limit = 0
mailbox_size_limit = 0

#cd /etc/postfix/
#vi saslpass

%メールドメイン名% %メールユーザー名%:’%パスワード%’

#postmap saslpass
#rm saslpass

コメントはまだありません »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress