Carlos Williams wrote:
> Bill - I got my example from Ralph Hildebrandt's Postfix config
> directly from his site:
>
> http://www.arschkrebs.de/postfix/#chapter5
>
> Respectfully it's 3 years old but he does have it the exact way I do:
>
> /^localhost$/                     550 Don't use my own domain (localhost)
> /^arschkrebs\.de$/                550 Don't use my own domain
> /^postfixshrine.\org$/            550 Don't use my own domain
> /^88\.198\.105\.204$/               550 Spammer comes to me, Greets me
> with my own IP, His mail I shall not see.
> /^\[88\.198\.105\.204\]$/           550 Spammer comes to me, Greets me
> with my own IP, His mail I shall not see.
> /^fatush\.arschkrebs\.de$/        550 Don't use my own hostname
> /^mail\.postfixshrine.\org$/              550 Don't use my own hostname
> /^[0-9.-]+$/                        550 Your software is not RFC 2821
> compliant: EHLO/HELO must be a domain or an address-literal (IP
> enclosed in []) - not a naked IP.
>
> Are you saying that his example is incorrect and wont properly work?
> It's strange because he has it as you suggest for the '.de' TLD
> however not for the '.org' for whatever reason and I don't understand
> why. Thanks for any clarification!
>   

The point is that there are a couple of typos in those rules.

/^postfixshrine.\org$/

The backslash should come before the period.  It will actually work the
other way, but it allows any character to be there rather than
restricting it to a literal period.  The same is true for the other
'.org' domain as well.

\.org  = period followed by 'org'

.\org  = any character followed by 'org'  (the backslash is ignored)

-- 
Bowie

Reply via email to