0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

メールの疎通確認するときに役に立ったことまとめ

Posted at

メール系の確認方法が乗っているサイトが古くて見つけられなくなりそうなので備忘としてメモ

シンプルなメールの確認方法

mailxなどをサーバーにインストールして確認する。

$ yum install mailx

以下コピペして確認

$ echo “test” | mail -s $Subject -S $SMTP_Server -r $From_Address $To_Address

telnetから直接アクセスして確認する場合

telnetコマンドでipまたはドメインと25番ポートを指定してアクセスする。

$ telnet xxx.xxx.xxx.xxx 25

Resolving host xxx.xxx.xxx.xxx  . . . done.
Connecting to xxx.xxx.xxx.xxx  . . . connected.
220 mail.example.com ESMTP Postfix
>>> HELO test.example.com
250 mail.example.com
>>> MAIL FROM:<from@example.com>
250 2.1.0 Ok
>>> RCPT TO:<to@example.com>
250 2.1.5 Ok
>>> DATA
354 End data with <CR><LF>.<CR><LF>
>>> .
250 2.0.0 Ok: queued as E44xxxxxxx
>>> QUIT
221 2.0.0 Bye

参考URL

mailコマンドでSMTPサーバを指定してメール送信する方法 | ぴぐろぐ
Telnet を使用して SMTP 通信をテストする: Exchange 2013 のヘルプ | Microsoft Docs

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?