Mercurial > masqmail
annotate examples/openssl.route @ 246:4cff8638dd9b
SMTP client: tries EHLO now always first
Changed the behavior of the SMTP client. Now always an EHLO greeting
is sent, no matter what kind of greeting text the server had sent. If
the EHLO failed, an HELO greeting is tried as fall back. This is the
behavior RFC 2821 requires (section 3.2).
This change will fix setups that were not possible to sent to a
server because that requires AUTH but hadn't said ``ESMTP'' in its
greeting message.
See also: Debian bug #349211
Thanks to Steffen (inne)
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 28 Oct 2010 16:40:02 -0300 |
parents | 9814e75de61c |
children | e230bcd0f1c6 |
rev | line source |
---|---|
184
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
1 # openssl.route |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
2 # by Philipp Berndt |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
3 |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
4 |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
5 protocol = "smtp" |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
6 |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
7 # encryption is done by communicating through openssl |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
8 |
223 | 9 # Today usually STARTTLS (RFC-3207) is used: |
10 # don't forget the instant_helo, otherwise it won't work, because the wrapper eats the 220 greeting | |
11 instant_helo=true | |
12 wrapper="/usr/bin/openssl s_client -quiet -starttls smtp -connect mail.gmx.net:25 2>/dev/null" | |
13 | |
14 # The old way is SMTP over SSL; the IETF had marked it obsolete: | |
15 # don't use instant_helo here | |
16 #wrapper="/usr/bin/openssl s_client -quiet -connect mail.gmx.net:465 2>/dev/null" | |
17 | |
184
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
18 |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
19 # which addresses are allowed through this route? |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
20 allowed_return_paths = "*@gmx.de;*@gmx.net" |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
21 |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
22 # the authentication method |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
23 #auth_name = "cram-md5" |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
24 auth_name = "login" |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
25 |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
26 # user name und password |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
27 auth_login = "UID_OR_EMAIL_ADDRESS" |
e96a9fee9423
added an example route config with encryption
meillo@marmaro.de
parents:
diff
changeset
|
28 auth_secret = "YOUR_PASSWORD" |