Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-17 Thread David Dodd
The content in my INBOX looks like this...

>From MAILER-DEAMON  Mon Sep 17 17:13:08 2018
hello
X-UID: 30392
Status:
X-Keywords:

Content-Length: 1

when using dovecot-pigeonhole 0.5

It looks like this...

>From no...@nowhere.com  Mon Sep 17 17:13:08 2018
hello
X-UID: 30392
Status:
X-Keywords:

Content-Length: 1

when using dovecot-pigeonhole 0.4

--Dave


Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-17 Thread Aki Tuomi
Can you also provide the resulting email?

Aki


On 17.09.2018 09:17, David Dodd wrote:
> I was able to make it happen from the command line on the host that would 
> normally receive inbound mail for me:
>
> echo Hello | dovecot-lda -d dave -f f...@nowhere.com
>
> The output then appears as an email in my inbox.
>
> --Dave



Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-17 Thread David Dodd
I was able to make it happen from the command line on the host that would 
normally receive inbound mail for me:

echo Hello | dovecot-lda -d dave -f f...@nowhere.com

The output then appears as an email in my inbox.

--Dave


Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-16 Thread Aki Tuomi
Can you provide some instructions on how to reproduce this issue, because I 
wasn't able to.

Aki

> On 17 September 2018 at 01:28 David Dodd  wrote:
> 
> 
> You are correct, omitting the -f option results in the From being set to
> MAILER-DAEMON however dovecot-lda is being executed with the -d and the -f
> option by my sendmail.
> 
> In my sendmail confgiuration I have...
> 
> FEATURE(local_procmail, `/usr/local/libexec/dovecot/dovecot-lda',
>   `/usr/local/libexec/dovecot/dovecot-lda -d $u -f $f')
> 
> This supplies -f with the sender's address .
> 
> When I execute dovecot-lda from the command line with the -f option set, the
> From becomes MAILER-DAEMON even though it should be the value passed via -f .
> 
> --Dave


Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-16 Thread David Dodd
You are correct, omitting the -f option results in the From being set to
MAILER-DAEMON however dovecot-lda is being executed with the -d and the -f
option by my sendmail.

In my sendmail confgiuration I have...

FEATURE(local_procmail, `/usr/local/libexec/dovecot/dovecot-lda',
`/usr/local/libexec/dovecot/dovecot-lda -d $u -f $f')

This supplies -f with the sender's address .

When I execute dovecot-lda from the command line with the -f option set, the
>From becomes MAILER-DAEMON even though it should be the value passed via -f .

--Dave


Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-15 Thread Aki Tuomi
Hi!

How are you executing dovecot-lda? I can get 'MAILER-DAEMON' if I omit -f 
sender-address-here parameter.

Aki

> On 14 September 2018 at 08:46 David Dodd  wrote:
> 
> 
> To get out of the problem this bug was causing I have now downgraded the
> affectect servers to using dovecot 2.2.36 & dovecot-pigeonhole 0.4.24 .
> 
> These versions work correctly for me.
> 
> Has anyone else been able to see the same sort of problem when using 
> dovecot-2.3
> and dovecot-pigeonhole-0.5 ?
> 
> I am wondering if this is a FreeBSD porting issue or a general problem.
> 
> --Dave


Re: Problem with envelope from in Pigeonhole after upgrade

2018-09-13 Thread David Dodd
To get out of the problem this bug was causing I have now downgraded the
affectect servers to using dovecot 2.2.36 & dovecot-pigeonhole 0.4.24 .

These versions work correctly for me.

Has anyone else been able to see the same sort of problem when using dovecot-2.3
and dovecot-pigeonhole-0.5 ?

I am wondering if this is a FreeBSD porting issue or a general problem.

--Dave


Problem with envelope from in Pigeonhole after upgrade

2018-09-03 Thread David Dodd
On our FreeBSD 11.2 servers, we recently upgraded from:

dovecot2-2.2.26.0_1
dovecot-pigeonhole-0.4.16_1

to:

dovecot-2.3.2.1
dovecot-pigeonhole-0.5.2_3

Prior to the upgrade the envelope sender was as expected.

After the upgrade, the envelope sender for a user with a sieve script
configured is now being set to:

>From MAILER-DAEMON  Tue Sep 04 13:31:39 2018

The same user without a sieve script in place gets:

>From some...@gmail.com  Tue Sep 04 11:06:04 2018

This happens when manually testing by directly executing:

/usr/local/libexec/dovecot/dovecot-lda -d dgdtst -f some...@gmail.com

It happens with an empty sieve script i.e. just using the implicit keep
functionality.

I have groped around looking for a configuration setting that might fix the
behaviour but nothing I have tried helps.

Can anyone suggest what to set to correct the problem ?

-- Dave