7 /* pre-defined mail addresses
9 /* #include <mail_addr.h>
11 /* const char *mail_addr_double_bounce()
13 /* const char *mail_addr_postmaster()
15 /* const char *mail_addr_mail_daemon()
17 /* This module predefines the following addresses:
18 /* .IP MAIL_ADDR_POSTMASTER
19 /* The postmaster handle. Typically used for sending mail to.
20 /* .IP MAIL_ADDR_MAIL_DAEMON
21 /* The mailer-daemon handle. Typically used to bring bad news.
22 /* .IP MAIL_ADDR_EMPTY
23 /* The empty mail address. This refers to the postmaster on the
26 /* mail_addr_double_bounce() produces the fully-qualified version
27 /* of the local double bounce address.
29 /* mail_addr_postmaster() produces the fully-qualified version
30 /* of the local postmaster address.
32 /* mail_addr_mail_daemon() produces the fully-qualified version
33 /* of the local mailer-daemon address.
34 /* CONFIGURATION PARAMETERS
35 /* double_bounce_sender, the double bounce pseudo account.
36 /* myhostname, the local machine hostname.
38 /* Addresses are constructed by string concatenation, instead of
39 /* passing them to the rewriting service.
43 /* The Secure Mailer license must be distributed with this software.
46 /* IBM T.J. Watson Research
48 /* Yorktown Heights, NY 10598, USA
55 /* Utility library. */
57 #include <stringops.h>
61 #include "mail_params.h"
62 #include "mail_addr.h"
64 /* mail_addr_double_bounce - construct the local double-bounce address */
66 const char *mail_addr_double_bounce(void)
71 addr
= concatenate(var_double_bounce_sender
, "@",
72 var_myhostname
, (char *) 0);
76 /* mail_addr_postmaster - construct the local postmaster address */
78 const char *mail_addr_postmaster(void)
83 addr
= concatenate(MAIL_ADDR_POSTMASTER
, "@",
84 var_myhostname
, (char *) 0);
88 /* mail_addr_mail_daemon - construct the local mailer-daemon address */
90 const char *mail_addr_mail_daemon(void)
95 addr
= concatenate(MAIL_ADDR_MAIL_DAEMON
, "@",
96 var_myhostname
, (char *) 0);