rule patterns

Glenn Steen glenn.steen at gmail.com
Tue Dec 1 22:43:01 GMT 2009


But of course:-). Only time it might be of some use, that I can see,
would be in a closed environment of some type.
... Kind of think that's what Frank is on about.

2009/12/1, Rick Cooper <rcooper at dwford.com>:
> ----Original Message----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Glenn
> Steen Sent: Tuesday, December 01, 2009 8:36 AM To: MailScanner discussion
> Subject: Re: rule patterns
>
>> 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
>
> Glenn, didn't you mean to say "Dear God in heaven never use a bounce thing"?
>
> Rick
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>

-- 
Skickat från min mobila enhet

-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list