Re: sa-exim not calling spamc to remote host

Dan Egli <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
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__);
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.