s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-qmtpd.c File Reference

requires sslserver More...

#include <unistd.h>
#include "stralloc.h"
#include "buffer.h"
#include "qmail.h"
#include "now.h"
#include "str.h"
#include "fmt.h"
#include "env.h"
#include "sig.h"
#include "case.h"
#include "exit.h"
#include "scan.h"
#include "rcpthosts.h"
#include "auto_qmail.h"
#include "control.h"
#include "received.h"
#include "ip.h"
#include "byte.h"
Include dependency graph for qmail-qmtpd.c:

Go to the source code of this file.

Macros

#define PORT_QMTP   "209"
 
#define PORT_QMTPS   "6209"
 

Functions

void badproto ()
 
void resources ()
 
ssize_t safewrite (int fd, char *buf, int len)
 
ssize_t saferead (int fd, char *buf, int len)
 
unsigned long getlen ()
 
void getcomma ()
 
int modssl_info ()
 
int main ()
 

Variables

char outbuf [256]
 
buffer bo = BUFFER_INIT(safewrite,1,outbuf,sizeof(outbuf))
 
char inbuf [512]
 
buffer bi = BUFFER_INIT(saferead,0,inbuf,sizeof(inbuf))
 
unsigned int databytes = 0
 
unsigned int bytestooverflow = 0
 
struct qmail qq
 
char buf [1000]
 
char buf2 [100]
 
char * remotehost
 
char * remoteinfo
 
char * remoteip
 
char * localport
 
char * local
 
stralloc failure = {0}
 
stralloc protocol = {0}
 
stralloc tlsinfo = {0}
 
char * relayclient
 
int relayclientlen = 0
 
char * ucspitls
 
char * tlsversion
 
char * cipher
 
char * cipherperm
 
char * cipherused
 
char * clientdn
 
char * clientcn
 
char * dnemail
 
int seentls = 0
 

Detailed Description

requires sslserver

-- QMTP/QMTPS server

Definition in file qmail-qmtpd.c.

Macro Definition Documentation

◆ PORT_QMTP

#define PORT_QMTP   "209"

Definition at line 20 of file qmail-qmtpd.c.

◆ PORT_QMTPS

#define PORT_QMTPS   "6209"

Definition at line 21 of file qmail-qmtpd.c.

Function Documentation

◆ badproto()

void badproto ( )

Definition at line 26 of file qmail-qmtpd.c.

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

◆ getcomma()

void getcomma ( )

Definition at line 65 of file qmail-qmtpd.c.

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

◆ getlen()

unsigned long getlen ( )

Definition at line 52 of file qmail-qmtpd.c.

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

◆ main()

int main ( void  )

Definition at line 145 of file qmail-qmtpd.c.

Here is the call graph for this function:

◆ modssl_info()

int modssl_info ( )

Definition at line 103 of file qmail-qmtpd.c.

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

◆ resources()

void resources ( )

Definition at line 27 of file qmail-qmtpd.c.

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

◆ saferead()

ssize_t saferead ( int  fd,
char *  buf,
int  len 
)

Definition at line 40 of file qmail-qmtpd.c.

Here is the call graph for this function:

◆ safewrite()

ssize_t safewrite ( int  fd,
char *  buf,
int  len 
)

Definition at line 29 of file qmail-qmtpd.c.

Here is the call graph for this function:

Variable Documentation

◆ bi

buffer bi = BUFFER_INIT(saferead,0,inbuf,sizeof(inbuf))

Definition at line 50 of file qmail-qmtpd.c.

◆ bo

buffer bo = BUFFER_INIT(safewrite,1,outbuf,sizeof(outbuf))

Definition at line 38 of file qmail-qmtpd.c.

◆ buf

char buf[1000]

Definition at line 76 of file qmail-qmtpd.c.

◆ buf2

char buf2[100]

Definition at line 77 of file qmail-qmtpd.c.

◆ bytestooverflow

unsigned int bytestooverflow = 0

Definition at line 73 of file qmail-qmtpd.c.

◆ cipher

char* cipher

Definition at line 94 of file qmail-qmtpd.c.

◆ cipherperm

char* cipherperm

Definition at line 95 of file qmail-qmtpd.c.

◆ cipherused

char* cipherused

Definition at line 96 of file qmail-qmtpd.c.

◆ clientcn

char* clientcn

Definition at line 98 of file qmail-qmtpd.c.

◆ clientdn

char* clientdn

Definition at line 97 of file qmail-qmtpd.c.

◆ databytes

unsigned int databytes = 0

Definition at line 72 of file qmail-qmtpd.c.

◆ dnemail

char* dnemail

Definition at line 99 of file qmail-qmtpd.c.

◆ failure

stralloc failure = {0}

Definition at line 85 of file qmail-qmtpd.c.

◆ inbuf

char inbuf[512]

Definition at line 49 of file qmail-qmtpd.c.

◆ local

char* local

Definition at line 83 of file qmail-qmtpd.c.

◆ localport

char* localport

Definition at line 82 of file qmail-qmtpd.c.

◆ outbuf

char outbuf[256]

Definition at line 37 of file qmail-qmtpd.c.

◆ protocol

stralloc protocol = {0}

Definition at line 86 of file qmail-qmtpd.c.

◆ qq

struct qmail qq

Definition at line 74 of file qmail-qmtpd.c.

◆ relayclient

char* relayclient

Definition at line 89 of file qmail-qmtpd.c.

◆ relayclientlen

int relayclientlen = 0

Definition at line 90 of file qmail-qmtpd.c.

◆ remotehost

char* remotehost

Definition at line 79 of file qmail-qmtpd.c.

◆ remoteinfo

char* remoteinfo

Definition at line 80 of file qmail-qmtpd.c.

◆ remoteip

char* remoteip

Definition at line 81 of file qmail-qmtpd.c.

◆ seentls

int seentls = 0

Definition at line 101 of file qmail-qmtpd.c.

◆ tlsinfo

stralloc tlsinfo = {0}

Definition at line 87 of file qmail-qmtpd.c.

◆ tlsversion

char* tlsversion

Definition at line 93 of file qmail-qmtpd.c.

◆ ucspitls

char* ucspitls

Definition at line 92 of file qmail-qmtpd.c.