File size: 3,500 Bytes
c3edc81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
  "states": [
    "Connection Established",
    "Greeted",
    "Mail Transaction Started",
    "Recipient Specified",
    "Data Entry",
    "Message Accepted",
    "Session Terminated"
  ],
  "initial_state": "Connection Established",
  "final_states": [
    "Session Terminated"
  ],
  "transitions": [
    {
      "from": "Connection Established",
      "event": "receive EHLO or HELO after 220 greeting",
      "action": "send HELO",
      "to": "Greeted"
    },
    {
      "from": "Greeted",
      "event": "receive MAIL FROM",
      "action": "send MAIL FROM",
      "to": "Mail Transaction Started"
    },
    {
      "from": "Mail Transaction Started",
      "event": "receive RCPT TO",
      "action": "send RCPT TO",
      "to": "Recipient Specified"
    },
    {
      "from": "Recipient Specified",
      "event": "receive DATA",
      "action": "send DATA 354",
      "to": "Data Entry"
    },
    {
      "from": "Data Entry",
      "event": "cond message ended with <CRLF>.<CRLF>",
      "action": "send message body",
      "to": "Message Accepted"
    },
    {
      "from": "Message Accepted",
      "event": "receive QUIT",
      "action": "send QUIT",
      "to": "Session Terminated"
    },
    {
      "from": "Greeted",
      "event": "receive RSET",
      "action": "send RSET",
      "to": "Greeted"
    },
    {
      "from": "Mail Transaction Started",
      "event": "receive RSET",
      "action": "send RSET",
      "to": "Greeted"
    },
    {
      "from": "Recipient Specified",
      "event": "receive RSET",
      "action": "send RSET",
      "to": "Greeted"
    },
    {
      "from": "Data Entry",
      "event": "receive RSET before message is complete",
      "action": "send RSET",
      "to": "Greeted"
    },
    {
      "from": "Message Accepted",
      "event": "receive RSET",
      "action": "send RSET",
      "to": "Greeted"
    },
    {
      "from": "Greeted",
      "event": "receive VRFY",
      "action": "send VRFY",
      "to": "Greeted"
    },
    {
      "from": "Greeted",
      "event": "receive EXPN",
      "action": "send EXPN; reply 250",
      "to": "Greeted"
    },
    {
      "from": "Mail Transaction Started",
      "event": "receive VRFY or EXPN",
      "action": "send VRFY; send EXPN",
      "to": "Mail Transaction Started"
    },
    {
      "from": "Recipient Specified",
      "event": "receive VRFY or EXPN",
      "action": "send VRFY; send EXPN",
      "to": "Recipient Specified"
    },
    {
      "from": "Data Entry",
      "event": "receive VRFY or EXPN",
      "action": "send VRFY; send EXPN",
      "to": "Data Entry"
    },
    {
      "from": "Message Accepted",
      "event": "receive VRFY or EXPN",
      "action": "send VRFY; send EXPN",
      "to": "Message Accepted"
    },
    {
      "from": "Connection Established",
      "event": "receive QUIT",
      "action": "send QUIT",
      "to": "Session Terminated"
    },
    {
      "from": "Greeted",
      "event": "receive QUIT",
      "action": "send QUIT",
      "to": "Session Terminated"
    },
    {
      "from": "Mail Transaction Started",
      "event": "receive QUIT",
      "action": "send QUIT",
      "to": "Session Terminated"
    },
    {
      "from": "Recipient Specified",
      "event": "receive QUIT",
      "action": "send QUIT",
      "to": "Session Terminated"
    },
    {
      "from": "Data Entry",
      "event": "receive QUIT before finishing data",
      "action": "send QUIT",
      "to": "Session Terminated"
    }
  ]
}