Qsmtp  0.30dev
Macros | Functions | Variables
commands.h File Reference

function definitions for SMTP command handler functions More...

#include <sys/types.h>

Go to the source code of this file.

Macros

#define MAXRCPT   500
 

Functions

int smtp_noop (void)
 
int smtp_quit (void)
 
int smtp_rset (void)
 
int smtp_helo (void)
 
int smtp_ehlo (void)
 
int smtp_from (void)
 
int smtp_rcpt (void)
 
int smtp_vrfy (void)
 
int http_post (void)
 

Variables

char * rcpthosts
 
off_t rcpthsize
 
unsigned int rcptcount
 

Detailed Description

function definitions for SMTP command handler functions

Handler functions may also be defined elsewhere, e.g. in qsdata.h.

Macro Definition Documentation

#define MAXRCPT   500

maximum number of recipients in a single mail

Function Documentation

int http_post ( void  )

http_post - handle HTTP POST request

This has nothing to do with SMTP at all. But I have seen many proxy attempts trying to send spam and beginning the connection with a sequence like this:

POST / HTTP/1.0 Via: 1.0 SERVEUR Host: mail.sf-mail.de:25 Content-Length: 1255 Content-Type: text/plain Connection: Keep-Alive

RSET

This function is only there to handle this connections and drop them as early as possible to save our traffic.

Variable Documentation

unsigned int rcptcount

number of recipients in lists including rejected

char* rcpthosts

memory mapping of control/rcpthosts

off_t rcpthsize

sizeof("control/rcpthosts")