X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/c9771b0f607127d89018dd79bab6febb14db3d6d..bd0f95ded48f560cb1f9f8b808e1abaabeb4d4ec:/src/src/spool_out.c diff --git a/src/src/spool_out.c b/src/src/spool_out.c index 713584091..9c5e8eb33 100644 --- a/src/src/spool_out.c +++ b/src/src/spool_out.c @@ -5,6 +5,7 @@ /* Copyright (c) The Exim Maintainers 2020 - 2022 */ /* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* Functions for writing spool files, and moving them about. */ @@ -191,7 +192,7 @@ if (sender_helo_name) spool_var_write(fp, US"helo_name", sender_helo_name); if (sender_host_address) { if (is_tainted(sender_host_address)) putc('-', fp); - fprintf(fp, "-host_address %s.%d\n", sender_host_address, sender_host_port); + fprintf(fp, "-host_address [%s]:%d\n", sender_host_address, sender_host_port); if (sender_host_name) spool_var_write(fp, US"host_name", sender_host_name); } @@ -205,7 +206,7 @@ if (sender_host_auth_pubname) if (interface_address) { if (is_tainted(interface_address)) putc('-', fp); - fprintf(fp, "-interface_address %s.%d\n", interface_address, interface_port); + fprintf(fp, "-interface_address [%s]:%d\n", interface_address, interface_port); } if (smtp_active_hostname != primary_hostname)