mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-07 17:47:14 +00:00
smtp-check: Add flag to specify local name
Some MTAs reject client connections unless the local name (used in the HELO/EHLO command) looks like an FQDN. Currently, smtp-check always uses `localhost`, which does not look like an FQDN. This patch adds a command line flag to smtp-check to specify the local name to be used. Fixes https://github.com/albertito/chasquid/issues/37. Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Minor edits to the commit message, adjust flag name, go fmt.
This commit is contained in:
@@ -4,7 +4,7 @@ smtp-check - SMTP setup checker
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
B<smtp-check> [-port I<port>] [-skip_tls_check] I<domain>
|
||||
B<smtp-check> [-port I<port>] [-localname I<domain>] [-skip_tls_check] I<domain>
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
@@ -19,6 +19,10 @@ certificates, SPF, etc.).
|
||||
|
||||
Port to use for connecting to the MX servers.
|
||||
|
||||
=item B<-localname> I<domain>:
|
||||
|
||||
Local name to use for the EHLO command.
|
||||
|
||||
=item B<-skip_tls_check>:
|
||||
|
||||
Skip TLS check (useful if connections are blocked).
|
||||
|
||||
Reference in New Issue
Block a user