Index: [Article Count Order] [Thread]

Date:  Fri, 29 Sep 2006 16:45:44 -0400
From:  Richard Siddall <cobalt (at mark) elirion.net>
Subject:  [coba-e:07312] Re: New Here
To:  coba-e (at mark) bluequartz.org
Message-Id:  <451D85F8.8080007 (at mark) elirion.net>
In-Reply-To:  <0c7601c6e403$a794a7d0$6700a8c0@OfficeKen>
References:  <009401c6e3fe$c31e9ec0$6400a8c0@YOUR4105E587B6> <0c7601c6e403$a794a7d0$6700a8c0@OfficeKen>
X-Mail-Count: 07312

Ken Marcus - Precision Web Hosting, Inc. wrote:
[snip]
>>> ######################################################################
>>> ### check_relay -- check hostname/address on SMTP startup
>>> ######################################################################
>>>
>>> SLocal_check_relay
>>> #begin ken changes
>>> # Put address in cannonical form
>>> R$*[tab]$: $>Parse0 03 $1
>>> R$* < $* > $*[tab]$: $1 < $2 . > $3
>>> R$* < $* . . > $*[tab]$1 < $2 . > $3
>>> # Test against pop-before-relay hash
>>> R$*[tab]$: < $&{client_addr} >
>>> R< $* >[tab]$(popauth $1 $)
>>> R$* < MATCH >[tab]$#OK
>>>
>>> #end ken changes
[snip]
> There may be, but I don't know how to use the sendmail.mc

Ken, Darrell, Thom,

This looks like it's a variation of the POP-before-relay code from the
RaQs.  I can think of two ways of adding that to your sendmail
configuration.

1/ IIRC, the sendmail update packages for the RaQs used to include a
Perl script to add POP-before-relay to sendmail.cf.  So, just find the
appropriate RaQ xxx sendmail update package off the Sun downloads site
and extract the Perl script, then run it over your sendmail.cf.  This
allows you to keep modifying the sendmail.mc file.  (Looks like it's
scripts/pop-before-smtp_cf_update.pl in RaQ4-en-System-1.0.7-9229.pkg
for example.)

2/ You could find the official POP-before-relay distribution.  I
remember looking at it a couple of years ago and IIRC it had an m4 hack
or feature you could use with a sendmail.mc file.  The downside of this
is you'd probably have to package the distribution up to install it on
CentOS.  Probably not worth it unless the distribution is maintained.

BTW, I haven't checked to see if POP-before-relay is part of the CentOS
distribution.

Thom, is POP-before-relay what you need, or can you get away with just
white listing the IP addresses of the customers in sendmail's access file?

Regards,

	Richard Siddall