[SA-exim] spamd on remote host - was Feature

Danilo Lotina F. dlotina at netglobalis.net
Sun May 9 18:01:17 PDT 2004


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:dlotina at netglobalis.net]
> Enviado el: Viernes, 07 de Mayo de 2004 12:31
> Para: sa-exim at lists.merlins.org
> 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
> <dlotina at netglobalis.net>
>




More information about the SA-Exim mailing list