Email Server Backup Strategy

2020-02-09 Thread Esteban L
Hello,

Was thinking it would be wise to backup my server, in case anything
"bad" ever happened, so that I could quickly get up to speed.

1. clone the whole drive -- which might be the best to ensure I keep the
whole system working.

2. But, what about, if I just wanted to backup my Email server
components? Postfix - which I think is just config files, and Dovecot -
I think there is a doveadm backup for doing such things.

What do you guys do, recommend for backups??

Thanks


-- 
https://www.little-beak.com
"Doing what we can."



max number of connections per ip

2020-02-27 Thread Esteban L
I have been haunted by the following error message or months, that we
see using Thunderbird.

Unable to connect to your IMAP server.

You may have exceeded the maximum number of connections to this server.
If so, use the Advanced IMAP Server Settings dialogue to reduce the
number of cached connections.

If I change my location, via a VPN, the error message goes away and I
can connect.

I have edited my /etc/dovcot/conf.d/20-imap.conf file by adding the
following:


protocol imap {
  # Space separated list of plugins to load (default is global
mail_plugins).
  mail_plugins = $mail_plugins imap_quota

  # Maximum number of IMAP connections allowed for a user from each IP
address.
  # NOTE: The username is compared case-sensitively.
  mail_max_userip_connections = 500
}


