Where-ever you like, the order of smtpd_recipient_restrictions is up to you
as the server administator

Personally I have
          ...(snip)...
        check_recipient_maps,
        check_helo_access      hash:/etc/postfix/helo_hostnames_mynames.map,
        permit_mynetworks,
        permit_sasl_authenticated,
        check_helo_access      pcre:/etc/postfix/helo_hostnames.regexp,
          ...(snip)...

[helo_hostnames_mynames.map]
# mynames = list of MY local ip addresses. 
# Nobody should send my IP for any reason
# not even my local users
1.2.3.4 554 ACL helo_hostnames_mynames
1.2.3.5 554 ACL helo_hostnames_mynames

[helo_hostnames.regexp]
# if my local users or remote users that pass SASL 
# this gets skipped since its after my permit_ lines
# will catch *w.x.y.z* or *w-x-y-x* or variant (*w-x.y-z*)
/[0-9]{1,3}[-\.][0-9]{1,3}[-\.][0-9]{1,3}[-\.][0-9]{1,3}/ REJECT ACL
helo_hostnames_pcre





-----Original Message-----
From: Peter Param [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 14, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: [IMGate] Re: my imgate IP in the HELO



where in smtpd_recipient_restrictions should I place 
helo_hostnames_regexp?  Also do I use "Check_helo_access" ?

cheers

Peter

>>> [EMAIL PROTECTED] 09/13/03 03:58am >>>


> >> You are already doing it using helo_hostnames_regexp
>
>How is this setup.

in helo_hostnames.regexp, put these 3 lines:

/(.*[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}.*)/ 554 ACL helo_hostnames_regexp 
HELO/EHLO hostname must not contain an IP address, HELO = $1

/(.*[0-9]{2,3}\-[0-9]{1,3}\-[0-9]{1,3}.*)/ 554 ACL helo_hostnames_regexp 
HELO/EHLO hostname must not contain an IP address, HELO = $1

/(.*[0-9]{2,3}\-[0-9]{2,3}\.*)/ 554 ACL helo_hostnames_regexp HELO/EHLO

hostname must not contain an IP address, HELO = $1

>Get the fastest DSL in Connecticut.

:))  Do you separate the PTR domains of your mass-market and business 
subscribers?

give us your  whatever.cshore.com PTR domain so we can block it!  :))

Len





**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been virus scanned
and although no viruses were detected by the system, St Vincent's Hospital
accepts no liability for any consequential damage resulting from email
containing any computer viruses.

**********************************************************************

Reply via email to