Re: SRS sendmail integration
"Stuart D. Gathman" <[email protected]>
| Newsgroups | gmane.mail.spam.srs.general |
|---|---|
| Message-ID | <[email protected]> |
I am pretty dense when it comes to sendmail-cf. I can't get
the NO_SRS_FILE to work.
It generates a class:
# Class of destination mailers not needing SRS
F{noSrsMailers}-o /etc/mail/no-srs-mailers %[^\#]
And MakeSrs looks like this:
SMakeSrs
#
# Prevent SRS encapsulation if "To" address is SRS
R$* $: $1 $>IsSrs $&u
R$* YES $@ $1
R$* NO $: $1
#
# If destination mailer is in non-SRS list, do not apply SRS
# This is intended for handling communication between secondary MX and
# primary MX
R$* $: $&h $| $1
R$={noSrsMailers} $| $* $@ $2
R$* $| $* $: $2
R$* $: $(make_srs $1 $)
The no-srs-mailers file has hostnames in it (changed to protect the innocent):
# no-srs-mailers - list domains we should not SRS encode for when we
# send to them. E.g. primary MX servers for which we are a secondary.
#
mycust.com
anothercust.com
When I send mail to [email protected], the message is still SRS encoded.
It looks like $&h would be mycust.com, and it should exit the
subrout early - but somehow make_srs is still called.
Do I have the format wrong? Or does $&h mean the *source* host?
Why would I want to not SRS encode certain source hosts? (That
would be covered by NO_SRS_FROM_LOCAL, right?)
How do you trace cf macros to try and debug them?
--
Stuart D. Gathman <[email protected]>
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