トップページLinux
1002コメント370KB

初心者の質問相談にやさしく答えるスレ Part13

■ このスレッドは過去ログ倉庫に格納されています
0001login:Penguin
垢版 |
2020/06/06(土) 19:11:33.61ID:4rD1yaWC
聞き方が悪いから教えない、
とか、「俺は教育的目的から、わざと全部は教えないことにしている」
などという、下記スレに巣食っているロートルはお断り。

初心者に優しく応えようとする気のある人が、
今となってはバカバカしく思えるような質問相談にも優しく答えるスレです。

オススメLinuxディストリビューションは? Part77
https://mao.5ch.net/test/read.cgi/linux/1585131003/

【初心者】Ubuntu Linux 128【本スレ】
https://mao.5ch.net/test/read.cgi/linux/1588073533/


前スレ
初心者の質問相談にやさしく答えるスレ Part12
https://mao.5ch.net/test/read.cgi/linux/1559314687/


 禁止事項
・トリを使おうとしている質問者に対して、そんなトリはやめろとかという、斜め上からのアドバイス
・質問者そっちのけでの昔語り(昔はもっと苦労したもんだ、今の若い者は…)
・知らないのに、使ったことないのに、知ったかぶりでの書き込み
・ググれという誰でも言えそうな忠告
・俺は知ってるけど言わない等といった、実社会での扱われ方からの僻みから来る
・意地悪な言辞
0472login:Penguin
垢版 |
2021/06/28(月) 22:05:57.39ID:wwq99Pnx
メールサーバーを構築しています
構築したサーバーからgmailにメールを送信させようとしたのですがどうしても530 5.7.0 Authentication requiredのエラーが出力されてしまい、失敗してしまいます。
ローカル同士でのメールの送受信は出来ていることは確認済みです。
原因が分かる方がいましたら教えてください。
ちなみに設定は以下のようになっております。
・/etc/postfix/main.cfの設定(デフォルトのものは省いてます)
[root@hama01 ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
luser_relay = unknown_user@localhost
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = xxxx.xxxx(ドメイン名を伏せる為)
myhostname = xxxx.xxxx.xxxx(ホスト名を伏せる為)
mynetworks = xxx.xxx.xxx.xxx/24,64.233.187.109
myorigin = $mydomain
relayhost = [smtp.gmail.com]:587
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP unknown
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt
smtpd_tls_key_file = /etc/pki/tls/certs/server.key
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_use_tls = yes
続きます
0473login:Penguin
垢版 |
2021/06/28(月) 22:10:46.58ID:wwq99Pnx
続きです
・/etc/postfix/master.cfの設定(コメントを外した個所のみ記載)
smtp inet n - n - - smtpd
submission inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
smtps inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
・/etc/postfix/sasl_passwd
[smtp.gmail.com]:587 xxx.xxx@gmail.com:xxxxxxx(メールアドレスとパスワードを伏せる為)
メール送信コマンド
echo test | mail xxx.xxx@gmail.com

続きます
0474login:Penguin
垢版 |
2021/06/28(月) 22:13:21.56ID:wwq99Pnx
続きです
出力ログ
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 https://support.google.com/mail/?p=WantAuthError 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
Jun 28 21:58:56 localhost postfix/qmgr[2276]: 25E08110EB29: removed
Jun 28 21:58:56 localhost postfix/local[2317]: 70039110EB2A: to=<root@xxxx.xxxx>, relay=local, delay=0.11, delays=0/0.08/0/0.03, dsn=2.0.0, status=sent (delivered to maildir)
Jun 28 21:58:56 localhost postfix/qmgr[2276]: 70039110EB2A: removed

今更ですが環境はRedHatEnterprise Linux7.7です。
RedHatEnterprise Linuxスレにも質問を投稿しております。
分かる方がいらっしゃましたらよろしくお願いいたします。
■ このスレッドは過去ログ倉庫に格納されています

ニューススポーツなんでも実況