---- snapshot-20001121/src/bounce/bounce_notify_util.c.wiget Mon Nov 20 19:05:04 2000
-+++ snapshot-20001121/src/bounce/bounce_notify_util.c Thu Nov 30 14:52:37 2000
-@@ -273,7 +273,7 @@
+diff -Nur postfix-1.1.2.orig/src/bounce/bounce_notify_util.c postfix-1.1.2/src/bounce/bounce_notify_util.c
+--- postfix-1.1.2.orig/src/bounce/bounce_notify_util.c Mon Nov 26 22:47:05 2001
++++ postfix-1.1.2/src/bounce/bounce_notify_util.c Mon Jan 28 12:33:52 2002
+@@ -275,7 +275,7 @@
post_mail_fputs(bounce, dest == var_bounce_rcpt
|| dest == var_2bounce_rcpt || dest == var_delay_rcpt ?
"Subject: Postmaster Copy: Undelivered Mail" :
}
/*
-@@ -283,7 +283,7 @@
+@@ -285,7 +285,7 @@
post_mail_fputs(bounce, dest == var_bounce_rcpt
|| dest == var_2bounce_rcpt || dest == var_delay_rcpt ?
"Subject: Postmaster Warning: Delayed Mail" :
}
post_mail_fprintf(bounce, "To: %s",
STR(quote_822_local(bounce_info->buf, dest)));
-@@ -298,15 +298,6 @@
+@@ -300,15 +300,6 @@
post_mail_fputs(bounce, "");
post_mail_fputs(bounce, "This is a MIME-encapsulated message.");
return (vstream_ferror(bounce));
}
-@@ -322,6 +313,73 @@
+@@ -324,6 +315,73 @@
* word wrapping to make the text look nicer. No matter how hard we would
* try, receiving bounced mail will always suck.
*/
+ "########################################################################");
+ post_mail_fputs(bounce, "");
+ post_mail_fprintf(bounce,
-+ "Twój list nie móg³ byæ dostarczony przez %d godzin.",
++ "Twój list nie móg³ byæ dostarczony przez %.1f godzin.",
+ var_delay_warn_time);
+ post_mail_fprintf(bounce,
-+ "Bêd± podejmowane próby wys³ania jeszcze przez %d dni.",
++ "Bêd± podejmowane próby wys³ania jeszcze przez %.1f dni.",
+ var_max_queue_time);
+ }
+
post_mail_fprintf(bounce, "This is the %s program at host %s.",
var_mail_name, var_myhostname);
post_mail_fputs(bounce, "");
-@@ -345,7 +403,7 @@
- "It will be retried until it is %d days old.",
- var_max_queue_time);
+@@ -347,7 +405,7 @@
+ "It will be retried until it is %.1f days old.",
+ var_max_queue_time / 86400.0);
}
-
+#if 0
post_mail_fputs(bounce, "");
post_mail_fprintf(bounce,
"For further assistance, please send mail to <%s>",
-@@ -357,6 +415,7 @@
+@@ -359,6 +417,7 @@
post_mail_fprintf(bounce,
"delete your own text from the message returned below.");
}
post_mail_fputs(bounce, "");
post_mail_fprintf(bounce, "\t\t\tThe %s program", var_mail_name);
return (vstream_ferror(bounce));
-@@ -418,6 +477,7 @@
+@@ -420,6 +479,7 @@
if (bounce_info->log_handle == 0
|| bounce_log_rewind(bounce_info->log_handle)) {
post_mail_fputs(bounce, "\t--- Delivery error report unavailable ---");
} else {
while (bounce_log_read(bounce_info->log_handle) != 0)
if (bounce_recipient_log(bounce, bounce_info) != 0)
-@@ -438,7 +498,8 @@
+@@ -440,7 +500,8 @@
post_mail_fprintf(bounce, "--%s", bounce_info->mime_boundary);
post_mail_fprintf(bounce, "Content-Description: %s",
"Delivery error report");
/*
* According to RFC 1894: The body of a message/delivery-status consists
-@@ -527,6 +588,7 @@
+@@ -529,6 +590,7 @@
if (bounce_info->orig_offs == 0 || vstream_fseek(bounce_info->orig_fp,
bounce_info->orig_offs, SEEK_SET) < 0) {
post_mail_fputs(bounce, "\t--- Undelivered message unavailable ---");
return (vstream_ferror(bounce));
}
---- snapshot-20001121/src/global/pipe_command.c.wiget Tue Nov 21 19:08:58 2000
-+++ snapshot-20001121/src/global/pipe_command.c Thu Nov 30 14:56:00 2000
-@@ -470,9 +470,9 @@
+diff -Nur postfix-1.1.2.orig/src/global/pipe_command.c postfix-1.1.2/src/global/pipe_command.c
+--- postfix-1.1.2.orig/src/global/pipe_command.c Tue Nov 27 02:02:17 2001
++++ postfix-1.1.2/src/global/pipe_command.c Mon Jan 28 12:33:52 2002
+@@ -482,9 +482,9 @@
if (pipe_command_wait_or_kill(pid, &wait_status, SIGKILL) < 0)
msg_fatal("wait: %m");
if (pipe_command_timeout) {
return (PIPE_STAT_BOUNCE);
}
-@@ -482,26 +482,26 @@
+@@ -494,28 +494,28 @@
*/
if (!NORMAL_EXIT_STATUS(wait_status)) {
if (WIFSIGNALED(wait_status)) {
+ log_len ? ". Wynik polecenia / Command output: " : "", log_buf);
return (PIPE_STAT_BOUNCE);
}
+ } else if (write_status & MAIL_COPY_STAT_CORRUPT) {
+ return (PIPE_STAT_CORRUPT);
} else if (write_status && errno != EPIPE) {
- vstring_sprintf(why, "Command failed: %m: \"%s\"", args.command);
+ vstring_sprintf(why, "Polecenie niepowiodlo sie / Command failed: %m: \"%s\"", args.command);
return (PIPE_STAT_DEFER);
} else {
return (PIPE_STAT_OK);
---- snapshot-20001121/src/global/sys_exits.c.wiget Fri Dec 11 19:55:25 1998
-+++ snapshot-20001121/src/global/sys_exits.c Thu Nov 30 14:52:37 2000
+diff -Nur postfix-1.1.2.orig/src/global/sys_exits.c postfix-1.1.2/src/global/sys_exits.c
+--- postfix-1.1.2.orig/src/global/sys_exits.c Fri Dec 11 19:55:25 1998
++++ postfix-1.1.2/src/global/sys_exits.c Mon Jan 28 12:33:52 2002
@@ -60,21 +60,21 @@
} SYS_EXITS_TABLE;
};
/* sys_exits_strerror - map exit status to error string */
---- snapshot-20001121/src/smtpd/smtpd_check.c.wiget Thu Nov 30 14:52:37 2000
-+++ snapshot-20001121/src/smtpd/smtpd_check.c Thu Nov 30 14:58:39 2000
-@@ -638,7 +638,7 @@
+
+--- postfix-2.0.10/src/smtpd/smtpd_check.c.orig Sun Jun 1 12:38:56 2003
++++ postfix-2.0.10/src/smtpd/smtpd_check.c Sun Jun 1 12:57:27 2003
+@@ -988,7 +988,7 @@
*/
- if (!valid_hostaddr(test_addr))
+ if (!valid_hostaddr(test_addr, DONT_GRIPE))
stat = smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: invalid ip address",
+ "%d <%s>: %s odrzucony/rejected: niepoprawny adres IP/invalid IP address",
var_bad_name_code, reply_name, reply_class);
else
stat = SMTPD_CHECK_DUNNO;
-@@ -674,7 +674,7 @@
+@@ -1024,7 +1024,7 @@
*/
- if (!valid_hostname(test_name))
+ if (!valid_hostname(test_name, DONT_GRIPE))
stat = smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: Invalid name",
+ "%d <%s>: %s odrzucony/rejected: Niepoprawna nazwa / Invalid name",
var_bad_name_code, reply_name, reply_class);
else
stat = SMTPD_CHECK_DUNNO;
-@@ -710,7 +710,7 @@
+@@ -1060,7 +1060,7 @@
*/
- if (!valid_hostname(test_name) || !strchr(test_name, '.'))
+ if (!valid_hostname(test_name, DONT_GRIPE) || !strchr(test_name, '.'))
stat = smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: need fully-qualified hostname",
+ "%d <%s>: %s odrzucowny/rejected: need fully-qualified hostname",
var_non_fqdn_code, reply_name, reply_class);
else
stat = SMTPD_CHECK_DUNNO;
-@@ -743,7 +743,7 @@
- 0);
- if (dns_status != DNS_OK)
+@@ -1095,7 +1095,7 @@
+ (VSTRING *) 0, RR_ADDR_TYPES, T_MX, 0);
+ if (dns_status == DNS_NOTFOUND)
return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: Host not found",
+ "%d <%s>: %s odrzucony/rejected: Host not found",
- dns_status == DNS_NOTFOUND ?
- var_unk_name_code : 450,
+ var_unk_name_code,
reply_name, reply_class));
-@@ -769,7 +769,7 @@
- 0);
- if (dns_status != DNS_OK)
+ else if (dns_status != DNS_OK)
+@@ -1120,7 +1120,7 @@
+ (VSTRING *) 0, RR_ADDR_TYPES, T_MX, 0);
+ if (dns_status == DNS_NOTFOUND)
return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: Domain not found",
+ "%d <%s>: %s odrzucony/rejected: Domain not found",
- dns_status == DNS_NOTFOUND ?
- var_unk_addr_code : 450,
+ var_unk_addr_code,
reply_name, reply_class));
-@@ -804,7 +804,7 @@
- * Deny relaying between sites that both are not in relay_domains.
- */
+ else if (dns_status != DNS_OK)
+@@ -1201,7 +1201,8 @@
+ vstring_strcat(reply_msg, "%d <%s>: %s ");
+ vstring_strcat(reply_msg, var_reject_reply_msg_access_denied);
return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
-- "%d <%s>: %s rejected: Relay access denied",
-+ "%d <%s>: %s odrzucony/rejected: Relay access denied",
- var_relay_code, reply_name, reply_class));
+- vstring_export(reply_msg), var_relay_code, reply_name, reply_class));
++ "%d <%s>: %s odrzucony/rejected: Relay access denied",
++ var_relay_code, reply_name, reply_class));
}
-@@ -1078,7 +1078,7 @@
+ /* permit_auth_destination - OK for message relaying */
+@@ -1650,7 +1651,7 @@
*/
- if (!*test_dom || !valid_hostname(test_dom) || !strchr(test_dom, '.'))
+ if (!*test_dom || !valid_hostname(test_dom, DONT_GRIPE) || !strchr(test_dom, '.'))
stat = smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: need fully-qualified address",
+ "%d <%s>: %s odrzucony/rejected: need fully-qualified address",
var_non_fqdn_code, reply_name, reply_class);
else
stat = SMTPD_CHECK_DUNNO;
-@@ -1156,7 +1156,7 @@
+@@ -1766,9 +1767,9 @@
*/
- if (strcasecmp(value, "REJECT") == 0)
+ if (STREQUAL(value, "REJECT", cmd_len)) {
return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
-- "%d <%s>: %s rejected: Access denied",
-+ "%d <%s>: %s odrzucony/rejected: Brak dostepu / Access denied",
- var_access_map_code, reply_name, reply_class));
+- "%d <%s>: %s rejected: %s",
++ "%d <%s>: %s odrzucony/rejected: %s",
+ var_access_map_code, reply_name, reply_class,
+- *cmd_text ? cmd_text : "Access denied"));
++ *cmd_text ? cmd_text : "Brak dostepu / Access denied"));
+ }
/*
-@@ -1175,7 +1175,7 @@
- while (ISDIGIT(*value) || ISSPACE(*value))
- value++;
+@@ -1858,7 +1859,7 @@
+ && ISDIGIT(value[0]) && ISDIGIT(value[1]) && ISDIGIT(value[2])) {
+ code = atoi(value);
return (smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: %s",
+ "%d <%s>: %s odrzucony/rejected: %s",
- code, reply_name, reply_class, value));
+ code, reply_name, reply_class, cmd_text));
}
-@@ -1488,7 +1488,7 @@
- rbl_fodder = rbl_reason = "";
- }
- result = smtpd_check_reject(state, MAIL_ERROR_POLICY,
-- "%d Service unavailable; [%s] blocked using %s%s%s",
-+ "%d Niedostepny serwis / Service unavailable; [%s] blocked using %s%s%s",
- var_maps_rbl_code, state->addr, rbl_domain,
- rbl_fodder, rbl_reason);
- if (txt_list)
-@@ -1566,7 +1566,7 @@
+@@ -2743,14 +2744,14 @@
cpp[1], PERMIT_ALL);
+ } else if (strcasecmp(name, DEFER_ALL) == 0) {
+ status = smtpd_check_reject(state, MAIL_ERROR_POLICY,
+- "%d <%s>: %s rejected: Try again later",
++ "%d <%s>: %s odrzucony/rejected: Sprobuj pozniej / Try again later",
+ var_defer_code, reply_name, reply_class);
+ if (cpp[1] != 0 && state->warn_if_reject == 0)
+ msg_warn("restriction `%s' after `%s' is ignored",
+ cpp[1], DEFER_ALL);
} else if (strcasecmp(name, REJECT_ALL) == 0) {
status = smtpd_check_reject(state, MAIL_ERROR_POLICY,
- "%d <%s>: %s rejected: Access denied",
+ "%d <%s>: %s odrzucony/rejected: Brak dostepu / Access denied",
var_reject_code, reply_name, reply_class);
- if (cpp[1] != 0)
+ if (cpp[1] != 0 && state->warn_if_reject == 0)
msg_warn("restriction `%s' after `%s' is ignored",
-@@ -1982,7 +1982,7 @@
- && NOMATCH(relocated_maps, STR(reply.recipient))
- && NOMATCH(virtual_maps, STR(reply.recipient))) {
- (void) smtpd_check_reject(state, MAIL_ERROR_BOUNCE,
-- "%d <%s>: User unknown", 550, recipient);
-+ "%d <%s>: Nieznany uzytkonik / User unknown", 550, recipient);
- SMTPD_CHECK_RCPT_RETURN(STR(error_text));
- }
- }
-@@ -1999,7 +1999,7 @@
- && NOMATCH(virtual_maps, STR(reply.recipient))
- && NOMATCH(local_rcpt_maps, STR(reply.recipient))) {
- (void) smtpd_check_reject(state, MAIL_ERROR_BOUNCE,
-- "%d <%s>: User unknown", 550, recipient);
-+ "%d <%s>: Nieznany uzytkownik / User unknown", 550, recipient);
- SMTPD_CHECK_RCPT_RETURN(STR(error_text));
- }
- }
-@@ -2026,7 +2026,7 @@
+@@ -3356,10 +3357,10 @@
+ strlen(MAIL_ADDR_MAIL_DAEMON))
+ && NOMATCH(local_rcpt_maps, CONST_STR(reply->recipient)))
+ return (smtpd_check_reject(state, MAIL_ERROR_BOUNCE,
+- "%d <%s>: User unknown%s",
++ "%d <%s>: Nieznany uzytkownik / User unknown%s",
+ var_local_rcpt_code, recipient,
+ var_show_unk_rcpt_table ?
+- " in local recipient table" : ""));
++ " in local recipient table" : ""));
+
+ /*
+ * Reject mail to unknown addresses in virtual mailbox domains.
+@@ -3368,10 +3369,10 @@
+ && *var_virt_mailbox_maps
+ && NOMATCHV8(virt_mailbox_maps, CONST_STR(reply->recipient)))
+ return (smtpd_check_reject(state, MAIL_ERROR_BOUNCE,
+- "%d <%s>: User unknown%s",
++ "%d <%s>: Nieznany uzytkownik / User unknown%s",
+ var_virt_mailbox_code, recipient,
+ var_show_unk_rcpt_table ?
+- " in virtual mailbox table" : ""));
++ " in virtual mailbox table" : ""));
+
+ /*
+ * Reject mail to unknown addresses in relay domains.
+@@ -3380,7 +3381,7 @@
+ && *var_relay_rcpt_maps
+ && NOMATCH(relay_rcpt_maps, CONST_STR(reply->recipient)))
+ return (smtpd_check_reject(state, MAIL_ERROR_BOUNCE,
+- "%d <%s>: User unknown%s",
++ "%d <%s>: Nieznany uzytkownik / User unknown%s",
+ var_relay_rcpt_code, recipient,
+ var_show_unk_rcpt_table ?
+ " in relay recipient table" : ""));
+@@ -3415,7 +3416,7 @@
if (var_message_limit > 0 && size > var_message_limit) {
(void) smtpd_check_reject(state, MAIL_ERROR_POLICY,