Re: [Dovecot] Sieve vacation reply problem (Dovecot+Sieve/Sendmail/Horde)

2013-08-29 Thread Stephan Bosch

On 8/21/2013 7:51 PM, mego...@inboxalias.com wrote:

[mail.err] dovecot: lda(exampleuser): Error: sieve: original envelope recipient 
address 'exampleuser@dovecot_localhost' is unparsable



This is the core of your problem. The '_' is not an allowed character 
according to the SMTP `Domain' syntax 
(https://tools.ietf.org/html/rfc5321#section-4.1.2). The current 
implementation of Pigeonhole follows that quite strictly for parsing 
envelope addresses.


I think I'll make this a bit more lenient in the future, since you're 
not the first to complain about things like this (e.g. space characters 
in unquoted local part).


Regards,

Stephan.



Re: [Dovecot] sieve vacation reply

2011-10-04 Thread Denny Schierz
Am Dienstag, den 02.08.2011, 20:14 +0200 schrieb Stéphane Wartel:
> Hi Stephan,
> 
> Yep, after some tests you 're right, it's not possible.
> So, I use :addresses in sieve script and will try -a or -r arguments in 
> LDA command from postfix with the next release.

did you get it working with -a or -r ?

cu denny


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stéphane Wartel

Hi Stephan,

Yep, after some tests you 're right, it's not possible.
So, I use :addresses in sieve script and will try -a or -r arguments in 
LDA command from postfix with the next release.


Bye,
Stephane

Le 02/08/2011 18:02, Stephan Bosch a écrit :

On 8/2/2011 4:08 PM, Stephan Bosch wrote:

On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote:

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is 
there anything we can do ?




If you can access the original recipient from your MTA, you can use 
both -a and -r (if needed) arguments of dovecot-lda as outlined on 
this wiki page:


http://wiki2.dovecot.org/LDA

This will make the vacation command perform the checks against the 
original recipient.


Please let me know whether this is an adequate solution for you.


Hmm, apparently this was not possible yet, so I've added it now:

http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/81f7acac82f2

This also adds support to disable this check completely (as explained 
in doc/vacation.txt). I recommend using that only when all other 
methods fail.


I've still got some more TODO items about this issue, particularly 
about adding support to check some external aliases database. I am 
still not sure how I should approach that though.


Regards,

Stephan.




Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stephan Bosch

On 8/2/2011 4:08 PM, Stephan Bosch wrote:

On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote:

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there 
anything we can do ?




If you can access the original recipient from your MTA, you can use 
both -a and -r (if needed) arguments of dovecot-lda as outlined on 
this wiki page:


http://wiki2.dovecot.org/LDA

This will make the vacation command perform the checks against the 
original recipient.


Please let me know whether this is an adequate solution for you.


Hmm, apparently this was not possible yet, so I've added it now:

http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/81f7acac82f2

This also adds support to disable this check completely (as explained in 
doc/vacation.txt). I recommend using that only when all other methods fail.


I've still got some more TODO items about this issue, particularly about 
adding support to check some external aliases database. I am still not 
sure how I should approach that though.


Regards,

Stephan.


Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stephan Bosch

On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote:

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there 
anything we can do ?




If you can access the original recipient from your MTA, you can use both 
-a and -r (if needed) arguments of dovecot-lda as outlined on this wiki 
page:


http://wiki2.dovecot.org/LDA

This will make the vacation command perform the checks against the 
original recipient.


Please let me know whether this is an adequate solution for you.


Regards,

Stephan.


Re: [Dovecot] sieve vacation reply

2011-08-02 Thread swartel

Hi Stephan,

Thanks for your reply.

After some more tests, it appears that mail aliases is the reason of 
this error. The vacation mode has been enabled on a mailbox that 
contains many aliases and one of them has been used as the recipient.
We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there 
anything we can do ?


Thanks,
Stephane



Le 02/08/2011 12:59, Stephan Bosch a écrit :

On 8/2/2011 12:21 PM, Stéphane Wartel wrote:

Hi,

I get the same error !
Any idea to fix it ?



This situation occurs when the message's To,CC,etc. headers do not 
contain the recipient address (from the envelope). This can be caused 
by a mailing list (to which it must not respond), but also by some 
translation in your mail setup. The former case is intended behavior, 
the latter is problematic. If your final recipient address does not 
match what is in the message's headers due to some translation step in 
the mail setup (e.g. aliasing), you have a problem.


You can add the address listed in the headers to the :addresses 
argument of the vacation command. That is not always a good solution 
however. This problem is a bit old already, but some new solutions 
have emerged for Dovecot v2.


So, what exactly is your situation?

Regards,

Stephan.


Le 17/05/2011 18:03, Wojciech Giel a écrit :

Hi,
I'm configuring postfix with dovecot and roundcube. I'm using flat 
files as passwdb userdb.


Everything works fine except sieve vacation reply. when i send mail 
from ex. user dennis to tytus I get "discarding vacation response 
for message implicitly delivered to".


What Am i doing wrong?
thanks

sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script 
/home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled 
script /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: 
msgid=<20110517155641.ga3...@badger.example.com>: discarding 
vacation response for message implicitly delivered to 








Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stephan Bosch

On 8/2/2011 12:21 PM, Stéphane Wartel wrote:

Hi,

I get the same error !
Any idea to fix it ?



This situation occurs when the message's To,CC,etc. headers do not 
contain the recipient address (from the envelope). This can be caused by 
a mailing list (to which it must not respond), but also by some 
translation in your mail setup. The former case is intended behavior, 
the latter is problematic. If your final recipient address does not 
match what is in the message's headers due to some translation step in 
the mail setup (e.g. aliasing), you have a problem.


You can add the address listed in the headers to the :addresses argument 
of the vacation command. That is not always a good solution however. 
This problem is a bit old already, but some new solutions have emerged 
for Dovecot v2.


So, what exactly is your situation?

Regards,

Stephan.


Le 17/05/2011 18:03, Wojciech Giel a écrit :

Hi,
I'm configuring postfix with dovecot and roundcube. I'm using flat 
files as passwdb userdb.


Everything works fine except sieve vacation reply. when i send mail 
from ex. user dennis to tytus I get "discarding vacation response for 
message implicitly delivered to".


What Am i doing wrong?
thanks

sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script 
/home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled 
script /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: 
msgid=<20110517155641.ga3...@badger.example.com>: discarding vacation 
response for message implicitly delivered to 






Re: [Dovecot] sieve vacation reply

2011-08-02 Thread Stéphane Wartel

Hi,

I get the same error !
Any idea to fix it ?

Regards,
Stephane

Le 17/05/2011 18:03, Wojciech Giel a écrit :

Hi,
I'm configuring postfix with dovecot and roundcube. I'm using flat 
files as passwdb userdb.


Everything works fine except sieve vacation reply. when i send mail 
from ex. user dennis to tytus I get "discarding vacation response for 
message implicitly delivered to".


What Am i doing wrong?
thanks




sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script 
/home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled 
script /home/tytus/.dovecot.sieve
2011-05-17 16:56:45 deliver(tytus): Info: sieve: 
msgid=<20110517155641.ga3...@badger.example.com>: discarding vacation 
response for message implicitly delivered to 


/etc/postfix/main.cf
...
mailbox_command = /usr/lib/dovecot/deliver -n -m "${EXTENSION}"
...


# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1
log_path: /var/log/dovecot.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps managesieve
listen(default): *
listen(imap): *
listen(managesieve): 127.0.0.1:2000
ssl_ca_file: /etc/postfix/ssl/cacert.pem
ssl_cert_file: /etc/postfix/ssl/servercrt.pem
ssl_key_file: /etc/postfix/ssl/serverkey.pem
ssl_cipher_list: ALL:!LOW:!SSLv2
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_location: maildir:~/Maildir:INDEX=~/Maildir/indexes
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota autocreate
mail_plugins(imap): quota imap_quota autocreate
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
imap_client_workarounds(default): tb-extra-mailbox-sep netscape-eoh 
delay-newmail outlook-idle
imap_client_workarounds(imap): tb-extra-mailbox-sep netscape-eoh 
delay-newmail outlook-idle

imap_client_workarounds(managesieve):
lda:
  postmaster_address: postmaster
  mail_plugins: sieve quota autocreate
  quota_full_tempfail: yes
  deliver_log_format: msgid=%m: %$
  rejection_reason: Your message to <%t> was automatically rejected:%n%r
  log_path: /var/log/sieve.log
auth default:
  mechanisms: plain login cram-md5
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: pam
  passdb:
driver: passwd-file
args: scheme=cram-md5 /etc/dovecot/passwd
  userdb:
driver: passwd-file
args: /etc/dovecot/passwd
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/dovecot-auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
plugin:
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve
  autocreate: INBOX
  autocreate2: Sent
  autocreate3: Trash
  autocreate4: Drafts
  autocreate5: Junk
  autosubscribe: INBOX
  autosubscribe2: Sent
  autosubscribe3: Trash
  autosubscribe4: Drafts
  autosubscribe5: Junk
  quota: maildir:User quota
  quota_rule: Trash:storage=10M
  quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95