mirror of
https://github.com/vdukhovni/postfix
synced 2025-09-04 08:05:37 +00:00
postfix-2.5-20070530
This commit is contained in:
committed by
Viktor Dukhovni
parent
1ad70a3fad
commit
76f9a46b98
@@ -13574,6 +13574,14 @@ Apologies for any names omitted.
|
|||||||
commands would hang when trying to submit a message larger
|
commands would hang when trying to submit a message larger
|
||||||
than the per-message size limit. File: postdrop/postdrop.c.
|
than the per-message size limit. File: postdrop/postdrop.c.
|
||||||
|
|
||||||
|
20070530
|
||||||
|
|
||||||
|
Sabotage the saboteur who insists on breaking Postfix by
|
||||||
|
adding gethostbyname() calls that cause maildir delivery
|
||||||
|
to fail when the machine name is not found in /etc/hosts,
|
||||||
|
or that cause Postfix processes to hang when the network
|
||||||
|
is down.
|
||||||
|
|
||||||
Wish list:
|
Wish list:
|
||||||
|
|
||||||
Update attr_print/scan() so they can send/receive file
|
Update attr_print/scan() so they can send/receive file
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* Patches change both the patchlevel and the release date. Snapshots have no
|
* Patches change both the patchlevel and the release date. Snapshots have no
|
||||||
* patchlevel; they change the release date only.
|
* patchlevel; they change the release date only.
|
||||||
*/
|
*/
|
||||||
#define MAIL_RELEASE_DATE "20070529"
|
#define MAIL_RELEASE_DATE "20070530"
|
||||||
#define MAIL_VERSION_NUMBER "2.5"
|
#define MAIL_VERSION_NUMBER "2.5"
|
||||||
|
|
||||||
#ifdef SNAPSHOT
|
#ifdef SNAPSHOT
|
||||||
|
@@ -439,8 +439,9 @@ int main(int argc, char **argv)
|
|||||||
/* rec_get() errors must not clobber errno. */
|
/* rec_get() errors must not clobber errno. */
|
||||||
saved_errno = errno;
|
saved_errno = errno;
|
||||||
while ((rec_type = rec_get_raw(VSTREAM_IN, buf, var_line_limit,
|
while ((rec_type = rec_get_raw(VSTREAM_IN, buf, var_line_limit,
|
||||||
REC_FLAG_NONE)) != REC_TYPE_END)
|
REC_FLAG_NONE)) != REC_TYPE_END
|
||||||
if (rec_type <= 0)
|
&& rec_type != REC_TYPE_EOF)
|
||||||
|
if (rec_type == REC_TYPE_ERROR)
|
||||||
msg_fatal("uid=%ld: malformed input", (long) uid);
|
msg_fatal("uid=%ld: malformed input", (long) uid);
|
||||||
errno = saved_errno;
|
errno = saved_errno;
|
||||||
break;
|
break;
|
||||||
|
@@ -61,13 +61,23 @@ const char *get_hostname(void)
|
|||||||
* part of the socket interface library. We avoid the more politically-
|
* part of the socket interface library. We avoid the more politically-
|
||||||
* correct uname() routine because that has no portable way of dealing
|
* correct uname() routine because that has no portable way of dealing
|
||||||
* with long (FQDN) hostnames.
|
* with long (FQDN) hostnames.
|
||||||
|
*
|
||||||
|
* DO NOT CALL GETHOSTBYNAME FROM THIS FUNCTION. IT BREAKS MAILDIR DELIVERY
|
||||||
|
* AND OTHER THINGS WHEN THE MACHINE NAME IS NOT FOUND IN /ETC/HOSTS OR
|
||||||
|
* CAUSES PROCESSES TO HANG WHEN THE NETWORK IS DISCONNECTED.
|
||||||
|
*
|
||||||
|
* POSTFIX NO LONGER NEEDS A FULLY QUALIFIED HOSTNAME. INSTEAD POSTFIX WILL
|
||||||
|
* USE A DEFAULT DOMAIN NAME "LOCALDOMAIN".
|
||||||
*/
|
*/
|
||||||
if (my_host_name == 0) {
|
if (my_host_name == 0) {
|
||||||
|
/* DO NOT CALL GETHOSTBYNAME FROM THIS FUNCTION */
|
||||||
if (gethostname(namebuf, sizeof(namebuf)) < 0)
|
if (gethostname(namebuf, sizeof(namebuf)) < 0)
|
||||||
msg_fatal("gethostname: %m");
|
msg_fatal("gethostname: %m");
|
||||||
namebuf[MAXHOSTNAMELEN] = 0;
|
namebuf[MAXHOSTNAMELEN] = 0;
|
||||||
|
/* DO NOT CALL GETHOSTBYNAME FROM THIS FUNCTION */
|
||||||
if (valid_hostname(namebuf, DO_GRIPE) == 0)
|
if (valid_hostname(namebuf, DO_GRIPE) == 0)
|
||||||
msg_fatal("unable to use my own hostname");
|
msg_fatal("unable to use my own hostname");
|
||||||
|
/* DO NOT CALL GETHOSTBYNAME FROM THIS FUNCTION */
|
||||||
my_host_name = mystrdup(namebuf);
|
my_host_name = mystrdup(namebuf);
|
||||||
}
|
}
|
||||||
return (my_host_name);
|
return (my_host_name);
|
||||||
|
Reference in New Issue
Block a user