s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
smtpdlog.c File Reference
#include <unistd.h>
#include "buffer.h"
#include "str.h"
#include "byte.h"
#include "env.h"
#include "fmt.h"
#include "exit.h"
#include "smtpdlog.h"
Include dependency graph for smtpdlog.c:

Go to the source code of this file.

Macros

#define FDLOG   2
 

Functions

void smtpdlog_init ()
 
void smtp_loga (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *s8, char *s9)
 
void smtp_logb (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void smtp_logg (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void smtp_logh (char *s1, char *s2, char *s3, char *s4, char *s5)
 
void smtp_logi (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *s8)
 
void smtp_logr (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *s8)
 
void die_read ()
 
void die_alarm ()
 
void die_nomem ()
 
void die_control ()
 
void die_ipme ()
 
void die_starttls ()
 
void die_recipients ()
 
void err_unimpl ()
 
void err_syntax ()
 
void err_noop ()
 
void err_vrfy ()
 
void err_qqt ()
 
int err_child ()
 
int err_fork ()
 
int err_pipe ()
 
int err_write ()
 
int err_postgl ()
 
int err_forkgl ()
 
int err_starttls ()
 
void err_tlsreq (char *s1, char *s2, char *s3, char *s4, char *s5)
 
void err_helo (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *s8)
 
void err_authsetup (char *s1, char *s2, char *s3, char *s4, char *s5)
 
void err_authd ()
 
void err_authmail ()
 
void err_authfail (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_authreq (char *s1, char *s2, char *s3, char *s4, char *s5)
 
void err_submission (char *s1, char *s2, char *s3, char *s4, char *s5)
 
int err_authabort ()
 
int err_authinput ()
 
void err_authinvalid (char *s1, char *s2, char *s3, char *s4, char *s5)
 
int err_noauth ()
 
void err_wantmail ()
 
void err_mav (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_bmf (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *s8)
 
void err_mfdns (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_spf (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *msg)
 
void err_wantrcpt ()
 
void postgrey (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_nogateway (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_brt (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_rcpts (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_recipient (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void straynewline ()
 
void err_notorious ()
 
void err_size (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7)
 
void err_data (char *s1, char *s2, char *s3, char *s4, char *s5, char *s6, char *s7, char *s8)
 

Variables

char * reply421pgl
 
char * reply550hlo
 
char * reply550mbx
 
char * reply552siz
 
char * reply553bmf
 
char * reply553brt
 
char * reply553ngw
 
char * reply553env
 
char * reply553inv
 
char * reply554cnt
 
buffer bo2 = BUFFER_INIT(write,FDLOG,logbuf,sizeof(logbuf))
 

Macro Definition Documentation

◆ FDLOG

#define FDLOG   2

Definition at line 9 of file smtpdlog.c.

Function Documentation

◆ die_alarm()

void die_alarm ( void  )

Definition at line 63 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_control()

void die_control ( void  )

Definition at line 65 of file smtpdlog.c.

Here is the call graph for this function:

◆ die_ipme()

void die_ipme ( void  )

Definition at line 66 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_nomem()

void die_nomem ( void  )

Definition at line 64 of file smtpdlog.c.

Here is the call graph for this function:

◆ die_read()

void die_read ( void  )

Definition at line 62 of file smtpdlog.c.

Here is the call graph for this function:

◆ die_recipients()

void die_recipients ( void  )

Definition at line 68 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ die_starttls()

void die_starttls ( void  )

Definition at line 67 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_authabort()

int err_authabort ( void  )

Definition at line 134 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_authd()

void err_authd ( void  )

Definition at line 114 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_authfail()

void err_authfail ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 122 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_authinput()

int err_authinput ( void  )

Definition at line 139 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_authinvalid()

void err_authinvalid ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5 
)

Definition at line 144 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_authmail()

void err_authmail ( void  )

Definition at line 118 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_authreq()

void err_authreq ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5 
)

Definition at line 126 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_authsetup()

void err_authsetup ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5 
)

Definition at line 109 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_bmf()

void err_bmf ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  s8 
)

Definition at line 166 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_brt()

void err_brt ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 223 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_child()

int err_child ( void  )

Definition at line 76 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_data()

void err_data ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  s8 
)

Definition at line 265 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_fork()

int err_fork ( void  )

Definition at line 77 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_forkgl()

int err_forkgl ( void  )

Definition at line 82 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_helo()

void err_helo ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  s8 
)

Definition at line 99 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_mav()

void err_mav ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 159 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_mfdns()

void err_mfdns ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 173 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_noauth()

int err_noauth ( void  )

Definition at line 149 of file smtpdlog.c.

◆ err_nogateway()

void err_nogateway ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 216 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_noop()

void err_noop ( void  )

Definition at line 72 of file smtpdlog.c.

◆ err_notorious()

void err_notorious ( void  )

Definition at line 254 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_pipe()

int err_pipe ( void  )

Definition at line 78 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_postgl()

int err_postgl ( void  )

Definition at line 81 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_qqt()

void err_qqt ( void  )

Definition at line 74 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_rcpts()

void err_rcpts ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 230 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_recipient()

void err_recipient ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 235 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_size()

void err_size ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 260 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_spf()

void err_spf ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  msg 
)

Definition at line 183 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_starttls()

int err_starttls ( void  )

Definition at line 86 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_submission()

void err_submission ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5 
)

Definition at line 130 of file smtpdlog.c.

Here is the call graph for this function:

◆ err_syntax()

void err_syntax ( void  )

Definition at line 71 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_tlsreq()

void err_tlsreq ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5 
)

Definition at line 91 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ err_unimpl()

void err_unimpl ( void  )

Definition at line 70 of file smtpdlog.c.

Here is the call graph for this function:

◆ err_vrfy()

void err_vrfy ( void  )

Definition at line 73 of file smtpdlog.c.

◆ err_wantmail()

void err_wantmail ( void  )

Definition at line 157 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_wantrcpt()

void err_wantrcpt ( void  )

Definition at line 207 of file smtpdlog.c.

Here is the caller graph for this function:

◆ err_write()

int err_write ( void  )

Definition at line 79 of file smtpdlog.c.

Here is the caller graph for this function:

◆ postgrey()

void postgrey ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 209 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtp_loga()

void smtp_loga ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  s8,
char *  s9 
)

