Skip to content

Commit

Permalink
Item13936: Use site email addresses in the server probe
Browse files Browse the repository at this point in the history
Using example.com, even though we don't actually send an email causes
some email servers to reject the coneection by relaying denied.
  • Loading branch information
gac410 committed Nov 12, 2016
1 parent ddb5ecf commit 68e18fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Configure/Wizards/AutoConfigureEmail.pm
Expand Up @@ -1341,8 +1341,9 @@ sub testServer {
# authentication is not required.
# The session is reset so no mail is actually sent.

my ( $fromTestAddr, $toTestAddr ) =
(qw/postmaster@example.net postmaster@example.com/);
my $fromTestAddr = $Foswiki::cfg{Email}{WikiAgentEmail}
|| $Foswiki::cfg{WebMasterEmail};
my $toTestAddr = $Foswiki::cfg{WebMasterEmail};
my ( @code, $requires );

my $noAuthOk = $smtp->mail($fromTestAddr) && $smtp->to($toTestAddr);
Expand Down

0 comments on commit 68e18fa

Please sign in to comment.