Red Hat Enterprise Linux スレッド part 27 (748レス)
上下前次1-新
503: 2021/06/28(月)22:16 ID:wwq99Pnx(3/3) AAS
続きです
出力ログ
tail -f /var/log/maillog
Jun 28 21:58:54 localhost postfix/pickup[2275]: 25E08110EB29: uid=0 from=<root>
Jun 28 21:58:54 localhost postfix/cleanup[2312]: 25E08110EB29: message-id=<20210628125854.25E08110EB29@xxxx.xxxx.xxxx>
Jun 28 21:58:54 localhost postfix/qmgr[2276]: 25E08110EB29: from=<root@xxxx.xxxx size=426, nrcpt=1 (queue active)
Jun 28 21:58:56 localhost postfix/smtp[2314]: 25E08110EB29: to=<xxx.xxx@gmail.com relay=smtp.gmail.com[64.233.187.108]:587, delay=2.1, delays=0.07/0.13/1.8/0.17, dsn=5.7.0, status=bounced (host smtp.gmail.com[64.233.187.108] said: 530-5.7.0 Authentication Required. Learn more at 530 5.7.0 外部リンク:support.google.com j22sm14625557pgb.62 - gsmtp (in reply to MAIL FROM command))
Jun 28 21:58:56 localhost postfix/cleanup[2312]: 70039110EB2A: message-id=<20210628125856.70039110EB2A@xxxx.xxxx.xxxx>
Jun 28 21:58:56 localhost postfix/qmgr[2276]: 70039110EB2A: from=< size=2551, nrcpt=1 (queue active)
Jun 28 21:58:56 localhost postfix/bounce[2316]: 25E08110EB29: sender non-delivery notification: 70039110EB2A
省4
504(1): 2021/06/28(月)22:27 ID:FltiT7Vr(1/2) AAS
AUTH の前に MAIL FROM なので、smtp_sasl_password_maps が効いていないようです。
postmap /etc/postfix/sasl_passwd で /etc/postfix/sasl_passwd.db ファイルを更新していますか?
505: 2021/06/28(月)22:30 ID:FltiT7Vr(2/2) AAS
あと、smtp_sasl_auth_enable = yes が必要
506: 2021/06/28(月)22:58 ID:d20rwlAY(1) AAS
メールぐらい、AWS で出来ないの?
507: 2021/06/29(火)02:26 ID:WjFSCwcD(1/2) AAS
意外と面倒
508(1): 2021/06/29(火)14:14 ID:dqlwyjGL(1/5) AAS
>>504
ありがとうございました。
上に記載していることを実施したもののやはりできませんでした。
その時のログはこのようになっておりました。
Jun 29 14:06:46 localhost postfix/pickup[3368]: 3BF3C110E8C1: uid=0 from=<root>
Jun 29 14:06:46 localhost postfix/cleanup[3413]: 3BF3C110E8C1: message-id=<20210629050646.3BF3C110E8C1@xxx.xxx.xxx>
Jun 29 14:06:46 localhost postfix/qmgr[3369]: 3BF3C110E8C1: from=<root@xxx.xxx size=426, nrcpt=1 (queue active)
Jun 29 14:06:47 localhost postfix/smtp[3415]: warning: SASL authentication failure: No worthy mechs found
Jun 29 14:06:47 localhost postfix/smtp[3415]: 3BF3C110E8C1: to=< xxx.xxx@gmail.com relay=smtp.gmail.com[74.125.203.108]:587, delay=0.92, delays=0.02/0.02/0.88/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.gmail.com[74.125.203.108]: no mechanism available)
続きます。
509(1): 2021/06/29(火)14:18 ID:dqlwyjGL(2/5) AAS
また、修正したのは/etc/postfix/main.cfのみで設定は以下のようになっております。
任意で変更している個所のみ記載しております。
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
luser_relay = unknown_user@localhost
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
省18
510(2): 2021/06/29(火)14:33 ID:plOrd5TP(1) AAS
というか、何でGmailのサーバにリレーさせようとしてるの?
自組織かISP指定でもない限りrelayhostは空白でいいんじゃないかと思うけど…
511(1): 2021/06/29(火)14:39 ID:I0AulMzE(1) AAS
>>510
今時、野良SMTPサーバーからのメールを受け取るメールサーバーも、
送信を許可するISPも希少だよ。
自宅サーバーからメール送ろうとすると、
何かしらのリレーが必要になる。
普通はISP指定のSMTPサーバーを使うと思うけど
512: 2021/06/29(火)16:15 ID:dqlwyjGL(3/5) AAS
>>510>>511
508>>509です
単純に学習のためにやっているだけです。
申し訳ありません
513(1): 2021/06/29(火)18:14 ID:WjFSCwcD(2/2) AAS
自鯖から独自ドメインのメール出すならSPFとDMARCは必須だな
514(1): 2021/06/29(火)18:59 ID:XQXzTd/y(1/2) AAS
>>508
No worthy mechs found で検索すると、cyrus-sasl-plain, cyrus-sasl-md5 あたりのパッケージが入っていないため、とのこと。
515(1): 2021/06/29(火)19:32 ID:dqlwyjGL(4/5) AAS
>>513
ありがとうございます
そちらの方でも設定を変えてみようと思います。
>>514
確認したところどちらも導入済みでした。
yum list installed | grep cyrus*
cyrus-sasl.x86_64 2.1.26-23.el7 @anaconda
cyrus-sasl-gssapi.x86_64 2.1.26-23.el7 @anaconda
cyrus-sasl-lib.x86_64 2.1.26-23.el7 @anaconda
cyrus-sasl-md5.x86_64 2.1.26-23.el7 @anaconda
省2
516(1): 2021/06/29(火)20:06 ID:XQXzTd/y(2/2) AAS
>>515
smtp_sasl_mechanism_filter = plain を削除するとどうでしょうか?
517(2): 2021/06/29(火)20:08 ID:99uJZIHu(1) AAS
smtp_sasl_security_options
がないからfilterでplainが選ばれても、平文での認証が拒否されてるとか?
518: 2021/06/29(火)21:47 ID:dqlwyjGL(5/5) AAS
>>516>>517
返信ありがとうございます。
517のご指摘にありましたsmtp_sasl_security_optionsを設定したところ送信できました。
ありがとうございました。
519(1): 2021/06/30(水)22:31 ID:j5ldUXgH(1) AAS
UEFIでソフトウェアRAID1を構築する場合/boot/efiというEFIパーティションも
RAIDにするべきでしょうか?
520: 2021/06/30(水)23:07 ID:OksriK9o(1) AAS
>>519
できるの?
やったことないけど。
521(1): 2021/06/30(水)23:50 ID:FIti03kw(1) AAS
外部リンク:access.redhat.com
522: 2021/07/01(木)12:51 ID:pV2vTYRQ(1/2) AAS
EFIパーティションをソフトウェアRAIDのマルチデバイス上に置くのは非推奨でしょ
上下前次1-新書関写板覧索設栞歴
あと 226 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.020s