Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We do not need to verify the certificate for smarthost #339

Merged
merged 1 commit into from Jun 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/system-settings/execute
Expand Up @@ -48,7 +48,7 @@ case $action in
port=$(echo $data | jq -r '.SmartHostPort')
tls=$(echo $data | jq -r '.SmartHostTlsStatus')
[[ $tls = 'true' ]] && tls='--ssl' || tls=''
/usr/bin/curl smtp://$hostname:$port -v --connect-timeout 10 --max-time 10 --mail-from $username --mail-rcpt $username --user "$username:$password" $tls <<EOF
/usr/bin/curl smtp://$hostname:$port -v -k --connect-timeout 10 --max-time 10 --mail-from $username --mail-rcpt $username --user "$username:$password" $tls <<EOF
Subject: Test smarthost credentials
Date: $(date -R)
Message-ID: testEmail.$(date +%s)@$(hostname -d)
Expand Down