Re: Ignore envelope header

2015-09-30 Thread Michael J Wise
> On Wed, Sep 30, 2015 at 10:46:37AM +, Ciaran Scolard wrote: > >> Is there a way to tell postfix to ignore an envelope header? >> e.g. the TO: field. > > No, because there's no such thing as an "envelope header". Messages > have envelopes, and they have headers, but these are distinct. The

Fix xtext_unquote (patch) in postfix 3.x

2015-09-30 Thread Krzysztof Wojtaś
In version 2.x there was no error. diff --git a/src/global/xtext.c b/src/global/xtext.c index e5605d7..750f2dd 100644 --- a/src/global/xtext.c +++ b/src/global/xtext.c @@ -134,8 +134,7 @@ VSTRING *xtext_unquote_append(VSTRING *unquoted, const char *quoted) VSTRING *xtext_unquote(VSTRING

panic: cleanup_find_header_start: short header without padding

2015-09-30 Thread Daniel Caillibaud
Hi, I have quite a lot (~200 / day) panic: cleanup_find_header_start: short header without padding in my mail.log eg : 2015-09-30T12:37:46.834899+02:00 mail postfix/cleanup[26180]: 6CB5AD60497: prepend: header Received: from ns236029.ovh.net (sm11.netitmail.net [91.121.52.183])??by

Ignore envelope header

2015-09-30 Thread Ciaran Scolard
Is there a way to tell postfix to ignore an envelope header? e.g. the TO: field.

Re: Ignore envelope header

2015-09-30 Thread Daniele Nicolodi
On 30/09/15 12:46, Ciaran Scolard wrote: > Is there a way to tell postfix to ignore an envelope header? > e.g. the TO: field. What should a mail transport agent do with messages for which it ignores the destination? It is not obvious to me. Cheers, Daniele

Re: panic: cleanup_find_header_start: short header without padding

2015-09-30 Thread Viktor Dukhovni
On Wed, Sep 30, 2015 at 12:54:51PM +0200, Daniel Caillibaud wrote: > I have quite a lot (~200 / day) > panic: cleanup_find_header_start: short header without padding > in my mail.log This looks like a bug in the Postfix milter support code, or its interaction with cleanup header_checks. >

Re: Ignore envelope header

2015-09-30 Thread Viktor Dukhovni
On Wed, Sep 30, 2015 at 10:46:37AM +, Ciaran Scolard wrote: > Is there a way to tell postfix to ignore an envelope header? > e.g. the TO: field. No, because there's no such thing as an "envelope header". Messages have envelopes, and they have headers, but these are distinct. What's written

Postfix SMTP pass-thru to Office365

2015-09-30 Thread Charles Marcus
Hi all, I've googled on this, but the problem I'm not sure what exactly I'm looking for. I have an existing postfix server that is authoritative for example.com, and relays all outbound mail through an outsourced anti-spam service. We are transitioning this server to Office365 (decision is out

bypass rbl listing for one domain/defined users only till removed from rbl?

2015-09-30 Thread Voytek
I have several domains on virtual mailbox Postfix server, also use several RBL lists as so; that all works well but now, of the domains, mydomain.tld needs to recive emails from a server currently blacklisted on spamhaus till the blacklist issue is resolved, how can allow such blacklisted domain

Re: panic: cleanup_find_header_start: short header without padding

2015-09-30 Thread Viktor Dukhovni
On Wed, Sep 30, 2015 at 12:54:51PM +0200, Daniel Caillibaud wrote: > I have quite a lot (~200 / day) > panic: cleanup_find_header_start: short header without padding > in my mail.log The patch below might help: diff --git a/src/cleanup/cleanup_message.c b/src/cleanup/cleanup_message.c index

Re: Postfix SMTP pass-thru to Office365

2015-09-30 Thread Viktor Dukhovni
On Wed, Sep 30, 2015 at 08:07:24AM -0400, Charles Marcus wrote: > How do I tell postfix to pass these emails on to Office365, keeping all > headrs intact, so the emails look as if they were originated/sent using > the Office365 SMTP system? I'm thinking some kind of SMTP Auth > pass-thru, but I'm

Re: Fix xtext_unquote (patch) in postfix 3.x

2015-09-30 Thread Viktor Dukhovni
On Wed, Sep 30, 2015 at 10:05:12AM +0200, Krzysztof Wojtaś wrote: > In version 2.x there was no error. The patch should also be applied to 2.11. Not just 3.x. > diff --git a/src/global/xtext.c b/src/global/xtext.c > index e5605d7..750f2dd 100644 > --- a/src/global/xtext.c > +++

Re: panic: cleanup_find_header_start: short header without padding

2015-09-30 Thread Daniel Caillibaud
Le 30/09/15 à 12:41, Viktor Dukhovni a écrit : […] VD> Second prepend of the same header. VD> VD> > 2015-09-30T12:37:46.842393+02:00 mail postfix/cleanup[26180]: panic: VD> > cleanup_find_header_start: short header without padding VD> VD> Then a milter update

Re: panic: cleanup_find_header_start: short header without padding

2015-09-30 Thread Wietse Venema
Viktor Dukhovni: > On Wed, Sep 30, 2015 at 12:54:51PM +0200, Daniel Caillibaud wrote: > > > I have quite a lot (~200 / day) > > panic: cleanup_find_header_start: short header without padding > > in my mail.log > > The patch below might help: Indeed. The bug was that all PREPENDed text was

Re: Fix xtext_unquote (patch) in postfix 3.x

2015-09-30 Thread Wietse Venema
Someone should verify that all unit tests verify both "good input" and "bad input" cases. Here, a "bad input" check was missing. Wietse Viktor Dukhovni: > On Wed, Sep 30, 2015 at 10:05:12AM +0200, Krzysztof Wojta? wrote: > > > In version 2.x there was no error. > > The patch should

Re: panic: cleanup_find_header_start: short header without padding

2015-09-30 Thread Viktor Dukhovni
On Wed, Sep 30, 2015 at 03:50:50PM +0200, Daniel Caillibaud wrote: > VD> You're also using milters, any hints as to what the milter is > VD> configured to do? > > It's for opendkim : > > smtpd_milters = inet:localhost:12345 > non_smtpd_milters = inet:localhost:12345 > milter_connect_macros = j