Re: PATCH: Access map matches sub domain with empty parent_domain_matches_subdomains

2017-05-31 Thread Wietse Venema
Henrik Larsson: > > That always sets MA_FIND_PDMS and therefore always matches the > > subdomain. Corrected patch follows. > > I have tested the new patch, and that works for my use case as well. > > In both cases, the recipient using a subdomain of the access map was > blocked. That is

Re: PATCH: Access map matches sub domain with empty parent_domain_matches_subdomains

2017-05-31 Thread Henrik Larsson
That always sets MA_FIND_PDMS and therefore always matches the subdomain. Corrected patch follows. I have tested the new patch, and that works for my use case as well. In both cases, the recipient using a subdomain of the access map was blocked. Best regards Henrik Larsson

Re: Transport Maps Clarification/Debugging

2017-05-31 Thread Wietse Venema
Adam Tauno Williams: > I have a Postfix server which receives mail for EXAMPLE.COM > (bogasified); for for specific addresses I need to send that mail to > another SMTP server. So transform_maps! > > I have "transport_maps = hash://map-path" and If I "postmap -q > u...@example.com

Re: PATCH: Access map matches sub domain with empty parent_domain_matches_subdomains

2017-05-31 Thread Wietse Venema
> -#define LOOKUP_STRATEGY (MA_FIND_FULL | MA_FIND_NOEXT | MA_FIND_DOMAIN \ > - | MA_FIND_PDMS | MA_FIND_LOCALPART_AT) > +lookup_strategy = MA_FIND_FULL | MA_FIND_NOEXT | MA_FIND_DOMAIN > + | MA_FIND_PDMS | MA_FIND_LOCALPART_AT > + | (access_parent_style ==

Re: Header_Checks & empty Return-Path expression

2017-05-31 Thread Viktor Dukhovni
> On May 31, 2017, at 3:46 AM, rolelael wrote: > > This one not , but the 'string' is in the header From.. > > Example of Header From : > > header From: ROBBY VAN MIEGHEM The above is the complete actual header content. > from

RE: disconnect after connect

2017-05-31 Thread Giuseppe De Nicolò
Hello Everyone, well just to let you know it turn out the problem was on the TLS certificate chain , the outbound connector on o365 was trying ( and failing ) to do certificate chain validation , I solved my certificate problem and now all is ok, I didn't have access to the

Re: PATCH: Access map matches sub domain with empty parent_domain_matches_subdomains

2017-05-31 Thread Henrik Larsson
Patch follows. Add the lines with '+', remove lines with '-'. Patch builds and seem to fix my use case. Thanks a lot. Best regards Henrik Larsson

Transport Maps Clarification/Debugging

2017-05-31 Thread Adam Tauno Williams
I have a Postfix server which receives mail for EXAMPLE.COM (bogasified); for for specific addresses I need to send that mail to another SMTP server. So transform_maps! I have "transport_maps = hash://map-path" and If I "postmap -q u...@example.com hash://map-path" it returns

PATCH: Access map matches sub domain with empty parent_domain_matches_subdomains

2017-05-31 Thread Wietse Venema
Henrik Larsson: > I'm using Postfix 3.2.0 from the FreeBSD ports collection > > I experienced that access maps matches sub domains, even though > parent_domain_matches_subdomains is set to an empty value. > > What did I miss? I only want the access map to match specific domain, > not sub

Access map matches sub domain with empty parent_domain_matches_subdomains

2017-05-31 Thread Henrik Larsson
I'm using Postfix 3.2.0 from the FreeBSD ports collection I experienced that access maps matches sub domains, even though parent_domain_matches_subdomains is set to an empty value. What did I miss? I only want the access map to match specific domain, not sub domains. The log show the

RE: disconnect after connect

2017-05-31 Thread Giuseppe De Nicolò
Just as a follow up, one of the test e-mail just got throught ( no idea how come this one got in ) May 31 12:10:00 public59 postfix/smtpd[3777]: connect from mail-am5eur03lp0120.outbound.protection.outlook.com[213.199.154.120] May 31 12:10:00 public59 postfix/smtpd[3777]: setting up TLS

disconnect after connect

2017-05-31 Thread Giuseppe De Nicolò
Hello everyone, I'm setting up a relay host that is going to do some rewrite for domain name consolidation from o365 , I am having some communication problem with connection from o365 basically( if needed I can show debug level 3 of those and tcpdump ) : May 31 11:19:55

Re: Header_Checks & empty Return-Path expression

2017-05-31 Thread rolelael
OK but I was playing around now with the regexpr. and still an issue /^From:.*robby.vanmieg...@domain.be.*/ WARN TESTJE This one works /^From:.*from=<>*/ WARN from empty header This one not , but the 'string' is in the header From.. Example of Header From : header From: ROBBY VAN MIEGHEM