Bug 38477

Summary: Archivefolder and Dovecot
Product: UCS Reporter: Daniel Tröder <troeder>
Component: Mail - DovecotAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Sönke Schwardt-Krummrich <schwardt>
Severity: normal    
Priority: P5 CC: gohmann, schwardt
Version: UCS 4.0   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on: 14619, 38479    
Bug Blocks: 34839    

Description Daniel Tröder univentionstaff 2015-05-06 19:58:57 CEST
If mail/archivefolder is set to an e-mail address, Postfix sends a blind carbon copy of all incoming and outgoing e-mails to this address.

univention-mail-postfix/conffiles/create-archivefolder.py is then called. It uses univention-cyrus-mkdir to create a mailbox for cyrus to store the mails in.

This should not be necessary with Dovecot. It automatically creates mailboxes. This must be tested.

create-archivefolder.py must check if Dovecot or Cyrus is used.
Comment 1 Florian Best univentionstaff 2015-05-08 11:45:27 CEST
*** Bug 33799 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Tröder univentionstaff 2015-05-08 13:39:28 CEST
Relevant commits so far:
* 60591: create mailbox for archivefolder only if
Cyrus is installed and the domain is not external
* 60596: don't expand BCC before delivering to amavis
* 60599: change master.cf only if mail/archivefolder is in use
Comment 3 Daniel Tröder univentionstaff 2015-05-20 12:49:12 CEST
If a mail account or shared folder exists, Dovecot will store the mails there. If it doesn't, then mails never reach Dovecot. So as far as Dovecot is concerned, archivefolder storage works.

The modifications to Postfix mentioned in comment 2 are necessary for the Dovecot integration.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-07-03 14:40:12 CEST
(In reply to Daniel Tröder from comment #2)
> Relevant commits so far:
> * 60591: create mailbox for archivefolder only if
> Cyrus is installed and the domain is not external
> * 60596: don't expand BCC before delivering to amavis
> * 60599: change master.cf only if mail/archivefolder is in use
→ changes are ok

 (In reply to Daniel Tröder from comment #3)
> If a mail account or shared folder exists, Dovecot will store the mails
> there. If it doesn't, then mails never reach Dovecot. So as far as Dovecot
> is concerned, archivefolder storage works.
→ correct

> The modifications to Postfix mentioned in comment 2 are necessary for the
> Dovecot integration.
→ OK

→ OK: tested manually