On Mon, 2009-06-29 at 09:19 -0500, Noel Jones wrote: > Steve wrote: > > The one observation I've made is there is no way of spotting in the logs > > that the mail was subjected to a whitelist. For example; > > > > map: > > example.com OK putting text here does not log it > > > > I'm guessing I can do this > > example.com WARN whitelisted > > example.com OK > > Only one action is allowed per lookup. If you want to note in > the logs or use PREPEND to add a header indicating the mail > was whitelisted, you'll need two lookup tables - first to WARN > or PREPEND, then another table to OK. > > I suppose you can use smtpd_restriction_classes to create a > LOG_OK class, something like > smtpd_restriction_classes = LOG_OK > LOG_OK = > check_client_access regexp:/etc/postfix/mylog > permit > > # mylog > /^/ WARN whitelisted > > Then use "LOG_OK" rather than OK in your access tables. > > > -- Noel Jones
I can confirm this does exactly what is needed - thank you Noel. In addition I also have to white list the domain in Spamassassin for it to come on through. The only thing breaking near perfect white listing flow is the Postfix header and body checks. It's a real shame these cannot be skipped over for trusted / white listed clients - but as I told my wife "You can't have everything" :-) Thanks once more Noel. Really appreciated.