/usr/include/postfix/resolve_clnt.h is in postfix-dev 3.1.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | #ifndef _RESOLVE_CLNT_H_INCLUDED_
#define _RESOLVE_CLNT_H_INCLUDED_
/*++
/* NAME
/* resolve_clnt 3h
/* SUMMARY
/* address resolver client
/* SYNOPSIS
/* #include <resolve_clnt.h>
/* DESCRIPTION
/* .nf
/*
* Utility library.
*/
#include <vstring.h>
/*
* External interface.
*/
#define RESOLVE_REGULAR "resolve"
#define RESOLVE_VERIFY "verify"
#define RESOLVE_FLAG_FINAL (1<<0) /* final delivery */
#define RESOLVE_FLAG_ROUTED (1<<1) /* routed destination */
#define RESOLVE_FLAG_ERROR (1<<2) /* bad destination syntax */
#define RESOLVE_FLAG_FAIL (1<<3) /* request failed */
#define RESOLVE_CLASS_LOCAL (1<<8) /* mydestination/inet_interfaces */
#define RESOLVE_CLASS_ALIAS (1<<9) /* virtual_alias_domains */
#define RESOLVE_CLASS_VIRTUAL (1<<10) /* virtual_mailbox_domains */
#define RESOLVE_CLASS_RELAY (1<<11) /* relay_domains */
#define RESOLVE_CLASS_DEFAULT (1<<12) /* raise reject_unauth_destination */
#define RESOLVE_CLASS_FINAL \
(RESOLVE_CLASS_LOCAL | RESOLVE_CLASS_ALIAS | RESOLVE_CLASS_VIRTUAL)
#define RESOLVE_CLASS_MASK \
(RESOLVE_CLASS_LOCAL | RESOLVE_CLASS_ALIAS | RESOLVE_CLASS_VIRTUAL \
| RESOLVE_CLASS_RELAY | RESOLVE_CLASS_DEFAULT)
typedef struct RESOLVE_REPLY {
VSTRING *transport;
VSTRING *nexthop;
VSTRING *recipient;
int flags;
} RESOLVE_REPLY;
extern void resolve_clnt_init(RESOLVE_REPLY *);
extern void resolve_clnt(const char *, const char *, const char *, RESOLVE_REPLY *);
extern void resolve_clnt_free(RESOLVE_REPLY *);
#define RESOLVE_NULL_FROM ""
#define resolve_clnt_query(a, r) \
resolve_clnt(RESOLVE_REGULAR, RESOLVE_NULL_FROM, (a), (r))
#define resolve_clnt_verify(a, r) \
resolve_clnt(RESOLVE_VERIFY, RESOLVE_NULL_FROM, (a), (r))
#define resolve_clnt_query_from(f, a, r) \
resolve_clnt(RESOLVE_REGULAR, (f), (a), (r))
#define resolve_clnt_verify_from(f, a, r) \
resolve_clnt(RESOLVE_VERIFY, (f), (a), (r))
#define RESOLVE_CLNT_ASSIGN(reply, transport, nexthop, recipient) { \
(reply).transport = (transport); \
(reply).nexthop = (nexthop); \
(reply).recipient = (recipient); \
}
/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* IBM T.J. Watson Research
/* P.O. Box 704
/* Yorktown Heights, NY 10598, USA
/*--*/
#endif
|