[Pkg-exim4-users] autosave sent mail in virtual user's maildir sent folder
Rieker Flaik
rieker_flaik at arcor.de
Fri Feb 3 22:50:07 UTC 2012
Hi,
to get away from freemail-providers in the long term, I set up a
vserver. At present, exim4 is working with dovecot-imapd and sa-exim.
There are virtual email-user-homes in /var/mail/vmail/$USERNAME/
(maildir) and they receive mail through exim4 and dovecots "deliver"
program. Outgoing mail is also handled by exim4. It's used as a
smarthost and offers "plain" or "login" (through TLS) to authenticate.
Please see below for appropriate config snippets.
Now I would like exim4 to autosave sent mail in virtual user's sent
folder. But how?
I know that email clients can be configured to save sent mail to a
specific location, but I would like this job to be done by exim4.
I hope someone out there could help me. Please do :)
Thanks a lot,
Rieker
-------------------------------------------------
/etc/exim4/conf.d/auth/35_exim4-config_dovecot
-------------------------------------------------
dovecot_login:
driver = dovecot
public_name = LOGIN
server_socket = /var/run/dovecot/auth-client
server_set_id = $auth1
dovecot_plain:
driver = dovecot
public_name = PLAIN
server_socket = /var/run/dovecot/auth-client
server_set_id = $auth1
-------------------------------------------------
-------------------------------------------------
/etc/exim4/conf.d/router/860_exim4-config_dovecot
-------------------------------------------------
dovecot_router:
driver = accept
require_files = +/var/mail/vmail/${local_part}/
#transport = dovecot_transport
transport = dovecot_virtual_delivery
-------------------------------------------------
-------------------------------------------------
/etc/exim4/conf.d/transport/30_exim4-config_dovecot
-------------------------------------------------
dovecot_transport:
driver = appendfile
user = vmail
group = vmail
mode = 0600
directory=/var/mail/vmail/${lc:$local_part}/
maildir_format = true
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
dovecot_virtual_delivery:
driver = pipe
command = /usr/lib/dovecot/deliver -d $local_part -f $sender_address -a $original_local_part@$original_domain
message_prefix =
message_suffix =
delivery_date_add
envelope_to_add
return_path_add
log_output
user = vmail
temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78
-------------------------------------------------
(config mostly adopted from dovecot wiki)
More information about the Pkg-exim4-users
mailing list