webmin / usermin

Usermin source code
http://www.usermin.com/
Other
117 stars 48 forks source link

Fix to use `.Sent` folder to be default sent mail directory #93

Closed iliajie closed 1 year ago

jcameron commented 1 year ago

Won't this break the sent folder for existing users who haven't set a custom folder name?

iliajie commented 1 year ago

That actually would, you're tight!

Then probably better to do it with the config change, so it would only affect a new installs?

jcameron commented 1 year ago

Yes, I would agree. Also, what's the motivation behind this change?

iliajie commented 1 year ago

The motivation is to keep things consistent with what's generally expected by mail clients and by IMAP, i.e. Dovecot by default is configure to use .Sent folder.

jcameron commented 1 year ago

Is this something Dovecot controls, or the mail client?

iliajie commented 1 year ago

Is this something Dovecot controls, or the mail client?

I think both, actually. But if I remember correctly off hand Dovecot is configured to decide where to store outgoing mail by default.

jcameron commented 1 year ago

How does Dovecot even access outgoing email though? I'd expect it goes via SMTP to Postfix ..

iliajie commented 1 year ago

I'd expect it goes via SMTP to Postfix

It is.

However, an email client (i.e. Thunderbird) later decides where to save a sent message using IMAP. Dovecot has a default special_uses defined in 15-mailboxes.conf for different kind of mailboxes including Sent, which are actually based on a Special-Use Mailboxes standard described in RFC 6154. Therefore, Dovecot can signal a contemporary email client about server configuration, and which mailbox should be used and when. Although, an email client can technically save it in whatever or multiple mailboxes.