view examples/openssl.route @ 312:c74adb7c4f50

null-terminated the decoded base64 strings The returned size is still the same. I only alloced one byte more and filled it with zero. TODO: I'm not sure if the allocated size is exact. It's large enough but maybe too large.
author meillo@marmaro.de
date Sun, 24 Apr 2011 20:13:47 +0200
parents e230bcd0f1c6
children 55b7bde95d37
line wrap: on
line source

# openssl.route
# by Philipp Berndt


# encryption is done by communicating through openssl

# Today usually STARTTLS (RFC-3207) is used:
# don't forget the instant_helo, otherwise it won't work, because the wrapper eats the 220 greeting
instant_helo=true
wrapper="/usr/bin/openssl s_client -quiet -starttls smtp -connect mail.gmx.net:25 2>/dev/null"

# The old way is SMTP over SSL; the IETF had marked it obsolete:
# don't use instant_helo here
#wrapper="/usr/bin/openssl s_client -quiet -connect mail.gmx.net:465 2>/dev/null"


# which addresses are allowed through this route?
allowed_return_paths = "*@gmx.de;*@gmx.net"

# the authentication method
#auth_name = "cram-md5"
auth_name = "login"

# user name und password
auth_login = "UID_OR_EMAIL_ADDRESS"
auth_secret = "YOUR_PASSWORD"