And, I still get the error message. I know myself, I have about 8-9
accounts, some with as many as 10 folders (I know each one count's as
it's own mailbox), as does my partner--who would access the internet
from my IP.

Does that number really have to be like 10,000, or something? If so, why
does it start out so small in the first place. If not, what else could I
do to avoid this message going forward??






Re: max number of connections per ip

2020-02-27 Thread Esteban L
I have tried a lot of different things, still no success. =(

here is my dove -n if anyone could help that would be great:


# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.9.0-12-amd64 x86_64 Debian 9.12
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = yes
mail_home = /var/mail/vmail/%d/%n
mail_location = maildir:~/Mail
mail_max_userip_connections = 500
mail_plugins = " quota"
mail_privileged_group = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = maildir:User quota
  quota_grace = 10%%
  quota_rule = *:storage=10G
  quota_rule2 = Trash:storage=+1G
  quota_status_overquota = 552 5.2.2 Mailbox is full
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_after = /etc/dovecot/sieve/spamfilter.sieve
  sieve_dir = ~/sieve
}
protocols = " imap lmtp sieve"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service imap-login {
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
ssl = required
ssl_cert =  I have been haunted by the following error message or months, that we
> see using Thunderbird.
>
> Unable to connect to your IMAP server.
>
> You may have exceeded the maximum number of connections to this server.
> If so, use the Advanced IMAP Server Settings dialogue to reduce the
> number of cached connections.
>
> If I change my location, via a VPN, the error message goes away and I
> can connect.
>
> I have edited my /etc/dovcot/conf.d/20-imap.conf file by adding the
> following:
>
>
> protocol imap {
>   # Space separated list of plugins to load (default is global
> mail_plugins).
>   mail_plugins = $mail_plugins imap_quota
>
>   # Maximum number of IMAP connections allowed for a user from each IP
> address.
>   # NOTE: The username is compared case-sensitively.
>   mail_max_userip_connections = 500
> }
>
>
> And, I still get the error message. I know myself, I have about 8-9
> accounts, some with as many as 10 folders (I know each one count's as
> it's own mailbox), as does my partner--who would access the internet
> from my IP.
>
> Does that number really have to be like 10,000, or something? If so, why
> does it start out so small in the first place. If not, what else could I
> do to avoid this message going forward??
>
>
>
>


Re: max number of connections per ip

2020-02-27 Thread Esteban L
It's not behind a proxy (unless the router is acting as a proxy?). Could
it be that my router is doing some Hairpin NAT tomfoolery? The router is
generic, so I run into that from time to time with my webserver.

I tried doveadm who, but didn't see anything too peculiar. There is the
expect half dozen or so users on common IPs.

On 27.02.20 21:49, Aki Tuomi wrote:
> Is your server behind proxy maybe? Can you see in logs that you get
> different IPs? 
>
> Maybe check with `doveadm who` how many connections you have?
>
> Aki
>> On 27/02/2020 22:44 Esteban L < este...@little-beak.com
>> <mailto:este...@little-beak.com>> wrote:
>>
>>
>> I have tried a lot of different things, still no success. =(
>>
>> here is my dove -n if anyone could help that would be great:
>>
>>
>> # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
>> # Pigeonhole version 0.4.16 (fed8554)
>> # OS: Linux 4.9.0-12-amd64 x86_64 Debian 9.12
>> auth_debug = yes
>> auth_debug_passwords = yes
>> auth_mechanisms = plain login
>> auth_verbose = yes
>> auth_verbose_passwords = yes
>> mail_home = /var/mail/vmail/%d/%n
>> mail_location = maildir:~/Mail
>> mail_max_userip_connections = 500
>> mail_plugins = " quota"
>> mail_privileged_group = vmail
>> managesieve_notify_capability = mailto
>> managesieve_sieve_capability = fileinto reject envelope
>> encoded-character vacation subaddress comparator-i;ascii-numeric
>> relational regex imap4flags copy include variables body enotify
>> environment mailbox date index ihave duplicate mime foreverypart
>> extracttext
>> namespace inbox {
>>   inbox = yes
>>   location =
>>   mailbox Archive {
>>     auto = subscribe
>>     special_use = \Archive
>>   }
>>   mailbox Drafts {
>>     auto = subscribe
>>     special_use = \Drafts
>>   }
>>   mailbox Junk {
>>     auto = subscribe
>>     special_use = \Junk
>>   }
>>   mailbox Sent {
>>     auto = subscribe
>>     special_use = \Sent
>>   }
>>   mailbox "Sent Messages" {
>>     special_use = \Sent
>>   }
>>   mailbox Trash {
>>     auto = subscribe
>>     special_use = \Trash
>>   }
>>   prefix =
>> }
>> passdb {
>>   args = /etc/dovecot/dovecot-sql.conf.ext
>>   driver = sql
>> }
>> plugin {
>>   quota = maildir:User quota
>>   quota_grace = 10%%
>>   quota_rule = *:storage=10G
>>   quota_rule2 = Trash:storage=+1G
>>   quota_status_overquota = 552 5.2.2 Mailbox is full
>>   quota_warning = storage=95%% quota-warning 95 %u
>>   quota_warning2 = storage=80%% quota-warning 80 %u
>>   sieve = ~/.dovecot.sieve
>>   sieve_after = /etc/dovecot/sieve/spamfilter.sieve
>>   sieve_dir = ~/sieve
>> }
>> protocols = " imap lmtp sieve"
>> service auth {
>>   unix_listener /var/spool/postfix/private/auth {
>>     group = postfix
>>     mode = 0666
>>     user = postfix
>>   }
>> }
>> service imap-login {
>>   inet_listener imaps {
>>     port = 993
>>     ssl = yes
>>   }
>> }
>> service lmtp {
>>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>>     group = postfix
>>     mode = 0600
>>     user = postfix
>>   }
>> }
>> ssl = required
>> ssl_cert = > ssl_key =  # hidden, use -P to show it
>> userdb {
>>   args = /etc/dovecot/dovecot-sql.conf.ext
>>   driver = sql
>> }
>> protocol lmtp {
>>   mail_plugins = " quota sieve"
>>   postmaster_address = *@little-beak.com
>> <mailto:*@little-beak.com>
>> }
>> protocol lda {
>>   mail_plugins = " quota sieve"
>> }
>> protocol imap {
>>   mail_max_userip_connections = 500
>>   mail_plugins = " quota imap_quota"
>> }
>> protocol sieve {
>>   mail_max_userip_connections = 500
>> }
>>
>>
>> On 27.02.20 18:54, Esteban L wrote:
>>> I have been haunted by the following error message or months, that we
>>> see using Thunderbird.
>>> Unable to connect to your IMAP server.
>>> You may have exceeded the maximum number of connections to this server.
>>> If so, use the Advanced IMAP Server Settings dialogue to reduce the
>>> number of cached connections.
>>> If I change my location, via a VPN, the error message goes away and I
>>> can connect.
>>> I have edited my /etc/dovcot/conf.d/20-imap.conf file by adding the
>>> following:
>> >
>>> protocol imap {
>>>   # Space separated list of plugins to load (default is global
>>> mail_plugins).
>>>   mail_plugins = $mail_plugins imap_quota
>>>   # Maximum number of IMAP connections allowed for a user from each IP
>>> address.
>>>   # NOTE: The username is compared case-sensitively.
>>>   mail_max_userip_connections = 500
>>> }
>> >
>>> And, I still get the error message. I know myself, I have about 8-9
>>> accounts, some with as many as 10 folders (I know each one count's as
>>> it's own mailbox), as does my partner--who would access the internet
>>> from my IP.
>>> Does that number really have to be like 10,000, or something? If so,
>>> why
>>> does it start out so small in the first place. If not, what else
>>> could I
>>> do to avoid this message going forward??
>> >
>> >
>> >
>
> ---
> Aki Tuomi


Re: max number of connections per ip

2020-02-27 Thread Esteban L
Naturally, everything works fine if I use a VPN/translocation.

On 27.02.20 21:49, Aki Tuomi wrote:
> Is your server behind proxy maybe? Can you see in logs that you get
> different IPs? 
>
> Maybe check with `doveadm who` how many connections you have?
>
> Aki
>> On 27/02/2020 22:44 Esteban L < este...@little-beak.com
>> <mailto:este...@little-beak.com>> wrote:
>>
>>
>> I have tried a lot of different things, still no success. =(
>>
>> here is my dove -n if anyone could help that would be great:
>>
>>
>> # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
>> # Pigeonhole version 0.4.16 (fed8554)
>> # OS: Linux 4.9.0-12-amd64 x86_64 Debian 9.12
>> auth_debug = yes
>> auth_debug_passwords = yes
>> auth_mechanisms = plain login
>> auth_verbose = yes
>> auth_verbose_passwords = yes
>> mail_home = /var/mail/vmail/%d/%n
>> mail_location = maildir:~/Mail
>> mail_max_userip_connections = 500
>> mail_plugins = " quota"
>> mail_privileged_group = vmail
>> managesieve_notify_capability = mailto
>> managesieve_sieve_capability = fileinto reject envelope
>> encoded-character vacation subaddress comparator-i;ascii-numeric
>> relational regex imap4flags copy include variables body enotify
>> environment mailbox date index ihave duplicate mime foreverypart
>> extracttext
>> namespace inbox {
>>   inbox = yes
>>   location =
>>   mailbox Archive {
>>     auto = subscribe
>>     special_use = \Archive
>>   }
>>   mailbox Drafts {
>>     auto = subscribe
>>     special_use = \Drafts
>>   }
>>   mailbox Junk {
>>     auto = subscribe
>>     special_use = \Junk
>>   }
>>   mailbox Sent {
>>     auto = subscribe
>>     special_use = \Sent
>>   }
>>   mailbox "Sent Messages" {
>>     special_use = \Sent
>>   }
>>   mailbox Trash {
>>     auto = subscribe
>>     special_use = \Trash
>>   }
>>   prefix =
>> }
>> passdb {
>>   args = /etc/dovecot/dovecot-sql.conf.ext
>>   driver = sql
>> }
>> plugin {
>>   quota = maildir:User quota
>>   quota_grace = 10%%
>>   quota_rule = *:storage=10G
>>   quota_rule2 = Trash:storage=+1G
>>   quota_status_overquota = 552 5.2.2 Mailbox is full
>>   quota_warning = storage=95%% quota-warning 95 %u
>>   quota_warning2 = storage=80%% quota-warning 80 %u
>>   sieve = ~/.dovecot.sieve
>>   sieve_after = /etc/dovecot/sieve/spamfilter.sieve
>>   sieve_dir = ~/sieve
>> }
>> protocols = " imap lmtp sieve"
>> service auth {
>>   unix_listener /var/spool/postfix/private/auth {
>>     group = postfix
>>     mode = 0666
>>     user = postfix
>>   }
>> }
>> service imap-login {
>>   inet_listener imaps {
>>     port = 993
>>     ssl = yes
>>   }
>> }
>> service lmtp {
>>   unix_listener /var/spool/postfix/private/dovecot-lmtp {
>>     group = postfix
>>     mode = 0600
>>     user = postfix
>>   }
>> }
>> ssl = required
>> ssl_cert = > ssl_key =  # hidden, use -P to show it
>> userdb {
>>   args = /etc/dovecot/dovecot-sql.conf.ext
>>   driver = sql
>> }
>> protocol lmtp {
>>   mail_plugins = " quota sieve"
>>   postmaster_address = *@little-beak.com
>> <mailto:*@little-beak.com>
>> }
>> protocol lda {
>>   mail_plugins = " quota sieve"
>> }
>> protocol imap {
>>   mail_max_userip_connections = 500
>>   mail_plugins = " quota imap_quota"
>> }
>> protocol sieve {
>>   mail_max_userip_connections = 500
>> }
>>
>>
>> On 27.02.20 18:54, Esteban L wrote:
>>> I have been haunted by the following error message or months, that we
>>> see using Thunderbird.
>>> Unable to connect to your IMAP server.
>>> You may have exceeded the maximum number of connections to this server.
>>> If so, use the Advanced IMAP Server Settings dialogue to reduce the
>>> number of cached connections.
>>> If I change my location, via a VPN, the error message goes away and I
>>> can connect.
>>> I have edited my /etc/dovcot/conf.d/20-imap.conf file by adding the
>>> following:
>> >
>>> protocol imap {
>>>   # Space separated list of plugins to load (default is global
>>> mail_plugins).
>>>   mail_plugins = $mail_plugins imap_quota
>>>   # Maximum number of IMAP connections allowed for a user from each IP
>>> address.
>>>   # NOTE: The username is compared case-sensitively.
>>>   mail_max_userip_connections = 500
>>> }
>> >
>>> And, I still get the error message. I know myself, I have about 8-9
>>> accounts, some with as many as 10 folders (I know each one count's as
>>> it's own mailbox), as does my partner--who would access the internet
>>> from my IP.
>>> Does that number really have to be like 10,000, or something? If so,
>>> why
>>> does it start out so small in the first place. If not, what else
>>> could I
>>> do to avoid this message going forward??
>> >
>> >
>> >
>
> ---
> Aki Tuomi


Re: [EXT] Re: max number of connections per ip

2020-02-28 Thread Esteban L
Ok. That is a nice command.

I am able to see connections. It doesn't seem remotely close to 500,
though.

If I understand things correctly, dovecot makes connections PER folder,
and keeps making more connections via IDLE (I am not entirely sure how
idle works, other than it keeps sockets open)?

For example, in my case, I have about a dozen users, which combined
equals around 80 folders.

If I am on an IP it is fine.

My partner, also has about a dozen different users, which combined, also
has about 70-80 folders. 

If we are on the same IP, we can no longer connect.

1. Is this general understanding ok?

2. Am I supposed to set the limit like at 10,000? I mean, I am not
running anything other than a little private email server for some
family and friends. As soon as my partner and I are on the same IP, it
just ceases.

I see how if I check the doveadm who, periodically, I will have 2
propagations, and can imagine if my partner is there--yeah it's probably
breaking 500.

On 28.02.20 08:05, Aki Tuomi wrote:
> You can usually see from doveadm who or logs if your router/whatever is doing 
> NAT.
>
> Which would be the reason why 500 connections wouldn't be enough.
>
> Aki
>
>> On 27/02/2020 23:21 Esteban L  wrote:
>>
>>
>>  
>> It's not behind a proxy (unless the router is acting as a proxy?). Could it 
>> be that my router is doing some Hairpin NAT tomfoolery? The router is 
>> generic, so I run into that from time to time with my webserver.
>>
>>  
>> I tried doveadm who, but didn't see anything too peculiar. There is the 
>> expect half dozen or so users on common IPs.
>>
>>  
>> On 27.02.20 21:49, Aki Tuomi wrote:
>>
>>  
>>> Is your server behind proxy maybe? Can you see in logs that you get 
>>> different IPs?
>>>  
>>>
>>>
>>>  
>>> Maybe check with `doveadm who` how many connections you have?
>>>  
>>>
>>>
>>>  
>>> Aki
>>>  
>>>> On 27/02/2020 22:44 Esteban L < este...@little-beak.com> wrote:
>>>>  
>>>>
>>>>
>>>>  
>>>>
>>>>
>>>>  
>>>> I have tried a lot of different things, still no success. =(
>>>>  
>>>>
>>>>
>>>>  
>>>> here is my dove -n if anyone could help that would be great:
>>>>  
>>>>
>>>>
>>>>  
>>>>
>>>>
>>>>  
>>>> # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
>>>>  
>>>> # Pigeonhole version 0.4.16 (fed8554)
>>>>  
>>>> # OS: Linux 4.9.0-12-amd64 x86_64 Debian 9.12
>>>>  
>>>> auth_debug = yes
>>>>  
>>>> auth_debug_passwords = yes
>>>>  
>>>> auth_mechanisms = plain login
>>>>  
>>>> auth_verbose = yes
>>>>  
>>>> auth_verbose_passwords = yes
>>>>  
>>>> mail_home = /var/mail/vmail/%d/%n
>>>>  
>>>> mail_location = maildir:~/Mail
>>>>  
>>>> mail_max_userip_connections = 500
>>>>  
>>>> mail_plugins = " quota"
>>>>  
>>>> mail_privileged_group = vmail
>>>>  
>>>> managesieve_notify_capability = mailto
>>>>  
>>>> managesieve_sieve_capability = fileinto reject envelope
>>>>  
>>>> encoded-character vacation subaddress comparator-i;ascii-numeric
>>>>  
>>>> relational regex imap4flags copy include variables body enotify
>>>>  
>>>> environment mailbox date index ihave duplicate mime foreverypart 
>>>> extracttext
>>>>  
>>>> namespace inbox {
>>>>  
>>>> inbox = yes
>>>>  
>>>> location =
>>>>  
>>>> mailbox Archive {
>>>>  
>>>> auto = subscribe
>>>>  
>>>> special_use = \Archive
>>>>  
>>>> }
>>>>  
>>>> mailbox Drafts {
>>>>  
>>>> auto = subscribe
>>>>  
>>>> special_use = \Drafts
>>>>  
>>>> }
>>>>  
>>>> mailbox Junk {
>>>>  
>>>> auto = subscribe
>>>>  
>>>> special_use = \Junk
>>>>  
>>>> }
>>>>  
>>>> mailbox Sent {
>>>>  
>>>> auto = subscribe
>>>>  
>>>> special_use = \Sent
>>>&g

Re: [EXT] max number of connections per ip

2020-02-28 Thread Esteban L
Interesting, the line:

imap_client_workarounds = "delay-newmail"

I do not have. What does it do? The problem does seem to manifest itself
with initial logins.

On 28.02.20 17:28, Remo Mattei wrote:
> Here is mine and I have no issue if they client is netted.
>
> Remo 
>
> protocol imap {
>   imap_client_workarounds = "delay-newmail"
>   mail_plugins = $mail_plugins imap_quota
>   mail_max_userip_connections = 50
> }
>
>
>
>> On Feb 28, 2020, at 8:21 AM, Esteban L  wrote:
>>
>> Ok. That is a nice command.
>>
>> I am able to see connections. It doesn't seem remotely close to 500,
>> though.
>>
>> If I understand things correctly, dovecot makes connections PER folder,
>> and keeps making more connections via IDLE (I am not entirely sure how
>> idle works, other than it keeps sockets open)?
>>
>> For example, in my case, I have about a dozen users, which combined
>> equals around 80 folders.
>>
>> If I am on an IP it is fine.
>>
>> My partner, also has about a dozen different users, which combined, also
>> has about 70-80 folders. 
>>
>> If we are on the same IP, we can no longer connect.
>>
>> 1. Is this general understanding ok?
>>
>> 2. Am I supposed to set the limit like at 10,000? I mean, I am not
>> running anything other than a little private email server for some
>> family and friends. As soon as my partner and I are on the same IP, it
>> just ceases.
>>
>> I see how if I check the doveadm who, periodically, I will have 2
>> propagations, and can imagine if my partner is there--yeah it's probably
>> breaking 500.
>>
>> On 28.02.20 08:05, Aki Tuomi wrote:
>>> You can usually see from doveadm who or logs if your router/whatever is 
>>> doing NAT.
>>>
>>> Which would be the reason why 500 connections wouldn't be enough.
>>>
>>> Aki
>>>
>>>> On 27/02/2020 23:21 Esteban L  wrote:
>>>>
>>>>
>>>>
>>>> It's not behind a proxy (unless the router is acting as a proxy?). Could 
>>>> it be that my router is doing some Hairpin NAT tomfoolery? The router is 
>>>> generic, so I run into that from time to time with my webserver.
>>>>
>>>>
>>>> I tried doveadm who, but didn't see anything too peculiar. There is the 
>>>> expect half dozen or so users on common IPs.
>>>>
>>>>
>>>> On 27.02.20 21:49, Aki Tuomi wrote:
>>>>
>>>>
>>>>> Is your server behind proxy maybe? Can you see in logs that you get 
>>>>> different IPs?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Maybe check with `doveadm who` how many connections you have?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Aki
>>>>>
>>>>>> On 27/02/2020 22:44 Esteban L < este...@little-beak.com> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have tried a lot of different things, still no success. =(
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> here is my dove -n if anyone could help that would be great:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
>>>>>>
>>>>>> # Pigeonhole version 0.4.16 (fed8554)
>>>>>>
>>>>>> # OS: Linux 4.9.0-12-amd64 x86_64 Debian 9.12
>>>>>>
>>>>>> auth_debug = yes
>>>>>>
>>>>>> auth_debug_passwords = yes
>>>>>>
>>>>>> auth_mechanisms = plain login
>>>>>>
>>>>>> auth_verbose = yes
>>>>>>
>>>>>> auth_verbose_passwords = yes
>>>>>>
>>>>>> mail_home = /var/mail/vmail/%d/%n
>>>>>>
>>>>>> mail_location = maildir:~/Mail
>>>>>>
>>>>>> mail_max_userip_connections = 500
>>>>>>
>>>>>> mail_plugins = " quota"
>>>>>>
>>>>>> mail_privileged_group = vmail
>>>

dovecot.sieve shows up as a mailbox

2019-03-21 Thread Esteban L via dovecot
Hello, 

Config infos below.

Short version, I am getting this weird anomaly on my main email
account. Such that, "dovecot.sieve" is showing up as a mailbox in my
various email clients (e.g. k-9 (mobile), and Evolution).

I have tried deleting the "rogue folder" with doveadm, but it just
returns.

Anyone have any suggestions where I can track this down.

dovecot --version
2.2.27

dovecot -n

# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.9.0-6-amd64 x86_64 Debian 9.8 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = yes
mail_debug = yes
mail_location = maildir:/var/mail/vmail/%d/%n
mail_plugins = " quota"
mail_privileged_group = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-
character vacation subaddress comparator-i;ascii-numeric relational
regex imap4flags copy include variables body enotify environment
mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
auto = subscribe
special_use = \Archive
  }
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Junk {
auto = subscribe
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash


}
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = maildir:User quota
  quota_grace = 10%%
  quota_rule = *:storage=10G
  quota_rule2 = Trash:storage=+1G
  quota_status_overquota = 552 5.2.2 Mailbox is full
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = ~/.dovecot.sieve
  sieve_after = /etc/dovecot/sieve/spamfilter.sieve
  sieve_dir = ~/sieve
}

protocols = " imap lmtp sieve"
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
}
service imap-login {
  inet_listener imaps {
port = 993
ssl = yes
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
  }
}
ssl = required
ssl_cert = 

Send folder disappeared

2019-03-22 Thread Esteban L via dovecot
Hello, 

Dovecot 2.2.27

I have a strange issue, where my "Send" folder was absent in my
mailbox. It had been there before, fully functioning. Then, it was
gone.

I went into:
vi /etc/dovecot/conf.d/15-mailboxes.conf

And, noticed that my mailbox for Sent was no longer automatically
subscribed, so I changed it, and restarted dovecot.

> # For \Sent mailboxes there are two widely used names. We'll mark
> both of
>   # them as \Sent. User typically deletes one of them if duplicates
> are created.
>   mailbox Sent {
> special_use = \Sent
> auto = subscribe
>   }
>   mailbox "Sent Messages" {
> special_use = \Sent
>   }
> }

Now, Sent shows up again, but email I send, doesn't show up in the sent
file?? The sent file is, and remains, empty.


> 


Messages not saved to my "Sent" folder

2019-03-22 Thread Esteban L via dovecot
Hello, 

Using Dovecot 2.2.27

1. Had an issue where my Sent box, "disappeared." I used to be present,
but then it was just gone. I went in and changed the
/etc/dovecot/conf.d/15-mailboxes.conf

the auto=subscribe feature had disappeared, even though I had added
that line at setup. Below is the new changes.

# For \Sent mailboxes there are two widely used names. We'll mark both
of
  # them as \Sent. User typically deletes one of them if duplicates are
created.
  mailbox Sent {
special_use = \Sent
auto = subscribe
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
}

2. But, mail is STILL not sent to SENT folder.

3. I have reload both postfix and dovecot, and also systemctl restart
postfix && systemctl restart dovecot.

The Sent folder is present, but no mail is stored to it.

4. Before sending this email, I checked my mobile client, and the Sent
file was full from previously sent email. When I "updated it"/repolled
it, it is now empty. 

Any able to lend a helping hand?

Thanks.




Re: Send folder disappeared

2019-03-23 Thread Esteban L via dovecot
Thank you Aki,

That was it. I would never have thought to look there in 100 years, so
asking helps=)

But, now it's all working. For some reason, my MUA had it's setting
changed such that all sent mail from all accounts was sent to the Local
, "On this computer/Sent" folder.

The day getting off to a good start!

-Original Message-
From: Aki Tuomi via dovecot 
Reply-to: Aki Tuomi 
To: este...@little-beak.com, Esteban L via dovecot 
Subject: Re: Send folder disappeared
Date: Sat, 23 Mar 2019 10:22:43 +0200 (EET)

> On 23 March 2019 01:59 Esteban L via dovecot 
> wrote:
> 
>  
> Hello, 
> 
> Dovecot 2.2.27
> 
> I have a strange issue, where my "Send" folder was absent in my
> mailbox. It had been there before, fully functioning. Then, it was
> gone.
> 
> I went into:
> vi /etc/dovecot/conf.d/15-mailboxes.conf
> 
> And, noticed that my mailbox for Sent was no longer automatically
> subscribed, so I changed it, and restarted dovecot.
> 
> > # For \Sent mailboxes there are two widely used names. We'll mark
> > both of
> >   # them as \Sent. User typically deletes one of them if duplicates
> > are created.
> >   mailbox Sent {
> > special_use = \Sent
> > auto = subscribe
> >   }
> >   mailbox "Sent Messages" {
> > special_use = \Sent
> >   }
> > }
> 
> Now, Sent shows up again, but email I send, doesn't show up in the
> sent
> file?? The sent file is, and remains, empty.
> 
> 
> > 

Uh. Folders do not disappear itself, also they do not become
unsubscribed on their own. auto=subscribe makes permanent subscription
on create.

Are you sure you have not fumbled with your MUA?

Aki


dovecot ssl error message from my own connections

2019-03-30 Thread Esteban L via dovecot
Hello all,

Just a minor thing. Not a big deal, because everything works fine, and
I feel secure with my setup.

But, I get this error message pretty much throughout the day/night,
which appears to come from my own mail clients (desktop or mobile).
I would like to resolve it, because it must me something (that is not
good--that I may not understand), that may have other ramifications.

So, here it is.

date time myserver dovecot: imap-login: Debug: SSL error: SSL_read()
syscall failed: Connection reset by peer


Anyone have a suggestion of what this might hint to, other than obvious
SSL. I tried parsing through various logs, but the most I find is just
this single line.

I can produce it, whenever I close my email client.

Thanks in advance.


Re: dovecot ssl error message from my own connections

2019-03-30 Thread Esteban L via dovecot
Opps, forgot that important requirment! sorry

Dovecot 2.2.27 

-Original Message-
From: Aki Tuomi 
Reply-to: Aki Tuomi 
To: este...@little-beak.com, Esteban L via dovecot 
Subject: Re: dovecot ssl error message from my own connections
Date: Sat, 30 Mar 2019 14:25:41 +0200 (EET)

> On 30 March 2019 14:20 Esteban L via dovecot < dovecot@dovecot.org>
> wrote:
> 
> 
> Hello all,
> 
> Just a minor thing. Not a big deal, because everything works fine,
> and
> I feel secure with my setup.
> 
> But, I get this error message pretty much throughout the day/night,
> which appears to come from my own mail clients (desktop or mobile).
> I would like to resolve it, because it must me something (that is not
> good--that I may not understand), that may have other ramifications.
> 
> So, here it is.
> 
> date time myserver dovecot: imap-login: Debug: SSL error: SSL_read()
> syscall failed: Connection reset by peer
> 
> 
> Anyone have a suggestion of what this might hint to, other than
> obvious
> SSL. I tried parsing through various logs, but the most I find is
> just
> this single line.
> 
> I can produce it, whenever I close my email client.
> 
> Thanks in advance.

Which version of dovecot is this?
---
Aki Tuomi


Re: dovecot ssl error message from my own connections

2019-03-30 Thread Esteban L via dovecot
Thanks! I will have a look.

-Original Message-
From: @lbutlr via dovecot 
Reply-to: "@lbutlr" 
To: Davide Marchi via dovecot 
Subject: Re: dovecot ssl error message from my own connections
Date: Sat, 30 Mar 2019 06:28:06 -0600

On 30 Mar 2019, at 06:20, Esteban L via dovecot 
wrote:
> date time myserver dovecot: imap-login: Debug: SSL error: SSL_read()
> syscall failed: Connection reset by peer

I don't get that particular message, but in general Debug messages are
informational, not errors or warnings. Seems like the likely cause is
you MUA is not closing out the session properly.

Start looking for "dovecot.*Debug" in your logs and you're going to see
a lot of lines (so many that i have them logged into a separate file).