SF.net SVN: postfixadmin:[1370] trunk/VIRTUAL_VACATION/vacation.pl
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2012-04-19 21:00:49
|
Revision: 1370 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1370&view=rev Author: GingerDog Date: 2012-04-19 21:00:39 +0000 (Thu, 19 Apr 2012) Log Message: ----------- 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 Modified Paths: -------------- trunk/VIRTUAL_VACATION/vacation.pl Modified: trunk/VIRTUAL_VACATION/vacation.pl =================================================================== --- trunk/VIRTUAL_VACATION/vacation.pl 2012-04-15 20:46:29 UTC (rev 1369) +++ trunk/VIRTUAL_VACATION/vacation.pl 2012-04-19 21:00:39 UTC (rev 1370) @@ -66,6 +66,10 @@ # 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. # +# 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: # DBD::Pg or DBD::mysql # Mail::Sender, Email::Valid MIME::Charset, Log::Log4perl, Log::Dispatch, MIME::EncWords and GetOpt::Std @@ -131,6 +135,10 @@ our $smtp_server = 'localhost'; 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. # Can be 'PLAIN', 'LOGIN', 'CRAM-MD5' or 'NTLM' # Leave it blank if you don't use authentification @@ -443,6 +451,7 @@ 'auth' => $smtp_auth, 'authid' => $smtp_authid, 'authpwd' => $smtp_authpwd, + 'smtp_client' => $smtp_client, 'skip_bad_recipients' => 'true', 'encoding' => 'Base64', 'ctype' => 'text/plain; charset=UTF-8', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |