postfix and save to sent mail dir

sd1sd1 picture sd1sd1 · Nov 14, 2013 · Viewed 16k times · Source

i know this might be a dummy question or a question that comes from lake of knowledge, but i hope someone can still answer it. i did try to read a lot of postfix documentation but found no answer to this. i don't even know if it's a postfix specific or mail servers general question.

so i have a mail server, just a clean postfix install that delivers email. iv'e defined my users and connected with IMAP and SMTP using thunderbird.

when i went to thunderbird account settings and disabled "place a copy", postfix did not put a copy of the sent message in the user .Sent folder.

however, iv'e also connected my gmail,hotmail or yahoo mail and diabled the "place a copy" and still have a copy in the sent items folder.

so in this case there are 2 options:

  1. something is wrong with my postfix configuration
  2. gmail,hotmail,yahoo put a copy in thier sent folder as a different process on the server side

thanks in advance

Answer

Magnus Bäck picture Magnus Bäck · Nov 22, 2013

Postfix itself does not place copies of sent messages anywhere; it receives messages and delivers them to the recipient. Saving sent messages to your own mailbox is the responsibility of your user agent (Thunderbird, in your case).

It's important to understand that Postfix (and other traditional Unix SMTP servers) don't have a "user" concept. Yes, if so configured it's possible to authenticate by supplying a username and a password, but Postfix doesn't use this identity information.

That said, it's not impossible to configure Postfix to do what you expected – sender_bcc_maps can be used to add a recipient to messages sent by you, and by adding yourself and using a filter in your mail client (or mail delivery agent like procmail) you can make sure that messages sent by you end up in the Sent folder.