rule patterns
Glenn Steen
glenn.steen at gmail.com
Tue Dec 1 13:35:53 GMT 2009
2009/12/1 Ralph Bornefeld-Ettmann <ilikeuce at bornefeld-ettmann.de>:
> Frank Cusack schrieb:
>>
>> OK this is definitely the last question! :)
>>
>> rules/README example patterns:
>>
>> *@sub.domain.com # Any user at 1 domain
>> *@*.domain.com # Any user at any sub-domain of "domain.com"
>>
>> host:mail.example.com # Any hostname
>> host:example.com # Any domain name
>> host:mail*.example.com # Any hostname or domain name with wildcards
>>
>> Shouldn't the first host: example say "a single hostname"? And the 2nd
>> say "a single domain name"? Likewise the 3rd example.
>>
>> Is *@domain.com equivalent to host:domain.com? It would seem so although
>> since "host:" isn't really defined I'm not 100% sure it means the part
>> after the "@" in the email address being tested. (only 99.9% sure)
>>
>> But really what I wanted to get to is that bounce.rules has:
>>
>> #From: yourcustomer.com yes
>>
>> which doesn't match any of the example patterns in README. Is
>> bounce.rules
>> in error?
>>
>> -frank
>
> host means host - quite simple.
>
> From: host:mail.example.com yes
>
> reads like this :
>
> If a mail comes from host mail.example.com (no matter what sender domain is
> used) then hand over "yes" to the related variable.
>
>
> From: mail.example.com yes
> From: *@mail.example.com yes
>
> read the same
>
> If a mail comes from domain mail.example.com then hand over "yes"
>
> From: *@example.com yes
>
> this handles only mails from example.com, the mail.example.com domain has to
> be handeled separately
>
> From: *@*.example.com yes
>
> and this handles mails from any subdomain of example.com but not directly
> from example.com
>
>
> From: *@*example.com yes
>
> this handles mails from example.com and its subdomains but also from
> anyexample.com, myexample.com, dumbexample.com ......
>
>
> HTH
>
> Ralph
>
... And you shouldn't be using the easily spoofable things above, but
rather use the IP address of your customers sending MTA!
And really think hard and long if the bounce thing should be used at all;-).
Cheers
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner
mailing list