3

サーバーでSMTP認証エラーが発生し、メールはサーバーSMTPのみを介して送信されます...

サーバーの構成または関連する問題のようですが、よくわかりません。

これはデバッグの詳細です:

250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP

Failed to authenticate password. Error: 535 Incorrect authentication data

from: 250 OK

to: 250 Accepted

data: 354 Enter message, ending with "." on a line by itself

250 OK id=1U8Pjp-0002As-FB

quit: 221 ************** closing connection

Your message has been successfully sent using the following protocol: smtp

私のローカルシステムからテストしている間、これは機能し、電子メールはsendgrid.me経由で送信されています

繰り返しますが、これは SendGrid の問題ではないかもしれませんが、同様の問題に直面したことがある場合は、何が問題なのか教えてください。

CentOs を使用しており、サーバーに cPanel があります。メールサーバーにEXIMを使用していると思います。

4

3 に答える 3

5

将来これに遭遇し、cpanel/whm を使用している場合は、WHM の「SMTP 制限」でこのオプションを「無効」にする必要があります。

于 2016-05-04T13:40:20.303 に答える
1

これで解決できました。

問題は、サーバーが外部 SMTP の使用を許可しておらず、独自の SMTP サーバーを使用していたことです。設定を変更したところ、問題なく動作するようになりました。

于 2013-03-01T03:30:08.237 に答える
0

centos 7 を使用しています。

この問題が発生していました( tail -f /var/log/mailog):

to=<usmanali@example.com>, relay=smtp.sendgrid.net[169.45.113.201]:587, delay=0.3, delays=0.05/0.07/0.16/0.02, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[169.45.113.201] said: 550 Unauthenticated senders not allowed (in reply to MAIL FROM command))

次に/etc/postfix/main.cf、この方法でファイルを変更し、次の行をファイルの最後に追加しました

mtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
mailbox_size_limit = 256000000

# Sendgrid Settings
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:apikey:SG.YOUR_SENDGRID_KEY
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587

次に、次を使用してpostfixの欠落しているモジュールの依存関係をインストールします。

sudo yum install cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain

その後、postfixを再起動します

sudo systemctl restart  postfix.service
于 2019-10-14T16:48:10.303 に答える