Re: Invalid mbox entries

2019-08-09 Thread Michael Warmuth-Uhl

Hello.

Thanks to all for your suggestions. I'm going to replace procmail now.
On that one mailbox it was not even really used (procmailrc was empty).

On 8/9/19 7:34 PM, Gilles Chehade wrote:

it was not necessary with OpenBSD 6.3 because OpenSMTPD was doing things
wrong by prepending it itself in some cases and not in others.
with OpenBSD 6.4, the mda layer was normalized so that there are not any
special cases anymore, which means the procmail command line option must
be used now.


This explains the changed behavior. Good to know.

Bye,

Michael



Re: Invalid mbox entries

2019-08-09 Thread d . rauschenb
Hi,

$ cat .forward
"|exec /usr/local/bin/procmail -f %{mbox.from} || exit 75"


On Fri, Aug 09, 2019 at 07:34:29PM +0200, Gilles Chehade wrote:
> On Fri, Aug 09, 2019 at 01:19:25AM +0200, Michael Warmuth-Uhl wrote:
> > Hi Gilles,
> > 
> > On 8/8/19 9:30 AM, Gilles Chehade wrote:
> > > What happens if you call mail.local directly, bypassing smtpd altogether ?
> > 
> > Thanks for your hint. It helped finding the issue.
> > 
> > $ cat .forward
> > | /usr/local/bin/procmail
> > 
> > So it seems procmail is not nice to the mboxes anymore. Removing
> > it everything is fine again.
> > 
> 
> there's an option to let procmail prepend the From delimiter but I don't
> recall what it is, know that it exists though.
> 
> it was not necessary with OpenBSD 6.3 because OpenSMTPD was doing things
> wrong by prepending it itself in some cases and not in others.
> 
> with OpenBSD 6.4, the mda layer was normalized so that there are not any
> special cases anymore, which means the procmail command line option must
> be used now.
> 
> that being said, please don't use procmail, the code is unreadable so it
> is impossible to audit (not exagerating, have a look for yourself), it's
> also requesting to be setuid which is a red flag and finally there are a
> few modern alternatives that are far better, fdm being one of them.
> 
> Friends don't let friends use procmail.
> 
> -- 
> Gilles Chehade   @poolpOrg
> 
> https://www.poolp.orgpatreon: https://www.patreon.com/gilles



Re: Invalid mbox entries

2019-08-09 Thread Gilles Chehade
On Fri, Aug 09, 2019 at 01:19:25AM +0200, Michael Warmuth-Uhl wrote:
> Hi Gilles,
> 
> On 8/8/19 9:30 AM, Gilles Chehade wrote:
> > What happens if you call mail.local directly, bypassing smtpd altogether ?
> 
> Thanks for your hint. It helped finding the issue.
> 
> $ cat .forward
> | /usr/local/bin/procmail
> 
> So it seems procmail is not nice to the mboxes anymore. Removing
> it everything is fine again.
> 

there's an option to let procmail prepend the From delimiter but I don't
recall what it is, know that it exists though.

it was not necessary with OpenBSD 6.3 because OpenSMTPD was doing things
wrong by prepending it itself in some cases and not in others.

with OpenBSD 6.4, the mda layer was normalized so that there are not any
special cases anymore, which means the procmail command line option must
be used now.

that being said, please don't use procmail, the code is unreadable so it
is impossible to audit (not exagerating, have a look for yourself), it's
also requesting to be setuid which is a red flag and finally there are a
few modern alternatives that are far better, fdm being one of them.

Friends don't let friends use procmail.

-- 
Gilles Chehade @poolpOrg

https://www.poolp.orgpatreon: https://www.patreon.com/gilles



Re: Invalid mbox entries

2019-08-09 Thread Jan Stary
On Aug 09 01:19:25, michael.warmuth-...@suljee.de wrote:
> Hi Gilles,
> 
> On 8/8/19 9:30 AM, Gilles Chehade wrote:
> > What happens if you call mail.local directly, bypassing smtpd altogether ?
> 
> Thanks for your hint. It helped finding the issue.
> 
> $ cat .forward
> | /usr/local/bin/procmail
> 
> So it seems procmail is not nice to the mboxes anymore. Removing
> it everything is fine again.

fdm does a better job than procmail