Wednesday, August 12, 2020

Testing if Postfix MTA on Centos 8 is working on localhost

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[root@thermalite siteconfig]# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 thermalite.localdomain ESMTP Postfix
ehlo thermalite.localdomain
250-thermalite.localdomain
250-PIPELINING
250-SIZE 1024000000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 SMTPUTF8
MAIL FROM: bills@thermalite.localdomain
250 2.1.0 Ok
RCPT TO: o2bot@thermalite.localdomain
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Hello postfix

This is a test email using postfix MTA
.
250 2.0.0 Ok: queued as 47A074112F1B
quit
221 2.0.0 Bye
Connection closed by foreign host.

[root@thermalite siteconfig]# ls -l /var/mail/
bills  malex  o2bot  root   rpc
[root@thermalite siteconfig]# ls -l /var/mail/o2bot
-rw-rw----. 1 o2bot mail 600 Aug 12 17:03 /var/mail/o2bot
[root@thermalite siteconfig]# cat /var/mail/o2bot
From bills@thermalite.localdomain  Wed Aug 12 17:03:39 2020
Return-Path: <bills@thermalite.localdomain>
X-Original-To: o2bot@thermalite.localdomain
Delivered-To: o2bot@thermalite.localdomain
Received: from thermalite.localdomain (thermalite [IPv6:::1])
        by thermalite.localdomain (Postfix) with ESMTP id 47A074112F1B
        for <o2bot@thermalite.localdomain>; Wed, 12 Aug 2020 17:01:56 -0400 (EDT)
Subject: Hello postfix
Message-Id: <20200812210233.47A074112F1B@thermalite.localdomain>
Date: Wed, 12 Aug 2020 17:01:56 -0400 (EDT)
From: bills@thermalite.localdomain

This is a test email using postfix MTA

[root@thermalite siteconfig]# 

No comments:

Post a Comment