Re: exim+dovecot+sieve issue

2019-08-18 Thread Stephan Bosch via dovecot




On 17/08/2019 15:37, JM via dovecot wrote:

Hi,

We have mail server in production, with Exim + Dovecot + Mailman + 
OpenLDAP + Roundcube webmail server.
Openldap keeps mail accounts in db, exim uses lmtp transport to 
deliver messages to dovecot.
Mailman is responsible for mailing lists, Roundcube webmail has 
managsieve module to create sieve filters.


Exim router,transport for dovecot

localuser:
  driver = accept
  domains = +local_domains : +virt_domains
  check_local_user
  transport = dovecot_lmtp
  cannot_route_message = Unknown account
  no_more


dovecot_lmtp:
  driver = lmtp
  socket = /var/spool/dovecot/lmtp
  batch_max = 500
  rcpt_include_affixes


It worked perfectly, but after upgrade from Dovecot 2.2 to Dovecot 2.3 
major version, I've found a lot of strange errors in exim panic.log


mail exim[7821]  Failed to get user name for uid 1175
mail exim[7880]: Failed to get user name for uid 1173

etc
where uids are ldap accounts and recognized by system (id 1175 shows 
user's name and group)


Even worse, some clients start to receive notify email with strange 
content, when sending email to mailing lists


u...@domain.com 
    Delay reason: error in redirect data: malformed address:
someus...@domain.com  may not follow
someus...@domain.com   in
"someus...@domain.com  ..some crap
here.." , where someuser addresses are not related to recipient
address and unknown for sender.


After some investigation,I've found out that dovecot's sieve produces 
these errors (I suspect sieve vacation, when user creates vacation via 
Roundcube webmail).


Found out how? It doesn't look like a Pigeonhole or Dovecot error 
message to me.


If set "submission_host = exim ip" in dovecot.conf, exim doesn't 
produce errors in panic.log anymore, but clients still receive email 
with malformed address.
Please help me to find the root of the problem (some broken sieve 
filter in user's maildir, misconfiguration or breaking changes in new 
Dovecot version?)


Do  you have an example of a malformed address?

What is your exact Dovecot configuration (output from `dovecot -n`).

Regards,

Stephan.


Re: exim dovecot sieve

2018-02-22 Thread himbeere

On 2018-02-21 19:37, Larry Rosenman wrote:

I use lmtp with exim.


Thanks for that pointer. Works fine now.

cheers
t.


Sent from my T-Mobile 4G LTE Device

 Original message 
From: himbe...@shinymail.de
Date: 2/21/18 11:59 AM (GMT-06:00)
To: dovecot@dovecot.org
Subject: exim dovecot sieve

Hello list.

I have just a generic question. Exim delivers fine to dovecot-lda. My
problems are the logfiles. Whenever I recieve a message
Exim writes to dovecot.log as the user who recieves the mail. This
forces me to have that logfile world writeable. I don't
really like that. How do you guys deal with that? Here my transport:

dovecot_delivery:
   driver = pipe

   # You may or may not want to add -d $local_part@$domain depending
on
if you need a userdb lookup done.
   command = /usr/libexec/dovecot/dovecot-lda -f $sender_address

   message_prefix =
   message_suffix =
   log_output
   delivery_date_add
   envelope_to_add
   return_path_add
   #group = mail
   #mode = 0660
   temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78

thanks and best regards
t.


Re: exim dovecot sieve

2018-02-21 Thread Larry Rosenman
I use lmtp with exim.  


Sent from my T-Mobile 4G LTE Device
 Original message From: himbe...@shinymail.de Date: 2/21/18  
11:59 AM  (GMT-06:00) To: dovecot@dovecot.org Subject: exim dovecot sieve 
Hello list.

I have just a generic question. Exim delivers fine to dovecot-lda. My 
problems are the logfiles. Whenever I recieve a message
Exim writes to dovecot.log as the user who recieves the mail. This 
forces me to have that logfile world writeable. I don't
really like that. How do you guys deal with that? Here my transport:

dovecot_delivery:
   driver = pipe

   # You may or may not want to add -d $local_part@$domain depending on 
if you need a userdb lookup done.
   command = /usr/libexec/dovecot/dovecot-lda -f $sender_address

   message_prefix =
   message_suffix =
   log_output
   delivery_date_add
   envelope_to_add
   return_path_add
   #group = mail
   #mode = 0660
   temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78

thanks and best regards
t.