今、PostfixとDovecotを使用してメールサーバーを構築しています。
メールサーバー構築(Postfix+Dovecot)
上記のページを見ながら構築をし、自分のgmail宛にメールを送信したところ、メールが配信されません。
ログを見ると
May 29 19:20:34 mail-server postfix/qmgr[14867]: 6797810233561: from=<aaa@bbb.com>, size=609, nrcpt=1 (queue active) May 29 19:20:34 mail-server postfix/smtp[15353]: connect to gmail-smtp-in.l.google.com[108.177.97.26]:25: No route to host May 29 19:20:34 mail-server postfix/smtp[15353]: connect to alt1.gmail-smtp-in.l.google.com[74.125.30.26]:25: No route to host May 29 19:20:34 mail-server postfix/smtp[15353]: connect to alt2.gmail-smtp-in.l.google.com[173.194.194.26]:25: No route to host May 29 19:20:35 mail-server postfix/smtp[15353]: connect to alt3.gmail-smtp-in.l.google.com[173.194.219.26]:25: No route to host May 29 19:20:36 mail-server postfix/smtp[15353]: connect to alt4.gmail-smtp-in.l.google.com[74.125.192.26]:25: No route to host May 29 19:20:36 mail-server postfix/smtp[15353]: 6797810233561: to=<example@gmail.com>, relay=none, delay=565, delays=563/0.03/2.4/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.192.26]:25: No route to host)
※メールアドレスは書き換えてあります。
となっていました。調べたところ、Outbound Port 25 Blockingが原因ということがわかりました。
そこで
OP25B(Outbound Port 25 Blocking)対策
上記のページを見てGmailサーバーを経由して送信するように設定しました。
メールを無事送信することができたのですが、メールのFromの部分が自分のgmailアドレス(example@gmail.com)になっていました。
relay_hostでgmailのサーバーを経由して送信する場合、どのようにしたらFromの部分を元のメールアドレス(aaa@bbb.com)に変更することができますか?
メーラーにはThunderbirdを使用しています。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/05/30 08:49