From 4a764a471d9635e19a67f31a72ea59479c85b076 Mon Sep 17 00:00:00 2001 From: Christophe Gherardi <44464440+AltiUP@users.noreply.github.com> Date: Sat, 15 May 2021 11:17:41 +0200 Subject: [PATCH] Modification HELO information/parameters Modification of the comments for the HELO configuration, and addition of the HELO parameter in the transport. --- VIRTUAL_VACATION/vacation.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index ed18d964..46f9f9bd 100644 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -56,9 +56,12 @@ our $recipient_delimiter = '+'; # port to connect to; defaults to 25 for non-SSL, 465 for 'ssl', 587 for 'starttls' our $smtp_server_port = 25; +# this is the local address from which to connect +our $smtp_client = 'localhost'; + # 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'; +our $smtp_helo = 'localhost.localdomain'; # send mail encrypted or plaintext # if 'starttls', use STARTTLS; if 'ssl' (or 1), connect securely; otherwise, no security @@ -476,6 +479,7 @@ sub send_vacation_email { ssl => $smtp_ssl, timeout => $smtp_timeout, localaddr => $smtp_client, + helo => $smtp_helo, debug => 0, };