On Tue, 23 Mar 2004, Alain Knaff wrote:
> In case anybody is interested, attached is the srs.m4 file that we are
> using on lll.lu & linux.lu .
>
> Just drop it into /usr/share/sendmail-cf/hack/srs.m4 (RedHat / Fedora)
> or /usr/share/sendmail/hack/srs.m4 (SuSE)
>
> Then, add the following lines to your /etc/mail/sendmail.mc (RedHat /
> Fedora) or /etc/mail/linux.mc (SuSE):
>
> define(`NO_SRS_FILE',`/etc/mail/no-srs-mailers')dnl
> define(`NO_SRS_FROM_LOCAL')dnl
> define(`SRS_DOMAIN',`lll.lgl.lu')dnl
> HACK(`srs')dnl
I tried this with minor changes (rename to pysrs, invoke python scripts).
I get:
[root@spidey mail]# /usr/lib/sendmail -bt -Cspidey.cf
WARNING: Ruleset ParseLocal=98 has multiple definitions
WARNING: Ruleset EnvFromSMTP has multiple definitions
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
>
I was amazed that the cf macros were smart enough to merge lines
from multiple features for a subroutine. But I apparently didn't
need to be. :-)
Or is sendmail smart enough to do this, even though it complains with
a warning? Or does it use the last definition?
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Very few of our customers are going to have a pure Unix
or pure Windows environment." - Dennis Oldroyd, Microsoft Corporation
> In case anybody is interested, attached is the srs.m4 file that we are
> using on lll.lu & linux.lu .
>
> Just drop it into /usr/share/sendmail-cf/hack/srs.m4 (RedHat / Fedora)
> or /usr/share/sendmail/hack/srs.m4 (SuSE)
>
> Then, add the following lines to your /etc/mail/sendmail.mc (RedHat /
> Fedora) or /etc/mail/linux.mc (SuSE):
>
> define(`NO_SRS_FILE',`/etc/mail/no-srs-mailers')dnl
> define(`NO_SRS_FROM_LOCAL')dnl
> define(`SRS_DOMAIN',`lll.lgl.lu')dnl
> HACK(`srs')dnl
I tried this with minor changes (rename to pysrs, invoke python scripts).
I get:
[root@spidey mail]# /usr/lib/sendmail -bt -Cspidey.cf
WARNING: Ruleset ParseLocal=98 has multiple definitions
WARNING: Ruleset EnvFromSMTP has multiple definitions
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
>
I was amazed that the cf macros were smart enough to merge lines
from multiple features for a subroutine. But I apparently didn't
need to be. :-)
Or is sendmail smart enough to do this, even though it complains with
a warning? Or does it use the last definition?
--
Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Very few of our customers are going to have a pure Unix
or pure Windows environment." - Dennis Oldroyd, Microsoft Corporation