From: Wietse Venema (no email)
Date: Sun Oct 14 2001 - 11:54:30 EDT
dict_tcp is not finished, as you may have inferred from
1 - The fact that it is turned off explicitly in the source code.
2 - Absence of documentation, including absence of any statement
that it exists.
To use UNIX-domain sockets, rename dict_tcp to dict_sock, and
specify the transport name in the destination (unix:pathname,
inet:pathname) just like other Postfix parts already do.
dict_tcp (or whatever) will change completely as I am replacing
all the Postfix inter-process protocols.
Wietse
Jeremy Howard:
> I'm trying to create a custom smtpd_sender_restrictions map by using:
> smtpd_sender_restrictions =
> check_sender_access tcp:localhost:33333,
> permit_mynetworks
>
> I've got a little daemon running on port 33333, and I've compiled in
> dict_tcp by removing the "#ifdef 0" around it in the Postfix source.
>
> The daemon is being contacted just fine, and it's receiving "get <user>" as
> expected. But, nothing I return seems to work right. If I return "500
> Permission denied\n" I get "warning: read TCP map reply from
> localhost:33333: unexpected EOF (Success)" in the log, and the mail goes
> through anyway. If I return "REJECT\n" I get "malformed reply REJECT" in the
> log.
>
> Am I trying to do something with dict_tcp that isn't supported? If so, can
> anyone point me to some sample code showing how to get this working?
>
> Finally, I want to create a dict that uses unix sockets rather than tcp. But
> the dict_unix.c name is taken. What should I call this new dict type? What
> is the wire protocol for dicts that are used for check_sender_access et al?
>
>
> -
> To unsubscribe, send mail to with content
> (not subject): unsubscribe postfix-users
>
>
-
To unsubscribe, send mail to with content
(not subject): unsubscribe postfix-users
|
|
|