vacation.pl: merge in patch from ichier (thank you) - see patch 3371641 - https://sourceforge.net/tracker/?func=detail&aid=3371641&group_id=191583&atid=937966

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1370 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
David Goodwin 13 years ago
parent 3b920fc442
commit d5803088aa

@ -66,6 +66,10 @@
# 2009-08-10 Sebastian <reg9009 at yahoo dot de> # 2009-08-10 Sebastian <reg9009 at yahoo dot de>
# Adjust SQL query for vacation timeframe. It is now possible to set from/until date for vacation message. # Adjust SQL query for vacation timeframe. It is now possible to set from/until date for vacation message.
# #
# 2012-04-19 Nikolaos Topp <info at ichier.de>
#  Add configuration parameter $smtp_client in order to get mails through
# postfix helo-checks, using check_helo_access whitelist without permitting 'localhost' default style stuff
# Requirements - the following perl modules are required: # Requirements - the following perl modules are required:
# DBD::Pg or DBD::mysql # DBD::Pg or DBD::mysql
# Mail::Sender, Email::Valid MIME::Charset, Log::Log4perl, Log::Dispatch, MIME::EncWords and GetOpt::Std # Mail::Sender, Email::Valid MIME::Charset, Log::Log4perl, Log::Dispatch, MIME::EncWords and GetOpt::Std
@ -131,6 +135,10 @@ our $vacation_domain = 'autoreply.example.org';
our $smtp_server = 'localhost'; our $smtp_server = 'localhost';
our $smtp_server_port = 25; our $smtp_server_port = 25;
# this is the helo we [the vacation script] use on connection; you may need to change this to your hostname or something,
# depending upon what smtp helo restrictions you have in place within Postfix.
our $smtp_client = 'localhost';
# SMTP authentication protocol used for sending. # SMTP authentication protocol used for sending.
# Can be 'PLAIN', 'LOGIN', 'CRAM-MD5' or 'NTLM' # Can be 'PLAIN', 'LOGIN', 'CRAM-MD5' or 'NTLM'
# Leave it blank if you don't use authentification # Leave it blank if you don't use authentification
@ -443,6 +451,7 @@ sub send_vacation_email {
'auth' => $smtp_auth, 'auth' => $smtp_auth,
'authid' => $smtp_authid, 'authid' => $smtp_authid,
'authpwd' => $smtp_authpwd, 'authpwd' => $smtp_authpwd,
'smtp_client' => $smtp_client,
'skip_bad_recipients' => 'true', 'skip_bad_recipients' => 'true',
'encoding' => 'Base64', 'encoding' => 'Base64',
'ctype' => 'text/plain; charset=UTF-8', 'ctype' => 'text/plain; charset=UTF-8',

Loading…
Cancel
Save