ze-filter
(ze-filter-0.8.0-develop-180218)
ze-reply.h
Go to the documentation of this file.
1
/*
2
*
3
* ze-filter - Mail Server Filter for sendmail
4
*
5
* Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6
*
7
* Auteur : Jose Marcio Martins da Cruz
8
* jose.marcio.mc@gmail.org
9
*
10
* Historique :
11
* Creation : janvier 2002
12
*
13
* This program is free software, but with restricted license :
14
*
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
*
20
* More details about ze-filter license can be found at ze-filter
21
* web site : http://foss.jose-marcio.org
22
*/
23
24
25
#ifndef __ZE_REPLY_H
26
27
#include <
ze-reply-local.h
>
28
29
bool
get_reply_msg
(SMFICTX *,
char
*,
char
*,
size_t
,
char
*,
char
*);
30
31
/* Pre-processing */
32
/* Not already done */
33
#if MSG_LANG == LANG_FR
34
#undef MSG_LANG
35
#endif
36
37
/* Not already done */
38
#if MSG_LANG == LANG_DE
39
#undef MSG_LANG
40
#endif
41
42
#if !defined(MSG_LANG)
43
#define MSG_LANG LANG_EN
44
#endif
45
46
47
/* Now, let's go ! */
48
49
/* English language messages */
50
#if MSG_LANG == LANG_EN
51
52
#ifndef MSG_NO_PEER_HOSTNAME
53
#define MSG_NO_PEER_HOSTNAME "*** No peer hostname when connecting"
54
#endif
55
56
#ifndef MSG_XFILE
57
#define MSG_XFILE "*** A suspicious file (executable code) was found in the message !"
58
#endif
59
60
#ifndef MSG_NO_FROM_HEADER
61
#define MSG_NO_FROM_HEADER "No From header field"
62
#endif
63
64
#ifndef MSG_NO_RCPT_HEADER
65
#define MSG_NO_RCPT_HEADER "No To, CC or Bcc header field"
66
#endif
67
68
#ifndef MSG_NO_SUBJECT_HEADER
69
#define MSG_NO_SUBJECT_HEADER "No Subject Header"
70
#endif
71
72
#ifndef MSG_NO_HEADERS
73
#define MSG_NO_HEADERS "No headers at all"
74
#endif
75
76
#ifndef MSG_INTRANET_USER
77
#define MSG_INTRANET_USER "Mail to intranet user from extranet..."
78
#endif
79
80
#ifndef MSG_LOCAL_USER
81
#define MSG_LOCAL_USER "*** %s can receive mail only from local network"
82
#endif
83
84
#ifndef MSG_BINARY_MESSAGE
85
#define MSG_BINARY_MESSAGE "*** Message with binary body !"
86
#endif
87
88
#ifndef MSG_VIRUS
89
#define MSG_VIRUS "*** A virus was detected in your message"
90
#endif
91
92
#ifndef MSG_POLICY
93
#define MSG_POLICY "This message violates our policy"
94
#endif
95
96
#ifndef MSG_TOO_MUCH_RCPT
97
#define MSG_TOO_MUCH_RCPT "Too many recipients for this message"
98
#endif
99
100
#ifndef MSG_RESOLVE_FAIL
101
#define MSG_RESOLVE_FAIL "RESOLVE : SMTP client IP address doesn't resolve"
102
#endif
103
104
#ifndef MSG_RESOLVE_FORGED
105
#define MSG_RESOLVE_FORGED "RESOLVE : SMTP client hostname seems to be forged"
106
#endif
107
108
#ifndef MSG_EMPTY_MSG
109
#define MSG_EMPTY_MSG "Empty or too short message"
110
#endif
111
112
#ifndef MSG_TOO_MUCH_EMPTY
113
#define MSG_TOO_MUCH_EMPTY "Too many empty connections"
114
#endif
115
116
#ifndef MSG_TOO_MUCH_BADRCPT
117
#define MSG_TOO_MUCH_BADRCPT "Too many errors ! Come back later."
118
#endif
119
120
#ifndef MSG_TOO_MUCH_OPEN
121
#define MSG_TOO_MUCH_OPEN "Too many open connections"
122
#endif
123
124
#ifndef MSG_CONN_RATE
125
#define MSG_CONN_RATE "Connection Rate"
126
#endif
127
128
#ifndef MSG_RCPT_RATE
129
#define MSG_RCPT_RATE "Recipient Rate"
130
#endif
131
132
#ifndef MSG_MSG_RATE
133
#define MSG_MSG_RATE "Message Rate"
134
#endif
135
136
#ifndef MSG_TOO_MUCH_MSGS
137
#define MSG_TOO_MUCH_MSGS "Too many messages for this connection"
138
#endif
139
140
#ifndef MSG_SIZE_EXCEED_LIMIT
141
#define MSG_SIZE_EXCEED_LIMIT "Message size exceeds limit allowed in this transaction"
142
#endif
143
144
#ifndef MSG_SINGLE_MESSAGE
145
#define MSG_SINGLE_MESSAGE "Messages per connection limit reached"
146
#endif
147
148
#ifndef MSG_FROM_CONTENTS
149
#define MSG_FROM_CONTENTS "From contents violates site policy"
150
#endif
151
152
#ifndef MSG_SUBJECT_CONTENTS
153
#define MSG_SUBJECT_CONTENTS "Subject contents violates site policy"
154
#endif
155
156
#ifndef MSG_HEADERS_CONTENTS
157
#define MSG_HEADERS_CONTENTS "Header contents violates site policy"
158
#endif
159
160
#ifndef MSG_BODY_CONTENTS
161
#define MSG_BODY_CONTENTS "Sorry, this message is being rejected as it seems to be a spam !"
162
#endif
163
164
#ifndef MSG_HELO_CONTENTS
165
#define MSG_HELO_CONTENTS "HELO contents : strange !!!"
166
#endif
167
168
169
#ifndef MSG_TEXT_NOT_ALLOWED
170
#define MSG_TEXT_NOT_ALLOWED "MESSAGE CONTENTS VIOLATE SITE POLICY"
171
#endif
172
173
174
#ifndef MSG_ENCODED_BODY
175
#define MSG_ENCODED_BODY "We don't accept encoded messages"
176
#endif
177
178
#ifndef MSG_BODY_ENCODED_BINARY
179
#define MSG_BODY_ENCODED_BINARY "No BINARY messages !"
180
#endif
181
182
#ifndef MSG_BODY_ENCODED_BASE64
183
#define MSG_BODY_ENCODED_BASE64 "No BASE 64 messages !"
184
#endif
185
186
#ifndef MSG_BODY_ENCODED_QP
187
#define MSG_BODY_ENCODED_QP "No QUOTED PRINTABLE messages !"
188
#endif
189
190
#ifndef MSG_BAD_NULL_SENDER
191
#define MSG_BAD_NULL_SENDER "Bad NULL sender"
192
#endif
193
194
#ifndef MSG_BADHELO
195
#define MSG_BADHELO "Invalid HELO/EHLO parameter"
196
#endif
197
198
#ifndef MSG_GREYLIST
199
#define MSG_GREYLIST "Greylist is ON !!!"
200
#endif
201
202
#ifndef MSG_SHORT_VIRUS
203
#define MSG_SHORT_VIRUS "*** VIRUS"
204
#endif
205
206
#ifndef MSG_SHORT_ATTACHMENT
207
#define MSG_SHORT_ATTACHMENT "*** ATTACHMENT"
208
#endif
209
210
#ifndef MSG_SHORT_XFILE
211
#define MSG_SHORT_XFILE "*** XFILES"
212
#endif
213
214
#ifndef MSG_SHORT_RESOLVE_FORGED
215
#define MSG_SHORT_RESOLVE_FORGED "*** Client address resolve : forged"
216
#endif
217
218
#ifndef MSG_SHORT_RESOLVE_FAIL
219
#define MSG_SHORT_RESOLVE_FAIL "*** Client address resolve : fail"
220
#endif
221
222
#ifndef MSG_SHORT_CONN_RATE
223
#define MSG_SHORT_CONN_RATE "Connection Rate : too high"
224
#endif
225
226
#ifndef MSG_SHORT_RCPT_RATE
227
#define MSG_SHORT_RCPT_RATE "Recipient Rate : too high"
228
#endif
229
230
#ifndef MSG_SHORT_MSG_RATE
231
#define MSG_SHORT_MSG_RATE "Message Rate : too high"
232
#endif
233
234
#ifndef MSG_SHORT_SINGLE_MESSAGE
235
#define MSG_SHORT_SINGLE_MESSAGE "Messages per connection limit reached"
236
#endif
237
238
#ifndef MSG_SHORT_POLICY
239
#define MSG_SHORT_POLICY "*** POLICY..."
240
#endif
241
242
#ifndef MSG_SHORT_TOO_MUCH_OPEN
243
#define MSG_SHORT_TOO_MUCH_OPEN "Open connections : too high"
244
#endif
245
246
#ifndef MSG_SHORT_TOO_MUCH_EMPTY
247
#define MSG_SHORT_TOO_MUCH_EMPTY "Empty connections : too high : %s : %d [%02X]"
248
#endif
249
250
#ifndef MSG_SHORT_TOO_MUCH_BADRCPT
251
#define MSG_SHORT_TOO_MUCH_BADRCPT "Bad recipients : too high"
252
#endif
253
254
#ifndef MSG_SHORT_SPAMTRAP
255
#define MSG_SHORT_SPAMTRAP "Message to spamtrap"
256
#endif
257
258
#ifndef MSG_SHORT_GREYLIST
259
#define MSG_SHORT_GREYLIST "Message delayed by Greylisting"
260
#endif
261
262
#endif
/* LANG_EN */
263
264
#define __ZE_REPLY_H
265
#endif
get_reply_msg
bool get_reply_msg(SMFICTX *, char *, char *, size_t, char *, char *)
Definition:
ze-reply.c:105
ze-reply-local.h
include
ze-reply.h
Generated by
1.8.13