Good day to all. It is necessary to duplicate outgoing and incoming letters from all mailboxes to a separate one, and arrange them in folders. All incoming emails are in the Inbox folder, and all outgoing emails are sent to the Sent Mail folder of the new mailbox.

Now I have done like this

always_bcc = relay@site.ru 

And all letters, whatever they may be, are placed in the Inbox.

Thank you in advance for your response.

  • 2
    laying out files with messages on imap-directories (as even the name should) does not belong in the scope of the smtp-server. use any filter instead of saving files directly - procmail, sieve, etc. etc. - aleksandr barakin
  • 3
    By the way, from the point of view of the smtp server, all messages for it are incoming at first , and after making a decision on the delivery method (transfer to another smtp server, save to a file, transfer to a filter) are outgoing. - aleksandr barakin
  • Can Dovecot do this? I would like to see an example, and not just in words. - Nicolayka
  • one
    examples for, for example, procmail and sieve, are given directly in wikipedia articles: 1 , 2 . - aleksandr barakin

0