[Dovecot] Dovecot/postfix to do 'copy to sent' ?

mouss mouss at netoyen.net
Fri May 9 21:25:57 EEST 2008


Uldis Pakuls wrote:
> mouss wrote:
>> [snip]
>>>>
>>>> This has been asked more than once here and elsewhere, and sadly 
>>>> the short answer is 'no'... I'd love to see support for this too, 
>>>> but it just has to do with how smtp works.
>>>>
>>>> A couple of options...
>>>>
>>>> If you use postfix for your MTA, you could simply disable saving 
>>>> sent messages in tbird, and set up sender BCC maps in postfix so 
>>>> that a copy of each users sent mail is dumped into their Sent folder.
>>>
>>> But it won't be saved in the Sent folder, will it? It will just be 
>>> delivered to the mailbox?
>>>
>>>
>> you can have it delivered wherever you want, provided you configure 
>> that.
>>
>> with a pcre sender bcc like this:
>> /(.*)@example\.com$/      $1 at senderbcc.example.com
>>
>> postfix will deliver a copy to user at sendrbcc.example.com. Then 
>> deliver this with
>>
>> 1- dovecot LDA and use Sieve to store the message in the folder you want
>> 2- maildrop and configure it to store the message where you like, or
>> 3- directly with postfix, provided you configure the right 
>> virtual_mailbox_maps
> or.. just add custom header line like "X-Save-Sent: 1" and use dovecot's
> LDA + sieve script to store message in "sent" folder.

The discussion is about outgoing mail. Outgoing mail doesn't go to 
dovecot unless you copy it.

> Personally I don't like fake "senderbcc" address for every user. This my
> catch a lots of spam in "sent" folders.

you are confusing sender bcc with virtual aliases.


More information about the dovecot mailing list