spamd on remote host - was Feature

"Danilo Lotina F." <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
Hi,

  I've modified a couple of lines adding SAspamcHost option in sa-exim.conf:
Example:
SAspamcHost: 200.14.80.82

  It works fine ! :-)


--- sa-exim.c.orig      Wed Mar 10 03:19:20 2004
+++ sa-exim.c   Sun May  9 16:34:36 2004
@@ -527,6 +527,7 @@
     /* Options we read from /etc/exim4/sa-exim.conf */
     static char *SAspamcpath=SPAMC_LOCATION;
     static char *SAspamcSockPath=NULL;
+    static char *SAspamcHost="127.0.0.1";
     static char *SAEximRunCond="0";
     static char *SAEximRejCond="1";
     static int SAmaxbody=250*1024;
@@ -667,6 +668,7 @@
            M_CHECKFORVAR(SAEximDebug, "%d");
            M_CHECKFORSTR(SAspamcpath);
            M_CHECKFORSTR(SAspamcSockPath);
+           M_CHECKFORSTR(SAspamcHost);
            M_CHECKFORSTR(SAEximRunCond);
            M_CHECKFORSTR(SAEximRejCond);
            M_CHECKFORVAR(SAmaxbody, "%d");
@@ -868,9 +870,10 @@
        }
        else
        {
-           ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d",
SAmaxbody+16384), NULL);
+           ret=execl(SAspamcpath, "spamc", "-s", string_sprintf("%d",
SAmaxbody+16384), "-d", SAspamcHost, NULL);
            CHECKERR(ret,string_sprintf("exec %s", SAspamcpath),__LINE__);
        }
+
     }

     if (SAEximDebug > 8)


> -----Mensaje original-----
> De: Danilo Lotina F. [mailto:[email protected]]
> Enviado el: Viernes, 07 de Mayo de 2004 12:31
> Para: [email protected]
> Asunto: Feature
>
>
> Hi,
>
>    I'm new in this list, however I use sa-exim from many months
> in five relay servers with over one million mails procesing per
> day each one.
>
>    I like to suggest sa-exim option in order to specify spamd IP
> address (and port number).
>
>
> Regards!
>
>
> Danilo Lotina F.
> Gerente Técnico
> NetGlobalis S.A
> <[email protected]>
>
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.