Menu

#117 Send via MX

v1.0 (example)
open
None
5
2025-08-13
2025-08-07
Asteriksz
No

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

Related

Support Requests: #117

Discussion

  • Graeme Walker

    Graeme Walker - 2025-08-07

    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.

     
    • Asteriksz

      Asteriksz - 2025-08-08

      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:

      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.


      [support-requests:#117]
      https://sourceforge.net/p/emailrelay/support-requests/117/ Send via MX

      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


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/emailrelay/support-requests/117/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #117

  • Graeme Walker

    Graeme Walker - 2025-08-08

    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.

     
  • Asteriksz

    Asteriksz - 2025-08-13

    Thanks for your help, I succeeded setting it up :)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.