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

functions recipients_init, recipients, recipients_parse, callapam More...

#include <unistd.h>
#include "cdbread.h"
#include "byte.h"
#include "open.h"
#include "control.h"
#include "constmap.h"
#include "stralloc.h"
#include "recipients.h"
#include "wait.h"
#include "str.h"
#include "fd.h"
#include "sig.h"
#include "case.h"
#include "buffer.h"
#include "auto_break.h"
#include "qmail.h"
Include dependency graph for recipients.c:

Go to the source code of this file.

Macros

#define FDAUTH   3
 

Functions

int recipients_init ()
 
int callapam (char *pam, char *addr)
 
int recipients_parse (char *rhost, int rlen, char *addr, char *rkey, int klen, char *vaddr, char *vkey, int vlen, char *ukey, int ulen)
 
int recipients (char *buf, int len)
 

Variables

char rcptbuf [512]
 
buffer br = BUFFER_INIT(safewrite,FDAUTH,rcptbuf,sizeof(rcptbuf))
 

Detailed Description

functions recipients_init, recipients, recipients_parse, callapam

Parameters
pointerto address, length of address
Returns
-3: problem with PAM -2: out of memory -1: error reading control file 0: address not found; unsuccessful 1: CDB lookup; successful 2: PAM lookup; successful 3: USERS lookup; successful 4: Wildcarded domain; successful 5: Pass-thru; neutral 10: none existing control file; pass-thru

Definition in file recipients.c.

Macro Definition Documentation

◆ FDAUTH

#define FDAUTH   3

Definition at line 18 of file recipients.c.

Function Documentation

◆ callapam()

int callapam ( char *  pam,
char *  addr 
)

Definition at line 58 of file recipients.c.

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

◆ recipients()

int recipients ( char *  buf,
int  len 
)

Definition at line 238 of file recipients.c.

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

◆ recipients_init()

int recipients_init ( void  )

Definition at line 48 of file recipients.c.

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

◆ recipients_parse()

int recipients_parse ( char *  rhost,
int  rlen,
char *  addr,
char *  rkey,
int  klen,
char *  vaddr,
char *  vkey,
int  vlen,
char *  ukey,
int  ulen 
)

Definition at line 143 of file recipients.c.

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

Variable Documentation

◆ br

buffer br = BUFFER_INIT(safewrite,FDAUTH,rcptbuf,sizeof(rcptbuf))

Definition at line 56 of file recipients.c.

◆ rcptbuf

char rcptbuf[512]

Definition at line 55 of file recipients.c.