ze-filter  (ze-filter-0.8.0-develop-180218)
ze-reply.h File Reference
#include <ze-reply-local.h>

Go to the source code of this file.

Macros

#define MSG_LANG   LANG_EN
 
#define MSG_NO_PEER_HOSTNAME   "*** No peer hostname when connecting"
 
#define MSG_XFILE   "*** A suspicious file (executable code) was found in the message !"
 
#define MSG_NO_FROM_HEADER   "No From header field"
 
#define MSG_NO_RCPT_HEADER   "No To, CC or Bcc header field"
 
#define MSG_NO_SUBJECT_HEADER   "No Subject Header"
 
#define MSG_NO_HEADERS   "No headers at all"
 
#define MSG_INTRANET_USER   "Mail to intranet user from extranet..."
 
#define MSG_LOCAL_USER   "*** %s can receive mail only from local network"
 
#define MSG_BINARY_MESSAGE   "*** Message with binary body !"
 
#define MSG_VIRUS   "*** A virus was detected in your message"
 
#define MSG_POLICY   "This message violates our policy"
 
#define MSG_TOO_MUCH_RCPT   "Too many recipients for this message"
 
#define MSG_RESOLVE_FAIL   "RESOLVE : SMTP client IP address doesn't resolve"
 
#define MSG_RESOLVE_FORGED   "RESOLVE : SMTP client hostname seems to be forged"
 
#define MSG_EMPTY_MSG   "Empty or too short message"
 
#define MSG_TOO_MUCH_EMPTY   "Too many empty connections"
 
#define MSG_TOO_MUCH_BADRCPT   "Too many errors ! Come back later."
 
#define MSG_TOO_MUCH_OPEN   "Too many open connections"
 
#define MSG_CONN_RATE   "Connection Rate"
 
#define MSG_RCPT_RATE   "Recipient Rate"
 
#define MSG_MSG_RATE   "Message Rate"
 
#define MSG_TOO_MUCH_MSGS   "Too many messages for this connection"
 
#define MSG_SIZE_EXCEED_LIMIT   "Message size exceeds limit allowed in this transaction"
 
#define MSG_SINGLE_MESSAGE   "Messages per connection limit reached"
 
#define MSG_FROM_CONTENTS   "From contents violates site policy"
 
#define MSG_SUBJECT_CONTENTS   "Subject contents violates site policy"
 
#define MSG_HEADERS_CONTENTS   "Header contents violates site policy"
 
#define MSG_BODY_CONTENTS   "Sorry, this message is being rejected as it seems to be a spam !"
 
#define MSG_HELO_CONTENTS   "HELO contents : strange !!!"
 
#define MSG_TEXT_NOT_ALLOWED   "MESSAGE CONTENTS VIOLATE SITE POLICY"
 
#define MSG_ENCODED_BODY   "We don't accept encoded messages"
 
#define MSG_BODY_ENCODED_BINARY   "No BINARY messages !"
 
#define MSG_BODY_ENCODED_BASE64   "No BASE 64 messages !"
 
#define MSG_BODY_ENCODED_QP   "No QUOTED PRINTABLE messages !"
 
#define MSG_BAD_NULL_SENDER   "Bad NULL sender"
 
#define MSG_BADHELO   "Invalid HELO/EHLO parameter"
 
#define MSG_GREYLIST   "Greylist is ON !!!"
 
#define MSG_SHORT_VIRUS   "*** VIRUS"
 
#define MSG_SHORT_ATTACHMENT   "*** ATTACHMENT"
 
#define MSG_SHORT_XFILE   "*** XFILES"
 
#define MSG_SHORT_RESOLVE_FORGED   "*** Client address resolve : forged"
 
#define MSG_SHORT_RESOLVE_FAIL   "*** Client address resolve : fail"
 
#define MSG_SHORT_CONN_RATE   "Connection Rate : too high"
 
#define MSG_SHORT_RCPT_RATE   "Recipient Rate : too high"
 
#define MSG_SHORT_MSG_RATE   "Message Rate : too high"
 
#define MSG_SHORT_SINGLE_MESSAGE   "Messages per connection limit reached"
 
#define MSG_SHORT_POLICY   "*** POLICY..."
 
#define MSG_SHORT_TOO_MUCH_OPEN   "Open connections : too high"
 
#define MSG_SHORT_TOO_MUCH_EMPTY   "Empty connections : too high : %s : %d [%02X]"
 
#define MSG_SHORT_TOO_MUCH_BADRCPT   "Bad recipients : too high"
 
#define MSG_SHORT_SPAMTRAP   "Message to spamtrap"
 
#define MSG_SHORT_GREYLIST   "Message delayed by Greylisting"
 
#define __ZE_REPLY_H
 

Functions

bool get_reply_msg (SMFICTX *, char *, char *, size_t, char *, char *)
 

Macro Definition Documentation

