So, like, the other day David Saez mumbled:
Hi !!
The current Exim ACL is completly useless, it needs to be completly
rewritten. It will be easy to do it using Meng's spfd, as soon as
Hmm... So if I get the drift, that would then turn the ACL into
a simpler call-out to the spfd for resolution kind of mechanism, right?
Meng has a spfd that suppots unix domain sockets I will rewrite the
acl.
Hmmm. OK. But is spfd's UNIX domain sockets really an issue?
I thought it was new TXT record format/argument processing.
I poked my nose into spfd, and it has parts like the following
from Mail::SPF::Query-1.7pre3. It _looks_ like it is supposed
to support UNIX domain sockets... :-) I confess I've not fired
it up and tested it yet.
Thanks,
jdl
# ./spfd -path=/var/spfd # unix domain socket
# ./spfd -port=5970 -path=/var/spfd # both
#
use Mail::SPF::Query;
use Socket;
if (not $port and not $path) {
print "usage: spfd ( -port=5970 | -path=/var/spfd )\n";
print "usage: spfd assuming -port=5970\n";
$port=5970;
}
# fork one for the port, and one for the path.
# TODO: use something smarter, like IO::Select, to do both in one process.
my @args;
my $sock_type;
my $do_path = 1;
if ($port) {
$sock_type = "inet";
@args = (Listen => 1,
LocalPort => $port,
ReuseAddr => 1
);
if ($do_path and $path) {
$sock_type = "unix";
unlink $path if -S $path;
@args = (Listen => 1,
Local => $path,
);
my $server = $sock_type eq "inet" ? IO::Socket::INET->new(@args) :
IO::Socket::UNIX->new(@args);
-------
Sender Permitted From: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
Latest draft at http://spf.pobox.com/draft-mengwong-spf-02.txt
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to
http://v2.listbox.com/member/?listname(_at_)©#«Mo\¯HÝÜîU;±¤Ö¤Íµø?¡