:(
On Mar 7, 2018 2:05 PM, Gilles Chehade <gil...@poolp.org> wrote:
>
> to be honest, i dont think the socketmap table is usable, it was
> implemented a long time ago as a POC and somehow never got killed
> but i'm very tempted to slaughter it.
>
> gilles
>
>
> On Tue, Feb 20, 2018 at 05:43:36PM -0600, Edgar Pettijohn wrote:
> > 
> > 
> > On 02/20/18 16:54, Edgar Pettijohn wrote:
> > > 
> > > 
> > > 
> > > On 02/19/18 18:55, Edgar Pettijohn wrote:
> > > > I'm playing around with the table-socketmap from extras.  I stole a
> > > > simple socket server from beej's networking guide and adjusted it
> > > > slightly to see what the socketmap would do.
> > > > 
> > > > Basically the server just binds to a unix socket and once it gets a
> > > > connection it prints the recv()'d buffer to stdout. However, smtpd
> > > > gives a warning:
> > > > 
> > > > smtpd[65725]: warn: failure to perform a table lookup on table test
> > > > 
> > > > smtpd.conf
> > > > 
> > > > table test socketmap:/var/run/sockd.sock
> > > > 
> > > > accept from source <test> deliver to mbox
> > > > 
> > > > sockmap server output:
> > > > 
> > > > laptop$ doas ./sockd -d
> > > > new connection on socket 4
> > > > socket 4 hung up /* after killing smtpd */
> > > > 
> > > > So it is connecting, but doesn't appear to actually send anything.
> > > > 
> > > > What could be wrong?
> > > > 
> > > > 
> > > > Thanks,
> > > > 
> > > > Edgar
> > > > 
> > > > 
> > > It must be a bug.  I installed postfix to test it out and here is the
> > > results from postmap:
> > > 
> > > postmap -q "/hello/"socketmap 
> > > <http://www.postfix.org/socketmap_table.html>:unix://var/run/sockd.sock:test
> > >  The server prints: 10:test hello, /I suppose I could have been clearer.  
> > > The test with opensmtpd was via telnet session.
> > A little more debugging. Running table-socketmap from the command line gives
> > me this:
> > 
> > table-socketmap[55941]: warn: table-api: imsg_read: Socket operation on
> > non-socket
>
> -- 
> Gilles Chehade
>
> https://www.poolp.org                                          @poolpOrg
b��yǢ��m�+&j)[yƮ�쨹�޲��r��y�h�+����kiv��N�����r��zǧu���[h�+��칻�&ޢ���kiv��

Reply via email to