Re: immediate delete of mails

2018-10-09 Thread tselm...@486.hu
On Tue, 9 Oct 2018 11:09:53 +0300
Reio Remma  wrote:

> Do you see anything in Dovecot logs? It should definitely log if there 
> were permission issues.

With 'mail_debug=yes' I see nothing relevant. Just something like this when I 
want to expunge deleted mails:

Oct 09 10:40:01 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25188 because: header stream
Oct 09 10:40:01 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25189 because: header stream
Oct 09 10:40:01 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25190 because: header stream
Oct 09 10:40:01 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25191 because: header stream
Oct 09 10:40:01 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25192 because: header stream
Oct 09 10:40:01 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25147 because: full mail
Oct 09 10:40:04 imap(tselmeci)<15816>: Debug: Mailbox INBOX: 
Opened mail UID=25192 because: full mail
Oct 09 10:40:18 imap(tselmeci)<15816>: Debug: dovecot: 
Mailbox opened because: SELECT
-- 
Selmeci Tamás
http://www.486.hu/



Re: immediate delete of mails

2018-10-09 Thread tselm...@486.hu
On Tue, 9 Oct 2018 09:31:36 +0200
Gerald Galster  wrote:

> most imap clients don't delete mails immediately, instead they are marked as 
> deleted and expunged a few days or weeks later.
> 
> From Sylpheed docs / Interface tab: 
> https://sylpheed.sraoss.jp/doc/manual/en/sylpheed-8.html
> 
>   • If Execute immediately when moving or deleting messages is not 
> selected, a new button appears in the button bar marked Execute. When 
> deleting or moving messages, they are first marked as deleted or moved but 
> Sylpheed does not move or delete them until you press the Execute button (or 
> the Execute entry of the Tools menu).

This setting is enabled in my Slypheed and mails don't disappear. Even if I 
switch this off and try to manually execute the expunge operation, the mails 
still remain.

> You could check if the filename of a deleted email has changed in your 
> maildir.

Perhaps I wasn't clear enough, Dovecot is using mbox files on my machine.

> This is old and may have been fixed:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208139

I don't think it's relevant, since with the very same Sylpheed an older Dovecot 
(1.x) could erase the unneeded mails. Perhaps some file permission issue on my 
server...?

Regards,
-- 
Selmeci Tamás
http://www.486.hu/



immediate delete of mails

2018-10-09 Thread tselm...@486.hu
Hello all!

I've got a home server running on an ARM Cortex-A7 with my custom Linux 
distribution. It's also responsible for handling incoming and outgoing mails. 
The SMTP server is OpenSMTPD-6.0.3p1. I'm using Dovecot-2.3.2.1 to export the 
mails (mailbox storage format) using IMAP.

My old server used to have Dovecot-1.2.0 and honestly, it was absolutely 
sufficient for me. However, I've decided to use the latest Dovecot on my new 
system, since all other software components of my system are up-to-date.

With my simple IMAP-configuration Dovecot is running fine, expect for one 
thing: when I press DEL in the mailer client, the mails don't get deleted. They 
simple reside in the mailbox file. It annoys me a lot, since the mailer client 
regularly makes them appear with a different (grey) color.

The mailer client is Sylpheed and I'm not willing to use another one. I've 
already tried Thunderbird, Evolution, Claws-mail, Sylpheed, and Sylpheed suits 
best to my needs.

The funny thing is that with the same Sylpheed the old Dovecot was willing to 
physically remove the mails from mailbox file, but the new Dovecot isn't 
willing to do so.

I've tried to search for an appropriate configuration option, but didn't find 
what I exactly need. Auto expunge, command-line expunging are nice, but I do 
want immediate mail delete from mailbox file when I press DEL in the mailer 
client. I know this can be dangerous and degrades performance.

Is there any option to configure Dovecot to behave like this? If it needs to 
recompile Dovecot I'm also in ;)

Thanks a lot!

---
dovecot -n output:

# 2.3.2.1 (0719df592): /etc/dovecot.conf
# OS: Linux 4.18.9 armv7l  
# Hostname: 486
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
default_client_limit = 30
default_process_limit = 10
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot.txt
mail_gid = 0
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
mail_uid = 0
namespace {
  hidden = no
  inbox = yes
  list = yes
  location = 
  mailbox {
auto = create
special_use = \Drafts
name = Drafts
  }
  mailbox {
auto = create
special_use = \Sent
name = Sent
  }
  mailbox {
auto = create
special_use = \Trash
name = Trash
  }
  prefix = 
  type = private
  name = inbox
}
passdb {
  driver = passwd
}
passdb {
  driver = shadow
}
protocols = imap
service replication-notify-fifo {
  name = aggregator
}
service anvil-auth-penalty {
  name = anvil
}
service auth-worker {
  name = auth-worker
}
service auth-client {
  name = auth
}
service config {
  name = config
}
service dict-async {
  name = dict-async
}
service dict {
  name = dict
}
service login/proxy-notify {
  name = director
}
service dns-client {
  name = dns_client
}
service doveadm-server {
  name = doveadm
}
service imap-hibernate {
  name = imap-hibernate
}
service imap {
  name = imap-login
}
service imap-urlauth {
  name = imap-urlauth-login
}
service imap-urlauth-worker {
  name = imap-urlauth-worker
}
service token-login/imap-urlauth {
  name = imap-urlauth
}
service imap-master {
  name = imap
}
service indexer-worker {
  name = indexer-worker
}
service indexer {
  name = indexer
}
service ipc {
  name = ipc
}
service lmtp {
  name = lmtp
}
service log-errors {
  name = log
}
service old-stats-mail {
  name = old-stats
}
service pop3 {
  name = pop3-login
}
service login/pop3 {
  name = pop3
}
service replicator-doveadm {
  name = replicator
}
service stats-reader {
  name = stats
}
service submission {
  name = submission-login
}
service login/submission {
  name = submission
}
ssl = no
submission_max_mail_size = 0
userdb {
  driver = passwd
}
verbose_proctitle = yes

-- 
Selmeci, Tamás
http://www.486.hu/