mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
courier: Use the hostname in SMTP HELO
The SMTP courier, which handles outgoing connections, uses the domain of the envelope's from as the domain in the HELO/EHLO greeting. This works fine in practice, but ideally the domain used in the greeting should match the reverse DNS record. This used to be more relevant but nowadays it is not really enforced; however, it sometimes comes up in self checks, and might cause some confusion when troubleshooting. So this patch makes it use the configured hostname instead, which is under the users' control and more likely to be compliant. It also simplifies the code. The documentation of the hostname configuration option is also updated to mention this behaviour. Thanks to Jonas Seydel (thor77) for bringing this up.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
|
||||
.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
|
||||
.\"
|
||||
.\" Standard preamble:
|
||||
.\" ========================================================================
|
||||
@@ -133,7 +133,7 @@
|
||||
.\" ========================================================================
|
||||
.\"
|
||||
.IX Title "chasquid.conf 5"
|
||||
.TH chasquid.conf 5 "2019-07-15" "" ""
|
||||
.TH chasquid.conf 5 "2020-05-13" "" ""
|
||||
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
||||
.\" way too many mistakes in technical documents.
|
||||
.if n .ad l
|
||||
@@ -157,7 +157,9 @@ Some values might be repeated, for example the listening addresses.
|
||||
.IP "\fBhostname\fR (string):" 8
|
||||
.IX Item "hostname (string):"
|
||||
Default hostname to use when saying hello. This is used to say hello to
|
||||
clients, for aesthetic purposes. Default: the system's hostname.
|
||||
clients (for aesthetic purposes), and as the \s-1HELO/EHLO\s0 domain on outgoing \s-1SMTP\s0
|
||||
connections (so ideally it would resolve back to the server, but it isn't a
|
||||
big deal if it doesn't). Default: the system's hostname.
|
||||
.IP "\fBmax_data_size_mb\fR (int):" 8
|
||||
.IX Item "max_data_size_mb (int):"
|
||||
Maximum email size, in megabytes. Default: 50.
|
||||
|
||||
@@ -25,7 +25,9 @@ Some values might be repeated, for example the listening addresses.
|
||||
=item B<hostname> (string):
|
||||
|
||||
Default hostname to use when saying hello. This is used to say hello to
|
||||
clients, for aesthetic purposes. Default: the system's hostname.
|
||||
clients (for aesthetic purposes), and as the HELO/EHLO domain on outgoing SMTP
|
||||
connections (so ideally it would resolve back to the server, but it isn't a
|
||||
big deal if it doesn't). Default: the system's hostname.
|
||||
|
||||
=item B<max_data_size_mb> (int):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user