On 6/3/2016 6:41 PM, Homer Wilson Smith wrote: > > I believe postfix uses the envelope From and To in order > determine what to block. > > Is there a way to have postfix use the header From and To > instead?
The check_sender_access and check_recipient_access maps can only check the envelope address -- that's the only address postfix knows when those tests are run. To block specific From: or To: header content, use the header_checks feature. Keep in mind that the header content may be quite different from the envelope. http://www.postfix.org/postconf.5.html#header_checks http://www.postfix.org/header_checks.5.html -- Noel Jones