mirror of
https://github.com/vdukhovni/postfix
synced 2025-08-31 22:25:24 +00:00
postfix-2.3-20050426
This commit is contained in:
committed by
Viktor Dukhovni
parent
bca5f7d047
commit
539bd6df8f
@@ -10688,6 +10688,11 @@ Apologies for any names omitted.
|
|||||||
Bugfix: postsuper could lose an error message after reporting
|
Bugfix: postsuper could lose an error message after reporting
|
||||||
a fatal error. File: postsuper/postsuper.c.
|
a fatal error. File: postsuper/postsuper.c.
|
||||||
|
|
||||||
|
20050426
|
||||||
|
|
||||||
|
Bugfix: simplified and improved the 20050422 fall-back relay
|
||||||
|
fix. File: smtp/smtp_connect.c.
|
||||||
|
|
||||||
Open problems:
|
Open problems:
|
||||||
|
|
||||||
Med: disable header address rewriting after XCLIENT?
|
Med: disable header address rewriting after XCLIENT?
|
||||||
|
@@ -297,7 +297,9 @@ EEnnaabblliinngg SSAASSLL aauutthheennttiiccaattiioonn
|
|||||||
Turn on client-side SASL authentication, and specify a table with per-host or
|
Turn on client-side SASL authentication, and specify a table with per-host or
|
||||||
per-destination username and password information. Postfix first looks up the
|
per-destination username and password information. Postfix first looks up the
|
||||||
server hostname; if no entry is found, then Postfix looks up the destination
|
server hostname; if no entry is found, then Postfix looks up the destination
|
||||||
domain name (usually, the right-hand part of an email address).
|
domain name. Usually, this is the right-hand part of an email address, but it
|
||||||
|
can also be a hostname or address enclosed in [], with an optional ":port", as
|
||||||
|
specified with relayhost in with transport_maps.
|
||||||
|
|
||||||
/etc/postfix/main.cf:
|
/etc/postfix/main.cf:
|
||||||
smtp_sasl_auth_enable = yes
|
smtp_sasl_auth_enable = yes
|
||||||
@@ -306,6 +308,8 @@ domain name (usually, the right-hand part of an email address).
|
|||||||
/etc/postfix/sasl_passwd:
|
/etc/postfix/sasl_passwd:
|
||||||
foo.com username:password
|
foo.com username:password
|
||||||
bar.com username
|
bar.com username
|
||||||
|
[mail.myisp.net] username:password
|
||||||
|
[mail.myisp.net]:submission username:password
|
||||||
|
|
||||||
Note: some SMTP servers support PLAIN or LOGIN authentication only. By default,
|
Note: some SMTP servers support PLAIN or LOGIN authentication only. By default,
|
||||||
the Postfix SMTP client does not use authentication methods that send plaintext
|
the Postfix SMTP client does not use authentication methods that send plaintext
|
||||||
|
@@ -441,11 +441,13 @@ then get back to Postfix. </p>
|
|||||||
<h2><a name="client_sasl">Enabling SASL authentication in the
|
<h2><a name="client_sasl">Enabling SASL authentication in the
|
||||||
Postfix SMTP client</a></h2>
|
Postfix SMTP client</a></h2>
|
||||||
|
|
||||||
<p> Turn on client-side SASL authentication, and specify a table with
|
<p> Turn on client-side SASL authentication, and specify a table
|
||||||
per-host or per-destination username and password information.
|
with per-host or per-destination username and password information.
|
||||||
Postfix first looks up the server hostname; if no entry is found,
|
Postfix first looks up the server hostname; if no entry is found,
|
||||||
then Postfix looks up the destination domain name (usually, the
|
then Postfix looks up the destination domain name. Usually, this
|
||||||
right-hand part of an email address). </p>
|
is the right-hand part of an email address, but it can also be a
|
||||||
|
hostname or address enclosed in [], with an optional ":port", as
|
||||||
|
specified with <a href="postconf.5.html#relayhost">relayhost</a> in with <a href="postconf.5.html#transport_maps">transport_maps</a>. </p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<pre>
|
<pre>
|
||||||
@@ -456,6 +458,8 @@ right-hand part of an email address). </p>
|
|||||||
/etc/postfix/sasl_passwd:
|
/etc/postfix/sasl_passwd:
|
||||||
foo.com username:password
|
foo.com username:password
|
||||||
bar.com username
|
bar.com username
|
||||||
|
[mail.myisp.net] username:password
|
||||||
|
[mail.myisp.net]:submission username:password
|
||||||
</pre>
|
</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
|
@@ -5994,6 +5994,8 @@ auth, etc.) that the SMTP client will ignore in the EHLO response
|
|||||||
from a remote SMTP server. See <a href="postconf.5.html#smtp_discard_ehlo_keywords">smtp_discard_ehlo_keywords</a> for
|
from a remote SMTP server. See <a href="postconf.5.html#smtp_discard_ehlo_keywords">smtp_discard_ehlo_keywords</a> for
|
||||||
details. </p>
|
details. </p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
|
|
||||||
</DD>
|
</DD>
|
||||||
|
|
||||||
@@ -6004,6 +6006,8 @@ details. </p>
|
|||||||
auth, etc.) that the SMTP client will ignore in the EHLO response
|
auth, etc.) that the SMTP client will ignore in the EHLO response
|
||||||
from a remote SMTP server. </p>
|
from a remote SMTP server. </p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
<p> Notes: </p>
|
<p> Notes: </p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -7467,6 +7471,8 @@ auth, etc.) that the SMTP server will not send in the EHLO response
|
|||||||
to a remote SMTP client. See <a href="postconf.5.html#smtpd_discard_ehlo_keywords">smtpd_discard_ehlo_keywords</a> for details.
|
to a remote SMTP client. See <a href="postconf.5.html#smtpd_discard_ehlo_keywords">smtpd_discard_ehlo_keywords</a> for details.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
|
|
||||||
</DD>
|
</DD>
|
||||||
|
|
||||||
@@ -7477,6 +7483,8 @@ to a remote SMTP client. See <a href="postconf.5.html#smtpd_discard_ehlo_keyword
|
|||||||
auth, etc.) that the SMTP server will not send in the EHLO response
|
auth, etc.) that the SMTP server will not send in the EHLO response
|
||||||
to a remote SMTP client. </p>
|
to a remote SMTP client. </p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
<p> Notes: </p>
|
<p> Notes: </p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
@@ -3319,11 +3319,15 @@ case insensitive lists of EHLO keywords (pipelining, starttls,
|
|||||||
auth, etc.) that the SMTP client will ignore in the EHLO response
|
auth, etc.) that the SMTP client will ignore in the EHLO response
|
||||||
from a remote SMTP server. See smtp_discard_ehlo_keywords for
|
from a remote SMTP server. See smtp_discard_ehlo_keywords for
|
||||||
details.
|
details.
|
||||||
|
.PP
|
||||||
|
This feature is available in Postfix 2.2 and later.
|
||||||
.SH smtp_discard_ehlo_keywords (default: empty)
|
.SH smtp_discard_ehlo_keywords (default: empty)
|
||||||
A case insensitive list of EHLO keywords (pipelining, starttls,
|
A case insensitive list of EHLO keywords (pipelining, starttls,
|
||||||
auth, etc.) that the SMTP client will ignore in the EHLO response
|
auth, etc.) that the SMTP client will ignore in the EHLO response
|
||||||
from a remote SMTP server.
|
from a remote SMTP server.
|
||||||
.PP
|
.PP
|
||||||
|
This feature is available in Postfix 2.2 and later.
|
||||||
|
.PP
|
||||||
Notes:
|
Notes:
|
||||||
.IP \(bu
|
.IP \(bu
|
||||||
Specify the \fBsilent-discard\fR pseudo keyword to prevent
|
Specify the \fBsilent-discard\fR pseudo keyword to prevent
|
||||||
@@ -4244,11 +4248,15 @@ Lookup tables, indexed by the remote SMTP client address, with
|
|||||||
case insensitive lists of EHLO keywords (pipelining, starttls,
|
case insensitive lists of EHLO keywords (pipelining, starttls,
|
||||||
auth, etc.) that the SMTP server will not send in the EHLO response
|
auth, etc.) that the SMTP server will not send in the EHLO response
|
||||||
to a remote SMTP client. See smtpd_discard_ehlo_keywords for details.
|
to a remote SMTP client. See smtpd_discard_ehlo_keywords for details.
|
||||||
|
.PP
|
||||||
|
This feature is available in Postfix 2.2 and later.
|
||||||
.SH smtpd_discard_ehlo_keywords (default: empty)
|
.SH smtpd_discard_ehlo_keywords (default: empty)
|
||||||
A case insensitive list of EHLO keywords (pipelining, starttls,
|
A case insensitive list of EHLO keywords (pipelining, starttls,
|
||||||
auth, etc.) that the SMTP server will not send in the EHLO response
|
auth, etc.) that the SMTP server will not send in the EHLO response
|
||||||
to a remote SMTP client.
|
to a remote SMTP client.
|
||||||
.PP
|
.PP
|
||||||
|
This feature is available in Postfix 2.2 and later.
|
||||||
|
.PP
|
||||||
Notes:
|
Notes:
|
||||||
.IP \(bu
|
.IP \(bu
|
||||||
Specify the \fBsilent-discard\fR pseudo keyword to prevent
|
Specify the \fBsilent-discard\fR pseudo keyword to prevent
|
||||||
|
@@ -441,11 +441,13 @@ then get back to Postfix. </p>
|
|||||||
<h2><a name="client_sasl">Enabling SASL authentication in the
|
<h2><a name="client_sasl">Enabling SASL authentication in the
|
||||||
Postfix SMTP client</a></h2>
|
Postfix SMTP client</a></h2>
|
||||||
|
|
||||||
<p> Turn on client-side SASL authentication, and specify a table with
|
<p> Turn on client-side SASL authentication, and specify a table
|
||||||
per-host or per-destination username and password information.
|
with per-host or per-destination username and password information.
|
||||||
Postfix first looks up the server hostname; if no entry is found,
|
Postfix first looks up the server hostname; if no entry is found,
|
||||||
then Postfix looks up the destination domain name (usually, the
|
then Postfix looks up the destination domain name. Usually, this
|
||||||
right-hand part of an email address). </p>
|
is the right-hand part of an email address, but it can also be a
|
||||||
|
hostname or address enclosed in [], with an optional ":port", as
|
||||||
|
specified with relayhost in with transport_maps. </p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<pre>
|
<pre>
|
||||||
@@ -456,6 +458,8 @@ right-hand part of an email address). </p>
|
|||||||
/etc/postfix/sasl_passwd:
|
/etc/postfix/sasl_passwd:
|
||||||
foo.com username:password
|
foo.com username:password
|
||||||
bar.com username
|
bar.com username
|
||||||
|
[mail.myisp.net] username:password
|
||||||
|
[mail.myisp.net]:submission username:password
|
||||||
</pre>
|
</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
|
@@ -7616,6 +7616,8 @@ and virtual_alias_maps. </p>
|
|||||||
auth, etc.) that the SMTP client will ignore in the EHLO response
|
auth, etc.) that the SMTP client will ignore in the EHLO response
|
||||||
from a remote SMTP server. </p>
|
from a remote SMTP server. </p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
<p> Notes: </p>
|
<p> Notes: </p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -7634,6 +7636,8 @@ discard EHLO keywords selectively. </p>
|
|||||||
auth, etc.) that the SMTP server will not send in the EHLO response
|
auth, etc.) that the SMTP server will not send in the EHLO response
|
||||||
to a remote SMTP client. </p>
|
to a remote SMTP client. </p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
<p> Notes: </p>
|
<p> Notes: </p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -7645,6 +7649,7 @@ this action from being logged. </p>
|
|||||||
to discard EHLO keywords selectively. </p>
|
to discard EHLO keywords selectively. </p>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
%PARAM smtp_discard_ehlo_keyword_address_maps
|
%PARAM smtp_discard_ehlo_keyword_address_maps
|
||||||
|
|
||||||
<p> Lookup tables, indexed by the remote SMTP server address, with
|
<p> Lookup tables, indexed by the remote SMTP server address, with
|
||||||
@@ -7653,6 +7658,8 @@ auth, etc.) that the SMTP client will ignore in the EHLO response
|
|||||||
from a remote SMTP server. See smtp_discard_ehlo_keywords for
|
from a remote SMTP server. See smtp_discard_ehlo_keywords for
|
||||||
details. </p>
|
details. </p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
%PARAM smtpd_discard_ehlo_keyword_address_maps
|
%PARAM smtpd_discard_ehlo_keyword_address_maps
|
||||||
|
|
||||||
<p> Lookup tables, indexed by the remote SMTP client address, with
|
<p> Lookup tables, indexed by the remote SMTP client address, with
|
||||||
@@ -7661,6 +7668,8 @@ auth, etc.) that the SMTP server will not send in the EHLO response
|
|||||||
to a remote SMTP client. See smtpd_discard_ehlo_keywords for details.
|
to a remote SMTP client. See smtpd_discard_ehlo_keywords for details.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p> This feature is available in Postfix 2.2 and later. </p>
|
||||||
|
|
||||||
%PARAM connection_cache_service scache
|
%PARAM connection_cache_service scache
|
||||||
|
|
||||||
<p> The name of the scache(8) connection cache service. This service
|
<p> The name of the scache(8) connection cache service. This service
|
||||||
|
@@ -298,6 +298,7 @@ static void cleanup_envelope_process(CLEANUP_STATE *state, int type,
|
|||||||
msg_warn("%s: message rejected: bad rewriting context: %.100s",
|
msg_warn("%s: message rejected: bad rewriting context: %.100s",
|
||||||
state->queue_id, attr_value);
|
state->queue_id, attr_value);
|
||||||
state->errs |= CLEANUP_STAT_BAD;
|
state->errs |= CLEANUP_STAT_BAD;
|
||||||
|
myfree(sbuf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* Patches change the patchlevel and the release date. Snapshots change the
|
* Patches change the patchlevel and the release date. Snapshots change the
|
||||||
* release date only.
|
* release date only.
|
||||||
*/
|
*/
|
||||||
#define MAIL_RELEASE_DATE "20050422"
|
#define MAIL_RELEASE_DATE "20050426"
|
||||||
#define MAIL_VERSION_NUMBER "2.3"
|
#define MAIL_VERSION_NUMBER "2.3"
|
||||||
|
|
||||||
#define VAR_MAIL_VERSION "mail_version"
|
#define VAR_MAIL_VERSION "mail_version"
|
||||||
|
@@ -568,7 +568,6 @@ int smtp_connect(SMTP_STATE *state)
|
|||||||
(*(cpp) && (cpp) >= (sites)->argv + (non_fallback_sites))
|
(*(cpp) && (cpp) >= (sites)->argv + (non_fallback_sites))
|
||||||
|
|
||||||
for (cpp = sites->argv; SMTP_RCPT_LEFT(state) > 0 && (dest = *cpp) != 0; cpp++) {
|
for (cpp = sites->argv; SMTP_RCPT_LEFT(state) > 0 && (dest = *cpp) != 0; cpp++) {
|
||||||
state->final_server = (cpp[1] == 0);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Parse the destination. Default is to use the SMTP port. Look up
|
* Parse the destination. Default is to use the SMTP port. Look up
|
||||||
@@ -593,7 +592,11 @@ int smtp_connect(SMTP_STATE *state)
|
|||||||
/* XXX We could be an MX host for this destination... */
|
/* XXX We could be an MX host for this destination... */
|
||||||
} else {
|
} else {
|
||||||
addr_list = smtp_domain_addr(domain, misc_flags, why, &i_am_mx);
|
addr_list = smtp_domain_addr(domain, misc_flags, why, &i_am_mx);
|
||||||
|
/* If we're MX host, don't connect to non-MX backups. */
|
||||||
|
if (i_am_mx)
|
||||||
|
cpp[1] = 0;
|
||||||
}
|
}
|
||||||
|
state->final_server = (cpp[1] == 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When session caching is enabled, store the first good session for
|
* When session caching is enabled, store the first good session for
|
||||||
@@ -683,8 +686,7 @@ int smtp_connect(SMTP_STATE *state)
|
|||||||
if ((state->session = session) != 0) {
|
if ((state->session = session) != 0) {
|
||||||
if (++sess_count == var_smtp_mxsess_limit)
|
if (++sess_count == var_smtp_mxsess_limit)
|
||||||
next = 0;
|
next = 0;
|
||||||
state->final_server = (next == 0 && (cpp[1] == 0 || (i_am_mx
|
state->final_server = (cpp[1] == 0 && next == 0);
|
||||||
&& IS_FALLBACK_RELAY(cpp + 1, sites, non_fallback_sites))));
|
|
||||||
if (addr->pref == domain_best_pref)
|
if (addr->pref == domain_best_pref)
|
||||||
session->features |= SMTP_FEATURE_BEST_MX;
|
session->features |= SMTP_FEATURE_BEST_MX;
|
||||||
if ((session->features & SMTP_FEATURE_FROM_CACHE) != 0
|
if ((session->features & SMTP_FEATURE_FROM_CACHE) != 0
|
||||||
|
Reference in New Issue
Block a user