Hi,
when I try to set up e-mailrelay to send via MX (not smarthost), I receive error "... setting forward-to-address [] (mx: dns socket error)" - despite that I can resolve DNS correctly. What am I missing?
Regards,
Asteriksz
I suppose your default nameserver addresses might be unix-domain sockets. Try specifying the nameserver address explicitly. Also use --verbose twice to get more logging from the mx filter.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suppose your default nameserver addresses might be unix-domain sockets.
Try specifying the nameserver address explicitly. Also use --verbose twice
to get more logging from the mx filter.
Status: open Group: v1.0 (example) Created: Thu Aug 07, 2025 01:50 PM UTC by Asteriksz Last Updated: Thu Aug 07, 2025 01:50 PM UTC Owner: Graeme Walker
Hi,
when I try to set up e-mailrelay to send via MX (not smarthost), I receive
error "... setting forward-to-address [] (mx: dns socket error)" - despite
that I can resolve DNS correctly. What am I missing?
Regards,
Asteriksz
I think you just need to remove the "--filter=mx:".
You have the mx filter running server-side with the default 127.0.0.1 name server address, so it fails the message. The client-side filter with the correct nameserver address never runs at all.
Also note that the split filter should be the last server-side filter because it might create new messages and any subsequent server-side filters will only operate on the original message and not the copies.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I suppose your default nameserver addresses might be unix-domain sockets. Try specifying the nameserver address explicitly. Also use --verbose twice to get more logging from the mx filter.
I'm working on Windows servers, the DNS is also Windows. I'm running this
command, but the DNS still pointing to localhost:
emailrelay.exe --as-server --filter=split: --client-filter="mx:10.1.1.1:53"
--forward-to=127.0.0.1:9 --spool-dir=C:\ProgramData\E-MailRelay\Spool
--filter=mx: --verbose --verbose
--log-file=C:\ProgramData\E-MailRelay\ManualLogs\emailrelay-log-%d.txt
emailrelay: info: filter [split:,mx:]: [emailrelay.266396.1754637303.1]
emailrelay: info: filter [split:] updating
emailrelay: info: filter [mx:] looking up [***.com]
emailrelay: info: mx: question: mx [***.com] to 127.0.0.1
emailrelay: info: filter [mx:]: [emailrelay.266396.1754637303.1]: setting
forward-to-address [] (mx: dns socket error)
On Thu, Aug 7, 2025 at 8:14 PM Graeme Walker graeme_walker@users.sourceforge.net wrote:
Related
Support Requests: #117
I think you just need to remove the "--filter=mx:".
You have the mx filter running server-side with the default 127.0.0.1 name server address, so it fails the message. The client-side filter with the correct nameserver address never runs at all.
Also note that the split filter should be the last server-side filter because it might create new messages and any subsequent server-side filters will only operate on the original message and not the copies.
Thanks for your help, I succeeded setting it up :)