I know I could test this - but I'd rather ask first. To my knowledge, we haven't come up with a good server-side implementation for savings copies of sent messages (by all means correct my ignorance in this regard). So the typical way is to enable it in clients like Thunderbird (this prompted a whole discussion of how to save these messages without sending them to the server multiple times). My understanding is that sending a message from a client (use Thunderbird for simplicity of this conversation) is performed via SMTP. Saving a copy into a sent folder is performed via IMAP (hence the multiple transfers to the server). Now that I've laid a background - let's make it Dovecot specific. I don't know how "behind-the-scenes" Dovecot performs the act of saving mail messages that it receives from IMAP, instead of SMTP. Specifically, if I'm using sieve filters via deliver - can I setup a filter that will place mail copies to specific recipients into specific subfolders? -- Daniel
Eduardo M KALINOWSKI
2008-Jul-28 16:45 UTC
[Dovecot] Server-side sieve for client-side copies
Daniel L. Miller escreveu:> My understanding is that sending a message from a client (use > Thunderbird for simplicity of this conversation) is performed via > SMTP. Saving a copy into a sent folder is performed via IMAP (hence > the multiple transfers to the server). Now that I've laid a > background - let's make it Dovecot specific. I don't know how > "behind-the-scenes" Dovecot performs the act of saving mail messages > that it receives from IMAP, instead of SMTP. Specifically, if I'm > using sieve filters via deliver - can I setup a filter that will place > mail copies to specific recipients into specific subfolders?Thunderbird and other mail clients store a copy of the sent message by using the IMAP APPEND command, which is a generic command to store a mail message (or anything else, if you are brave enough) in a mailbox. Sieve filters are run for messages that are received via SMTP (usually from another host), and need to be saved in the user's mailbox. (Provided the mail server is configured to use dovecot's deliver to do that.) So, in short, these are two very different processes, and no filtering is done for messages saved in a folder (such as Sent).
on 7-28-2008 9:38 AM Daniel L. Miller spake the following:> I know I could test this - but I'd rather ask first. To my knowledge, > we haven't come up with a good server-side implementation for savings > copies of sent messages (by all means correct my ignorance in this > regard). So the typical way is to enable it in clients like Thunderbird > (this prompted a whole discussion of how to save these messages without > sending them to the server multiple times). > > My understanding is that sending a message from a client (use > Thunderbird for simplicity of this conversation) is performed via SMTP. > Saving a copy into a sent folder is performed via IMAP (hence the > multiple transfers to the server). Now that I've laid a background - > let's make it Dovecot specific. I don't know how "behind-the-scenes" > Dovecot performs the act of saving mail messages that it receives from > IMAP, instead of SMTP. Specifically, if I'm using sieve filters via > deliver - can I setup a filter that will place mail copies to specific > recipients into specific subfolders?Not easy, but set client to BCC yourself, and set filters for messages from you/to you. Until they modify the IMAP spec, and then every mail client is updated, it just isn't going to be an easy fix. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 258 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20080728/4f3f7237/attachment-0002.bin>
Hi, On Mon, 28 Jul 2008 09:38:19 -0700, "Daniel L. Miller" <dmiller at amfes.com> wrote:> My understanding is that sending a message from a client (use > Thunderbird for simplicity of this conversation) is performed via SMTP. > Saving a copy into a sent folder is performed via IMAP (hence the > multiple transfers to the server). Now that I've laid a background - > let's make it Dovecot specific. I don't know how "behind-the-scenes" > Dovecot performs the act of saving mail messages that it receives from > IMAP, instead of SMTP. Specifically, if I'm using sieve filters via > deliver - can I setup a filter that will place mail copies to specific > recipients into specific subfolders?It seems to me, that you are assuming that Dovecot also speaks SMTP and is able to actually handle sending of mails to other hosts. To clarify: Dovecot is an IMAP/POP3 mail server (with integrated Mail Delivery Agent (MDA) or Local Delivery Agent (LDA) (synonyms)). SMTP is being handled by a Mail Transfer Agent (MTA) such as Postfix. So as you can see, the Mail User Agent (MUA) (for example Thunderbird) interacts with two different server programs, one for sending mail (via SMTP), one for accessing stored mail (via IMAP/POP3). The only way I can see to make the double uploading go away, would be, to change the MTA's configuration so that it automatically sends a blind carbon copy of the outgoing message to the sender. Then set up a sieve rule in Dovecot to file this mail into the Sent folder. Of course don't forget to switch off the 'copy sent mails to Sent folder' feature in every mail client which is using this setup. Patrick. -- STAR Software (Shanghai) Co., Ltd. http://www.star-group.net/ Phone: +86 (21) 3462 7688 x 826 Fax: +86 (21) 3462 7779 PGP key: https://stshacom1.star-china.net/keys/patrick_nagel.asc Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005
Hello
I have this messages in log:
Jul 29 00:02:56 10.0.4.16 dovecot: imap-login: Can\'t connect to auth server
at default: Resource temporarily unavailable
Jul 29 00:02:56 10.0.4.16 last message repeated 6 times
Jul 29 00:02:56 10.0.4.16 dovecot: pop3-login: Can\'t connect to auth server
at default: Resource temporarily unavailable
Jul 29 00:02:56 10.0.4.16 last message repeated 6 times
Jul 29 00:02:56 10.0.4.16 dovecot: imap-login: Can\'t connect to auth server
at default: Resource temporarily unavailable
Jul 29 00:02:56 10.0.4.16 last message repeated 15 times
Jul 29 00:02:56 10.0.4.16 dovecot: pop3-login: Can\'t connect to auth server
at default: Resource temporarily unavailable
In this way users can't connect top pop3, imap services. Dovecot restart
only
help me to restore my services.
I have 80k users and ~250k sessions per day.
i thank you very much for any valid hint.
Debian Linux 2.6.18-4-686
dovecot -n output:
# 1.1.2: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
syslog_facility: local0
protocols: imap pop3
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_process_size: 512
login_processes_count: 33
login_max_processes_count: 1000
login_max_connections: 1000
max_mail_processes: 1024
verbose_proctitle: yes
first_valid_uid: 99
mail_location: maildir:%h
mail_debug: yes
mail_executable(default): /usr/lib/dovecot/imap-gaa
mail_executable(imap): /usr/lib/dovecot/imap-gaa
mail_executable(pop3): /usr/lib/dovecot/pop3-gaa
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_log_max_lines_per_sec: 0
auth default:
cache_size: 16384
cache_ttl: 600
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
passdb:
driver: sql
args: /etc/dovecot/dovecot-sql1.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 511
user: mail
--
Best regards,
Alexey Gorbov
gaa at udmvt.ru