From d6385c03ffdd580b5604d08e6d0eaaa92f84e091 Mon Sep 17 00:00:00 2001 From: Yannick Markus Date: Mon, 15 Jun 2020 15:14:11 +0200 Subject: [PATCH] fix vacation.pl resolver --- VIRTUAL_VACATION/vacation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 62b7e061..ed18d964 100644 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -454,7 +454,7 @@ sub send_vacation_email { my $to = $orig_from; # part of the username in the email && part of the domain in the email - my ($email_username_part, $email_domain_part) = split(/@/, $orig_from); + my ($email_username_part, $email_domain_part) = split(/@/, $email); my $resolver = Net::DNS::Resolver->new; my @mx = mx($resolver, $email_domain_part);