[exim] Sending to a socket that doesn't reply

Top Page
Delete this message
Reply to this message
Author: Neil Youngman
Date:  
To: exim-users
Subject: [exim] Sending to a socket that doesn't reply
I want to use ${readsocket{inet:example.com:1234}{data string}} to send some information to a host that does not send back any data in response. Obviously I don't want to wait for a response, so I guess I need to set a 0 second timeout and handle the fail. Has anyone done this? Any gotchas?

I'm thinking, because it will always timeout

    condition=!${readsocket{inet:example.com:1234}{data string}}


is that sensible? It feels slightly wrong to me, but I can't see any problems with it, other than a lack of obviousness.

Neil Youngman