Qsmtp  0.30dev
qremote.h
Go to the documentation of this file.
1 
4 #ifndef QREMOTE_H
5 #define QREMOTE_H 1
6 
7 #include "sstring.h"
8 
9 #include <netinet/in.h>
10 
11 struct ips;
12 
13 extern void err_mem(const int) __attribute__ ((noreturn));
14 extern void err_conf(const char *) __attribute__ ((noreturn)) __attribute__ ((nonnull (1)));
15 extern void err_confn(const char **, void *) __attribute__ ((noreturn)) __attribute__ ((nonnull (1)));
16 
17 extern void remote_common_setup(void);
18 
31 extern int netget(const unsigned int terminate);
32 
38 extern void write_status_raw(const char *str, const size_t len) __attribute__ ((nonnull (1)));
39 
47 extern void write_status(const char *str) __attribute__ ((nonnull (1)));
48 
57 extern void write_status_m(const char **strs, const unsigned int count) __attribute__ ((nonnull (1)));
58 
59 extern char *rhost;
60 extern size_t rhostlen;
61 extern char *partner_fqdn;
62 extern unsigned int smtpext;
63 extern string heloname;
64 #ifdef CHUNKING
65 extern size_t chunksize;
66 #endif
67 extern char *clientcertbuf;
68 extern struct in6_addr outgoingip;
69 extern struct in6_addr outgoingip6;
70 
71 struct ips *smtproute(const char *, const size_t, unsigned int *);
72 void quitmsg(void);
73 
74 #define EDONE 1003
75 
76 #endif
list of IP addresses for a given host
Definition: qdns.h:28
char * rhost
Definition: qremote.c:39
char * partner_fqdn
Definition: qremote.c:41
struct ips * smtproute(const char *, const size_t, unsigned int *)
get static route for domain
Definition: smtproutes.c:206
unsigned short count
Definition: qdns.h:32
int netget(const unsigned int terminate)
get one line from the network
Definition: reply.c:36
string heloname
Definition: common_setup.c:16
size_t rhostlen
Definition: qremote.c:40
void err_confn(const char **, void *)
log a configuration error and exit
Definition: qremote.c:128
unsigned int smtpext
Definition: qremote.c:38
void write_status(const char *str)
write status message to qmail-rspawn
Definition: status.c:27
void write_status_raw(const char *str, const size_t len)
write raw status message to qmail-rspawn
Definition: status.c:16
definition of string record and headers of corresponding helper functions
void write_status_m(const char **strs, const unsigned int count)
write status messages to qmail-rspawn
Definition: status.c:34
void quitmsg(void)
send QUIT to the remote server and close the connection
Definition: qremote.c:50