[SA-exim] sa-exim not calling spamc to remote host
Dan Egli
dan at eglifamily.dnsalias.net
Fri Apr 16 13:31:20 PDT 2004
Chirik wrote:
> On Fri, 16 Apr 2004, Dan Egli wrote:
>
>
>>ret=execl(SAspamcpath, "spamc", "-d <Spamassassin Server> -s",
>>string_sprintf("%d", SAmaxbody+16384), NULL);
>
>
> Try this:
>
> ret=execl(SAspamcpath, "spamc", "-d", "<Spamassassin Server>", "-s",
> string_sprintf("%d", SAmaxbody+16384), NULL);
>
> Every argument needs to be a seperate parameter to execl.
>
> Using "-d <Spamassassin Server> -s" is the same as running
>
> spamc "-d <Spamassassin Server> -s" maxsize
>
> where you really want
>
> spamc -d <Spamassassin Server> -s maxsize
>
Tried that. No go. Same result. Here's the whole code block (only a few
lines). Can someone see whats up?
if(SAspamcSockPath)
{
ret=execl(SAspamcpath, "spamc", "-d",
"mail.flickinger-sutterfield.com", "-s", string_sprintf("%d",
SAmaxbody+16384), NULL);
// ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d",
SAmaxbody+16384), "-U", SAspamcSockPath, NULL); // Changed
CHECKERR(ret,string_sprintf("exec %s", SAspamcpath),__LINE__);
}
else
{
// ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d",
SAmaxbody+16384), NULL);
ret=execl(SAspamcpath, "spamc", "-d",
"mail.flickinger-sutterfield.com", "-s", string_sprintf("%d",
SAmaxbody+16384), NULL);
CHECKERR(ret,string_sprintf("exec %s", SAspamcpath),__LINE__);
}
More information about the SA-Exim
mailing list