masqmail
view examples/openssl.route @ 249:f9da5a7caeda
refactored the cmdline argument processing
I replaced the nested switch statements with one single
large else-if construct. Instead of char comparision now
str(n)cmp(3) is used. Although this is slower it is much
more readable and covers corner-cases which were uncovered
before (e.g. -bdxxx).
As always: Readability and simplicity matter, not performance.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 04 Nov 2010 11:02:42 -0300 |
parents | e96a9fee9423 |
children | e230bcd0f1c6 |
line source
1 # openssl.route
2 # by Philipp Berndt
5 protocol = "smtp"
7 # encryption is done by communicating through openssl
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"
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"
19 # which addresses are allowed through this route?
20 allowed_return_paths = "*@gmx.de;*@gmx.net"
22 # the authentication method
23 #auth_name = "cram-md5"
24 auth_name = "login"
26 # user name und password
27 auth_login = "UID_OR_EMAIL_ADDRESS"
28 auth_secret = "YOUR_PASSWORD"