忍者ブログ
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

postfixのmain.cfを編集

relayhost = [xx.yy.auone-net.jp]:587   ←xyはsmtpサーバによって異なる

最終行に追加
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_passwd

smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN

# vi /etc/postfix/smtp_passwd ←新規作成
xx.yy.auone-net.jp a123456789:password ←a123456789 はアカウント passwordは設定したパスワード

# yum -y install cyrus-sasl-plain cyrus-sasl-md5 ←これを入れないと怒られる

# /etc/init.d/saslauthd restart
# /etc/init.d/postfix restart

# mail test@example.com ←テストメールを自分のメールアドレスに送付

# /etc/init.d/dovecot restart

再起動で立ち上がるように設定
# chkconfig saslauthd --level 345 on
# chkconfig postfix --level 345 on
# chkconfig dovecot --level 345 on
 
PR
この記事にコメントする
お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
カレンダー
04 2024/05 06
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
ブログ内検索
Centos7のインストールと設定  HOME  dovecot設定

material:web*citron  template:ゆずろぐ

忍者ブログ [PR]