◆ __ZE_REPLY_H

#define __ZE_REPLY_H

Definition at line 264 of file ze-reply.h.

◆ MSG_BAD_NULL_SENDER

#define MSG_BAD_NULL_SENDER   "Bad NULL sender"

Definition at line 191 of file ze-reply.h.

◆ MSG_BADHELO

#define MSG_BADHELO   "Invalid HELO/EHLO parameter"

Definition at line 195 of file ze-reply.h.

◆ MSG_BINARY_MESSAGE

#define MSG_BINARY_MESSAGE   "*** Message with binary body !"

Definition at line 85 of file ze-reply.h.

◆ MSG_BODY_CONTENTS

#define MSG_BODY_CONTENTS   "Sorry, this message is being rejected as it seems to be a spam !"

Definition at line 161 of file ze-reply.h.

◆ MSG_BODY_ENCODED_BASE64

#define MSG_BODY_ENCODED_BASE64   "No BASE 64 messages !"

Definition at line 183 of file ze-reply.h.

◆ MSG_BODY_ENCODED_BINARY

#define MSG_BODY_ENCODED_BINARY   "No BINARY messages !"

Definition at line 179 of file ze-reply.h.

◆ MSG_BODY_ENCODED_QP

#define MSG_BODY_ENCODED_QP   "No QUOTED PRINTABLE messages !"

Definition at line 187 of file ze-reply.h.

◆ MSG_CONN_RATE

#define MSG_CONN_RATE   "Connection Rate"

Definition at line 125 of file ze-reply.h.

◆ MSG_EMPTY_MSG

#define MSG_EMPTY_MSG   "Empty or too short message"

Definition at line 109 of file ze-reply.h.

◆ MSG_ENCODED_BODY

#define MSG_ENCODED_BODY   "We don't accept encoded messages"

Definition at line 175 of file ze-reply.h.

◆ MSG_FROM_CONTENTS

#define MSG_FROM_CONTENTS   "From contents violates site policy"

Definition at line 149 of file ze-reply.h.

◆ MSG_GREYLIST

#define MSG_GREYLIST   "Greylist is ON !!!"

Definition at line 199 of file ze-reply.h.

◆ MSG_HEADERS_CONTENTS

#define MSG_HEADERS_CONTENTS   "Header contents violates site policy"

Definition at line 157 of file ze-reply.h.

◆ MSG_HELO_CONTENTS

#define MSG_HELO_CONTENTS   "HELO contents : strange !!!"

Definition at line 165 of file ze-reply.h.

◆ MSG_INTRANET_USER

#define MSG_INTRANET_USER   "Mail to intranet user from extranet..."

Definition at line 77 of file ze-reply.h.

◆ MSG_LANG

#define MSG_LANG   LANG_EN

Definition at line 43 of file ze-reply.h.

◆ MSG_LOCAL_USER

#define MSG_LOCAL_USER   "*** %s can receive mail only from local network"

Definition at line 81 of file ze-reply.h.

◆ MSG_MSG_RATE

#define MSG_MSG_RATE   "Message Rate"

Definition at line 133 of file ze-reply.h.

◆ MSG_NO_FROM_HEADER

#define MSG_NO_FROM_HEADER   "No From header field"

Definition at line 61 of file ze-reply.h.

◆ MSG_NO_HEADERS

#define MSG_NO_HEADERS   "No headers at all"

Definition at line 73 of file ze-reply.h.

◆ MSG_NO_PEER_HOSTNAME

#define MSG_NO_PEER_HOSTNAME   "*** No peer hostname when connecting"

Definition at line 53 of file ze-reply.h.

◆ MSG_NO_RCPT_HEADER

#define MSG_NO_RCPT_HEADER   "No To, CC or Bcc header field"

Definition at line 65 of file ze-reply.h.

◆ MSG_NO_SUBJECT_HEADER

#define MSG_NO_SUBJECT_HEADER   "No Subject Header"

Definition at line 69 of file ze-reply.h.

◆ MSG_POLICY

#define MSG_POLICY   "This message violates our policy"

Definition at line 93 of file ze-reply.h.

◆ MSG_RCPT_RATE

#define MSG_RCPT_RATE   "Recipient Rate"

Definition at line 129 of file ze-reply.h.

◆ MSG_RESOLVE_FAIL

#define MSG_RESOLVE_FAIL   "RESOLVE : SMTP client IP address doesn't resolve"

Definition at line 101 of file ze-reply.h.

◆ MSG_RESOLVE_FORGED

#define MSG_RESOLVE_FORGED   "RESOLVE : SMTP client hostname seems to be forged"

Definition at line 105 of file ze-reply.h.

◆ MSG_SHORT_ATTACHMENT

#define MSG_SHORT_ATTACHMENT   "*** ATTACHMENT"

Definition at line 207 of file ze-reply.h.

