/*++ /* NAME /* bounce_templates 3 /* SUMMARY /* bounce template group support /* SYNOPSIS /* #include <bounce_template.h> /* /* typedef struct { /* .in +4 /* BOUNCE_TEMPLATE *failure; /* BOUNCE_TEMPLATE *delay; /* BOUNCE_TEMPLATE *success; /* BOUNCE_TEMPLATE *verify; /* .in -4 /* } BOUNCE_TEMPLATES; /* /* BOUNCE_TEMPLATES *bounce_templates_create(void) /* /* void bounce_templates_free(templates) /* BOUNCE_TEMPLATES *templates; /* /* void bounce_templates_load(stream, templates) /* VSTREAM *stream; /* BOUNCE_TEMPLATES *templates; /* /* void bounce_templates_expand(stream, templates) /* VSTREAM *stream; /* BOUNCE_TEMPLATES *templates; /* /* void bounce_templates_dump(stream, templates) /* VSTREAM *stream; /* BOUNCE_TEMPLATES *templates; /* DESCRIPTION /* This module implements support for bounce template groups /* (i.e. groups that contain one template of each type). /* /* bounce_templates_create() creates a bounce template group, /* with default settings. /* /* bounce_templates_free() destroys a bounce template group. /* /* bounce_templates_load() reads zero or more bounce templates /* from the specified file to override built-in templates. /* /* bounce_templates_expand() expands $name macros and writes /* the text portions of the specified bounce template group /* to the specified stream. /* /* bounce_templates_dump() writes the complete content of the /* specified bounce template group to the specified stream. /* The format is compatible with bounce_templates_load(). /* DIAGNOSTICS /* Fatal error: out of memory, undefined macro name in template. /* SEE ALSO /* bounce_template(3) bounce template support /* 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 /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
/* *Thefailtemplateisforpermanentfailure.
*/ staticconstchar *def_bounce_failure_body[] = { "This is the mail system at host $myhostname.", "", "I'm sorry to have to inform you that your message could not", "be delivered to one or more recipients. It's attached below.", "", "For further assistance, please send mail to " MAIL_ADDR_POSTMASTER ".", "", "If you do so, please include this problem report. You can", "delete your own text from the attached returned message.", "", " The mail system", 0,
};
staticconst BOUNCE_TEMPLATE def_bounce_failure_template = { 0,
BOUNCE_TMPL_CLASS_FAILURE, "[built-in]", "us-ascii",
MAIL_ATTR_ENC_7BIT,
MAIL_ADDR_MAIL_DAEMON " (Mail Delivery System)", "Mail Delivery System <" MAIL_ADDR_MAIL_DAEMON ">", "Undelivered Mail Returned to Sender", "Postmaster Copy: Undelivered Mail",
def_bounce_failure_body,
&def_bounce_failure_template,
};
/* *Thedelaytemplateisfordelayedmailnotifications.
*/ staticconstchar *def_bounce_delay_body[] = { "This is the mail system at host $myhostname.", "", "####################################################################", "# THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. #", "####################################################################", "", "Your message could not be delivered for more than $delay_warning_time_hours hour(s).", "It will be retried until it is $maximal_queue_lifetime_days day(s) old.", "", "For further assistance, please send mail to " MAIL_ADDR_POSTMASTER ".", "", "If you do so, please include this problem report. You can", "delete your own text from the attached returned message.", "", " The mail system", 0,
};
/* *Thesuccesstemplateisfor"delivered","expanded"and"relayed"success *notifications.
*/ staticconstchar *def_bounce_success_body[] = { "This is the mail system at host $myhostname.", "", "Your message was successfully delivered to the destination(s)", "listed below. If the message was delivered to mailbox you will", "receive no further notifications. Otherwise you may still receive", "notifications of mail delivery errors from other systems.", "", " The mail system", 0,
};
/* *The"verify"templateisforverbosedelivery(sendmail-v)andfor *addressverification(sendmail-bv).
*/ staticconstchar *def_bounce_verify_body[] = { "This is the mail system at host $myhostname.", "", "Enclosed is the mail delivery report that you requested.", "", " The mail system", 0,
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.