From: Lionel B. <lio...@bo...> - 2005-01-10 17:58:11
|
Max Diehn wrote the following on 01/10/2005 05:35 PM : > Hello Lionel, > > I don't use Postfix but a proprietary / closed source smtp-server for > which I have an API. So I coded an extension for that smtp-server to > act as a policy client to sqlgrey. Now I have some problems with the > tcp connections, obviously due to the limitations of that API. > (How) Is it possible to make sqlgrey accept udp connections? You can either * try to patch SQLgrey to accept connections on an UDP port instead of the default TCP : - search for "my $server = bless {" - 3 lines below, hardcode your desired UDP port like this : - port = <yourport>, proto = 'udp', if it works, you'll have to maintain your own SQLgrey branch. * or write a wrapper that will speak with your server with a protocol it can understand and with the Postfix protocol with SQLgrey (more complex but better as it means you can switch to whatever policy daemon you want and won't have to maintain your own version of SQLgrey). For a simple protocol description have a look at http://www.postfix.org/SMTPD_POLICY_README.html. You'll be on your own for this though, I can't test this as I don't have access to your mail-server and am not inclined to spend time on integration with other SMTP servers anyway. Lionel; |