mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
courier: SMTP falls back to A when MX does not exist
Make the SMTP courier fall back to the A record when MX does not exist, as per standard behaviour. This is not implemented nicely, because Go's API does not give a clear signal if the answer was that there are no MX records or something else happens. For now, we implement it with a heuristic that should work pretty reliably, but it's definitely not very nice.
This commit is contained in:
@@ -46,8 +46,7 @@ add_user srv-chasquid someone secretpassword
|
||||
# Bypass MX lookup, so it can find srv-exim (via our host alias).
|
||||
mkdir -p .logs
|
||||
chasquid -v=2 --log_dir=.logs --config_dir=config \
|
||||
--testing__outgoing_smtp_port=2025 \
|
||||
--testing__bypass_mx_lookup &
|
||||
--testing__outgoing_smtp_port=2025 &
|
||||
|
||||
wait_until_ready 1025
|
||||
|
||||
|
||||
Reference in New Issue
Block a user