* MIME header.
*/
post_mail_fprintf(bounce, "MIME-Version: 1.0");
- post_mail_fprintf(bounce, "Content-Type: %s/%s;", "multipart", "mixed");
+ post_mail_fprintf(bounce, "Content-Type: %s; report-type=%s;",
+ "multipart/report", "x-postfix-report");
post_mail_fprintf(bounce, "\tboundary=\"%s\"", boundary);
post_mail_fputs(bounce, "");
post_mail_fputs(bounce, "This is a MIME-encapsulated message.");
*/
post_mail_fprintf(bounce, "--%s", boundary);
post_mail_fprintf(bounce, "Content-Description: %s", "Notification");
- post_mail_fprintf(bounce, "Content-Type: %s/%s", "text", "plain");
+ post_mail_fprintf(bounce, "Content-Type: %s", "text/plain");
post_mail_fputs(bounce, "");
/*
*/
post_mail_fprintf(bounce, "--%s", boundary);
post_mail_fprintf(bounce, "Content-Description: %s", "Delivery error report");
- post_mail_fprintf(bounce, "Content-Type: %s/%s", "text", "plain");
+ post_mail_fprintf(bounce, "Content-Type: %s", "text/x-postfix-report");
post_mail_fputs(bounce, "");
/*
*/
post_mail_fprintf(bounce, "--%s", boundary);
post_mail_fprintf(bounce, "Content-Description: %s", "Undelivered Message");
- post_mail_fprintf(bounce, "Content-Type: %s/%s", "message", "rfc822");
+ post_mail_fprintf(bounce, "Content-Type: %s", headers_only ?
+ "text/rfc822-headers" : "message/rfc822");
post_mail_fputs(bounce, "");
/*
--- /dev/null
+*** postfix-script-nosgid Wed Mar 24 11:20:49 1999
+--- postfix-script-sgid Wed Mar 24 11:20:53 1999
+***************
+*** 174,181 ****
+ test -d maildrop || {
+ $WARN creating missing Postfix maildrop directory
+ mkdir maildrop || exit 1
+! chmod 1733 maildrop
+ chown $mail_owner maildrop
+ }
+ test -d pid || {
+ $WARN creating missing Postfix pid directory
+--- 174,182 ----
+ test -d maildrop || {
+ $WARN creating missing Postfix maildrop directory
+ mkdir maildrop || exit 1
+! chmod 1730 maildrop
+ chown $mail_owner maildrop
++ chgrp maildrop maildrop
+ }
+ test -d pid || {
+ $WARN creating missing Postfix pid directory
for dir in $daemon_directory $config_directory $queue_directory
do
- ls -lLd $dir | (grep root >/dev/null ||
+ ls -lLd $dir | (grep " root " >/dev/null ||
$WARN not owned by root: $dir)
done
! \( -type p -o -type s \) ! -user $mail_owner \
-exec $WARN not owned by $mail_owner: {} \;
+ for dir in $queue_directory/maildrop
+ do
+ ls -lLd $dir | (grep " $mail_owner " >/dev/null ||
+ $WARN not owned by $mail_owner: $dir)
+ done
+
$command_directory/postsuper || exit 1
find corrupt -type f -exec $WARN damaged message: {} \;
for dir in $daemon_directory $config_directory $queue_directory
do
- ls -lLd $dir | (grep root >/dev/null ||
+ ls -lLd $dir | (grep " root " >/dev/null ||
$WARN not owned by root: $dir)
done
! \( -type p -o -type s \) ! -user $mail_owner \
-exec $WARN not owned by $mail_owner: {} \;
+ for dir in $queue_directory/maildrop
+ do
+ ls -lLd $dir | (grep " $mail_owner " >/dev/null ||
+ $WARN not owned by $mail_owner: $dir)
+ done
+
$command_directory/postsuper || exit 1
find corrupt -type f -exec $WARN damaged message: {} \;