◆ MSG_SHORT_CONN_RATE

#define MSG_SHORT_CONN_RATE   "Connection Rate : too high"

Definition at line 223 of file ze-reply.h.

◆ MSG_SHORT_GREYLIST

#define MSG_SHORT_GREYLIST   "Message delayed by Greylisting"

Definition at line 259 of file ze-reply.h.

◆ MSG_SHORT_MSG_RATE

#define MSG_SHORT_MSG_RATE   "Message Rate : too high"

Definition at line 231 of file ze-reply.h.

◆ MSG_SHORT_POLICY

#define MSG_SHORT_POLICY   "*** POLICY..."

Definition at line 239 of file ze-reply.h.

◆ MSG_SHORT_RCPT_RATE

#define MSG_SHORT_RCPT_RATE   "Recipient Rate : too high"

Definition at line 227 of file ze-reply.h.

◆ MSG_SHORT_RESOLVE_FAIL

#define MSG_SHORT_RESOLVE_FAIL   "*** Client address resolve : fail"

Definition at line 219 of file ze-reply.h.

◆ MSG_SHORT_RESOLVE_FORGED

#define MSG_SHORT_RESOLVE_FORGED   "*** Client address resolve : forged"

Definition at line 215 of file ze-reply.h.

◆ MSG_SHORT_SINGLE_MESSAGE

#define MSG_SHORT_SINGLE_MESSAGE   "Messages per connection limit reached"

Definition at line 235 of file ze-reply.h.

◆ MSG_SHORT_SPAMTRAP

#define MSG_SHORT_SPAMTRAP   "Message to spamtrap"

Definition at line 255 of file ze-reply.h.

◆ MSG_SHORT_TOO_MUCH_BADRCPT

#define MSG_SHORT_TOO_MUCH_BADRCPT   "Bad recipients : too high"

Definition at line 251 of file ze-reply.h.

◆ MSG_SHORT_TOO_MUCH_EMPTY

#define MSG_SHORT_TOO_MUCH_EMPTY   "Empty connections : too high : %s : %d [%02X]"

Definition at line 247 of file ze-reply.h.

◆ MSG_SHORT_TOO_MUCH_OPEN

#define MSG_SHORT_TOO_MUCH_OPEN   "Open connections : too high"

Definition at line 243 of file ze-reply.h.

◆ MSG_SHORT_VIRUS

#define MSG_SHORT_VIRUS   "*** VIRUS"

Definition at line 203 of file ze-reply.h.

◆ MSG_SHORT_XFILE

#define MSG_SHORT_XFILE   "*** XFILES"

Definition at line 211 of file ze-reply.h.

◆ MSG_SINGLE_MESSAGE

#define MSG_SINGLE_MESSAGE   "Messages per connection limit reached"

Definition at line 145 of file ze-reply.h.

◆ MSG_SIZE_EXCEED_LIMIT

#define MSG_SIZE_EXCEED_LIMIT   "Message size exceeds limit allowed in this transaction"

Definition at line 141 of file ze-reply.h.

◆ MSG_SUBJECT_CONTENTS

#define MSG_SUBJECT_CONTENTS   "Subject contents violates site policy"

Definition at line 153 of file ze-reply.h.

◆ MSG_TEXT_NOT_ALLOWED

#define MSG_TEXT_NOT_ALLOWED   "MESSAGE CONTENTS VIOLATE SITE POLICY"

Definition at line 170 of file ze-reply.h.

◆ MSG_TOO_MUCH_BADRCPT

#define MSG_TOO_MUCH_BADRCPT   "Too many errors ! Come back later."

Definition at line 117 of file ze-reply.h.

◆ MSG_TOO_MUCH_EMPTY

#define MSG_TOO_MUCH_EMPTY   "Too many empty connections"

Definition at line 113 of file ze-reply.h.

◆ MSG_TOO_MUCH_MSGS

#define MSG_TOO_MUCH_MSGS   "Too many messages for this connection"

Definition at line 137 of file ze-reply.h.

◆ MSG_TOO_MUCH_OPEN

#define MSG_TOO_MUCH_OPEN   "Too many open connections"

Definition at line 121 of file ze-reply.h.

◆ MSG_TOO_MUCH_RCPT

#define MSG_TOO_MUCH_RCPT   "Too many recipients for this message"

Definition at line 97 of file ze-reply.h.

◆ MSG_VIRUS

#define MSG_VIRUS   "*** A virus was detected in your message"

Definition at line 89 of file ze-reply.h.

◆ MSG_XFILE

#define MSG_XFILE   "*** A suspicious file (executable code) was found in the message !"

Definition at line 57 of file ze-reply.h.

Function Documentation

◆ get_reply_msg()

bool get_reply_msg ( SMFICTX *  ,
char *  ,
char *  ,
size_t  ,
char *  ,
char *   
)

Definition at line 105 of file ze-reply.c.