Definition at line 49 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtp_logb()

void smtp_logb ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 51 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtp_logg()

void smtp_logg ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7 
)

Definition at line 53 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtp_logh()

void smtp_logh ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5 
)

Definition at line 55 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtp_logi()

void smtp_logi ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  s8 
)

Definition at line 57 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtp_logr()

void smtp_logr ( char *  s1,
char *  s2,
char *  s3,
char *  s4,
char *  s5,
char *  s6,
char *  s7,
char *  s8 
)

Definition at line 59 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smtpdlog_init()

void smtpdlog_init ( void  )

Definition at line 26 of file smtpdlog.c.

Here is the caller graph for this function:

◆ straynewline()

void straynewline ( void  )

Definition at line 248 of file smtpdlog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ bo2

buffer bo2 = BUFFER_INIT(write,FDLOG,logbuf,sizeof(logbuf))

Definition at line 24 of file smtpdlog.c.

◆ reply421pgl

char* reply421pgl

Definition at line 11 of file smtpdlog.c.

◆ reply550hlo

char* reply550hlo

Definition at line 12 of file smtpdlog.c.

◆ reply550mbx

char* reply550mbx

Definition at line 13 of file smtpdlog.c.

◆ reply552siz

char* reply552siz

Definition at line 14 of file smtpdlog.c.

◆ reply553bmf

char* reply553bmf

Definition at line 15 of file smtpdlog.c.

◆ reply553brt

char* reply553brt

Definition at line 16 of file smtpdlog.c.

◆ reply553env

char* reply553env

Definition at line 18 of file smtpdlog.c.

◆ reply553inv

char* reply553inv

Definition at line 19 of file smtpdlog.c.

◆ reply553ngw

char* reply553ngw

Definition at line 17 of file smtpdlog.c.

◆ reply554cnt

char* reply554cnt

Definition at line 20 of file smtpdlog.c.