Block more HTTP request methods
[mgsmtp.git] / RFCSMTP.pas
1 {
2 Copyright (C) 2010 MegaBrutal
3
4 This unit is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This unit is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 }
17
18
19 {$MODE DELPHI}
20
21 unit RFCSMTP;
22
23 interface
24
25 const
26
27 STANDARD_SMTP_PORT = 25;
28
29
30 SMTP_R_READY = 220;
31 SMTP_R_CLOSE = 221;
32 SMTP_R_SERVICE_NA = 421;
33
34 SMTP_R_OK = 250;
35 SMTP_R_USERNOTLOCAL = 251;
36 SMTP_R_CANNOTVERIFY = 252;
37 SMTP_R_MAILBOX_BUSY = 450;
38 SMTP_R_MAILBOX_NA = 550;
39
40 SMTP_R_ABORTED = 451;
41 SMTP_R_TRYFORWARD = 551;
42 SMTP_R_STOR_FULL = 452;
43 SMTP_R_STOR_EXCEEDED = 552;
44 SMTP_R_MB_SYNTAX_ERROR = 553;
45
46 SMTP_R_START_MAIL_INPUT = 354;
47 SMTP_R_TRANS_FAILED = 554;
48
49 SMTP_R_CMD_SYNTAX_ERROR = 500;
50 SMTP_R_PRM_SYNTAX_ERROR = 501;
51 SMTP_R_CMD_NOT_IMPLEMENTED = 502;
52 SMTP_R_BAD_SEQUENCE = 503;
53 SMTP_R_PRM_NOT_IMPLEMENTED = 504;
54
55 SMTP_R_SYSTEM_STATUS = 211;
56 SMTP_R_HELP_MESSAGE = 214;
57
58 SMTP_R_AUTH_MESSAGE = 334;
59 SMTP_R_AUTH_SUCCESSFUL = 235;
60 SMTP_R_AUTH_FAILED = 535;
61
62
63 SMTP_C_EHLO = 'EHLO';
64 SMTP_C_HELO = 'HELO';
65 SMTP_C_RSET = 'RSET';
66 SMTP_C_NOOP = 'NOOP';
67 SMTP_C_QUIT = 'QUIT';
68 SMTP_C_AUTH = 'AUTH';
69
70 SMTP_C_MAIL = 'MAIL';
71 SMTP_C_RCPT = 'RCPT';
72 SMTP_C_DATA = 'DATA';
73 SMTP_C_VRFY = 'VRFY';
74
75
76
77 implementation
78
79
80 end.