Re: Permission denied UNIX perms appear ok (ACL/MAC wrong?))

2022-08-21 Thread Remo Mattei
It’s a mount partition you should check that probably it is nfs. 

Good luck. 

> Il giorno 21 ago 2022, alle ore 07:43, Austin Witmer  
> ha scritto:
> 
> Thanks to all of your for your input!
> 
> I think I may have gotten this resolved. More time and testing will tell! 
> More details later . . .
> 
> Austin Witmer
> 
> 
>> On Aug 20, 2022, at 9:06 AM, Erwan David  wrote:
>> 
>>> Le 20/08/2022 à 16:52, Austin Witmer a écrit :
>>> Hello all!
>>> 
>>> Recently I upgraded my mail server to Ubuntu 22.04 LTS and ever since then 
>>> I am periodically getting some dovecot errors like the below in my mail 
>>> log. As far as I can tell, my unix perms are just fine. What is ACL/MAC?
>>> 
>>> Aug 20 14:41:58 mail dovecot: 
>>> imap(u...@domain.com)<56316><1NieGKPmuOdKwxVI>: Error: Mailbox INBOX: 
>>> stat(/mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log
>>>  ) failed: Permission denied 
>>> (euid=1000(austin) egid=1000(austin) UNIX perms appear ok (ACL/MAC wrong?))
>>> 
>>> And here is the listing showing the permissions for that file.
>>> 
>>> *austin@mail*:*~*$ ls -la 
>>> /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log 
>>> 
>>> -rwxrwxr-- 1 austin austin 15796 Aug 20 14:41 
>>> */mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log 
>>> *
>>> 
>>> What in the world is causing these errors, and what can I do about them?
>>> 
>>> Thanks in advance!
>>> 
>>> Austin Witmer
>> 
>> Did you check wether your linux distribution uses SeLINUX or Apparmor ? In 
>> that case you would have to check their policy to give dovecot access to 
>> this directory.
>> 
> 


Re: Permission denied UNIX perms appear ok (ACL/MAC wrong?))

2022-08-20 Thread Remo Mattei
Try ls -laZ 

> Il giorno 20 ago 2022, alle ore 08:08, Erwan David  ha 
> scritto:
> 
> Le 20/08/2022 à 16:52, Austin Witmer a écrit :
>> Hello all!
>> 
>> Recently I upgraded my mail server to Ubuntu 22.04 LTS and ever since then I 
>> am periodically getting some dovecot errors like the below in my mail log. 
>> As far as I can tell, my unix perms are just fine. What is ACL/MAC?
>> 
>> Aug 20 14:41:58 mail dovecot: 
>> imap(u...@domain.com)<56316><1NieGKPmuOdKwxVI>: Error: Mailbox INBOX: 
>> stat(/mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log 
>> ) failed: Permission denied 
>> (euid=1000(austin) egid=1000(austin) UNIX perms appear ok (ACL/MAC wrong?))
>> 
>> And here is the listing showing the permissions for that file.
>> 
>> *austin@mail*:*~*$ ls -la 
>> /mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log 
>> 
>> -rwxrwxr-- 1 austin austin 15796 Aug 20 14:41 
>> */mnt/volume1/mailserver/plain/maildir/domain.com/user/dovecot.index.log 
>> *
>> 
>> What in the world is causing these errors, and what can I do about them?
>> 
>> Thanks in advance!
>> 
>> Austin Witmer
> 
> Did you check wether your linux distribution uses SeLINUX or Apparmor ? In 
> that case you would have to check their policy to give dovecot access to this 
> directory.
> 
> 



Re: Tools to get a report of which folders have new mail?

2022-07-19 Thread Remo Mattei
Yes sorry maildir maildrop is something for rules using in qmail. 

Remo 

> On Jul 18, 2022, at 9:01 PM, Steve Litt  wrote:
> 
> Remo Mattei said on Mon, 18 Jul 2022 20:51:16 -0700
> 
>> Are you using maildrop or flat files In your config? 
> 
> Thanks Remo,
> 
> If by "maildrop" you mean "maildir", I'm using maildir.
> Otherwise, I don't know what maildrop is.
> 
>> If you are using
>> maildrop where there is a file for each file then you could use free
>> into the folder new 
> 
> My Dovecot setup uses maildir and there's definitely one file per
> message. When I type "free" at my Linux command line it just lists
> statistics about memory. The doveadm man page doesn't list a command
> called "free". So I'm not sure what "free into the new folder" means.
> 
>> but I do not know what config you have check tre
>> command and see if that does some of what you want. 
> 
> Thanks,
> 
> SteveT
>> 
>>> Il giorno 18 lug 2022, alle ore 20:20, Steve Litt
>>>  ha scritto:
>>> 
>>> Hi all,
>>> 
>>> I use a Dovecot IMAP server on my Linux desktop computer, and I'm
>>> pretty good at writing shellscripts. Is there any way I could use
>>> doveadm or other tools to create a report that shows all my folders
>>> in a hierarchy? Also, is there a way to show only those with new
>>> mail?
>>> 
>>> Thanks,
>>> 
>>> SteveT
>>> 
>>> Steve Litt 
>>> Summer 2022 featured book: Thriving in Tough Times
>>> http://www.troubleshooters.com/bookstore/thrive.htm  
>> 



Re: Tools to get a report of which folders have new mail?

2022-07-18 Thread Remo Mattei
Are you using maildrop or flat files In your config? If you are using maildrop 
where there is a file for each file then you could use free into the folder new 
but I do not know what config you have check tre command and see if that does 
some of what you want. 

> Il giorno 18 lug 2022, alle ore 20:20, Steve Litt  
> ha scritto:
> 
> Hi all,
> 
> I use a Dovecot IMAP server on my Linux desktop computer, and I'm
> pretty good at writing shellscripts. Is there any way I could use
> doveadm or other tools to create a report that shows all my folders in a
> hierarchy? Also, is there a way to show only those with new mail?
> 
> Thanks,
> 
> SteveT
> 
> Steve Litt 
> Summer 2022 featured book: Thriving in Tough Times
> http://www.troubleshooters.com/bookstore/thrive.htm



Re: SQL-AUTH driver replace for VPOPMAIL-AUTH

2021-02-09 Thread Remo Mattei
Hi Pablo, 
Roberto has it without PLAIN text, you could check that out

https://notes.sagredo.eu/en/qmail-notes-185/installing-and-configuring-vpopmail-81.html
 


I recall I used Roberto in the past, and the pass is encrypted. 

Remo

> On Feb 9, 2021, at 19:04, Pablo Murillo  wrote:
> 
> Hi
> 
> I'm made a lot of test trying to get SLQ auth driver work with vpopmail/mysql 
> configured with many domains (one table for each domain)
> Finally I made it work, but ... only with PLAIN password
> Is there a way to make SQL auth work with vpopmail/mysql tables with 
> encrypted password (CRAM-MD5 / MD5-CRYPT) ?
> 
> Thanks
> Pablo Murillo
> 
> 
> 
> -- 
> This email has been checked for viruses by AVG.
> https://www.avg.com
> 



Re: Apple Mail and subfolders

2020-07-12 Thread Remo Mattei
I am a mac user with Apple Mail as well I do not have any issues in creating 
new folders. I am also using qmail as my smtp. 

Remo 

> On Jul 12, 2020, at 1:36 PM, Sami Ketola  wrote:
> 
> 
> 
>> On 11. Jul 2020, at 22.50, Filip Hajný  wrote:
>> 
>>> I just created a subfolder in Apple mail. It shows up on the server as 
>>> .list.Subfolder
>>> I drug your message into the folder, and the message shows up in Mail.app 
>>> and shows up in the subfolder on the server
>>> 
>>> # ls -lnR .lists.Subfolder  [10:40] 
>>> [/usr/local/virtual/krem...@kreme.com/Maildir]
>>> total 56
>>> drwx--  2 89  89   512 Jul 11 10:41 cur
>>> -rw---  1 89  8921 Jul 11 10:41 dovecot-keywords
>>> -rw---  1 89  89   109 Jul 11 10:41 dovecot-uidlist
>>> -rw---  1 89  89  1924 Jul 11 10:41 dovecot.index.cache
>>> -rw---  1 89  89   868 Jul 11 10:41 dovecot.index.log
>>> -rw---  1 89  89 0 Jul 11 10:35 maildirfolder
>>> drwx--  2 89  89   512 Jul 11 10:35 new
>>> drwx--  2 89  89   512 Jul 11 10:41 tmp
>>> 
>> 
>> I’ve created a test server and found out that the driving factor is what the 
>> namespace `separator` is set to. If set to /, Apple Mail gets confused and 
>> URL-encodes it when creating a new folder. If the separator is blank (as set 
>> by default) or set to e.g. a dot, everything works just fine.
>> 
>> Based on example and docs I found, a slash character should be good or even 
>> recommended, suggesting this is some kind of bug in Apple Mail,  but I’m not 
>> versed enough in the IMAP related RFCs to understand.
> 
> I'm Apple user. I have separator set to / and I can create folders just fine 
> without any encoding. Can you please record imap rawlogs where it shows what 
> command your Mail.App is sending?
> 
> Sami



Re: sieve question

2020-04-20 Thread Remo Mattei
I do agree with that. It depends on what he wants to do and how to handle the 
old domain stuff.

Remo

> On Apr 20, 2020, at 18:13, @lbutlr  wrote:
> 
> 
> 
>> On 20 Apr 2020, at 04:27, mj  wrote:
>> 
>> Hi Ralph!
>> 
>> Thanks for your reply!
>> 
>> On 4/20/20 12:19 PM, Ralph Seichter wrote:
>>> I suggest you don't use Sieve for this, but simply configure Postfix
>>> to reject messages to @old.domain.com with the desired message. MTA
>>> rejections signal clearly that the message has not been delivered, and
>>> you can also include an URL pointing to a web page with more detailed
>>> information.
>> 
>> However, this means those emails are not actually delivered anymore.
> 
> Yes, with a rejection message that informs why the message was not delivered. 
> This is the best thing you can do as it will force people to actually change 
> the email.
> 
> If you delay this by doing something temporary, all you are doing is delaying 
> it. Once you cut off the old email you’ll be in the exact same situation you 
> are in right now, as very few people will update email addresses.
> 
> If all you do now is autrespond with an automated message, most people will 
> never see that message. And if your auto-responder is paying the message is 
> not read or forwarded, what are you gaining? It is much better for the sender 
> to get an actual error which they are much more likely to see.
> 
> The other thing you can do is NOMX the old domain.
> 
> 
> 
> -- 
> in the long run there's still time to change the road you're on



Re: sieve question

2020-04-20 Thread Remo Mattei
Well, I do not use postfix, but qmail. I would however, create an autorepond 
telling them the new address and then fwd the old address to the new one. 

But nothing to do with sieve, it’s at the SMTP level. 

Remo

> On Apr 20, 2020, at 08:40, Ralph Seichter  wrote:
> 
> * mj:
> 
>> this means those emails are not actually delivered anymore.
> 
> Sure. That's how I interpreted your notification text "This message is
> sent automatically, and your message has NOT been read nor forwarded."
> If the message is not being read, why accept it in the first place?
> 
>> For now, I would like them to *be* delivered, so we still have them in
>> case something important comes in.
> 
> Speaking for myself: If I send email to a business partner, that email
> can be a) rejected, so I know I'll have to find another way to reach the
> intended recipient, or it can be b) accepted, in which case I expect it
> to be read/processed.
> 
> What you describe seems to be neither fish nor flesh to me. Using MTA
> rejects leaves no doubt that the *sender* has to become active. As I
> understand it, that is you goal, is it not?
> 
> -Ralph



Re: Headsup on feature removal

2020-03-18 Thread Remo Mattei
So I am on of the many users with qmail, and using vpopmail auth, I guess 
chatting with some other guys in the other mailing list we will convert to 
mysql driver but this is a lot of work for many people. 

I do understand dropping things out but a valid solutions needs to be proposed. 

Remo 

> On Mar 18, 2020, at 06:49, Michael Peddemors  wrote:
> 
> Amongst other plug-ins, yes..
> 
> On 2020-03-17 10:15 p.m., Aki Tuomi wrote:
>> Those plugins can be resurrected with simple `git revert`.
>> Are you planning on open sourcing your client id authetication plugin?
>> Aki
>>> On 18/03/2020 01:44 Michael Peddemors < mich...@linuxmagic.com 
>>>  >> >> wrote:
>>> 
>>> 
>>> With these planned changes, you mention they will be removed from
>>> 'core', so is the intention to allow more of these legacy plugins to
>>> more to their own repo's for those that might still want to use them?
>>> 
>>> Eg, more in the the path of plug-in architecture? Just curious for
>>> clarity.
>>> 
>>> Oh, and have to add.. still waiting on the variable capability patch, to
>>> allow plugins to modify advertised capabilities. (#pull request 86)
>>> 
>>> This will allow us to provide our dove cot plugins more widely to the
>>> community.
>>> 
>>> 
>>> 
>>> On 2020-03-16 11:50 p.m., Aki Tuomi wrote:
 Hi!
 
 Dovecot is now a nearly 20 year old product, and during that time it has 
 accumulated many different features and plugins in its core repository.
 
 We are starting to gradually remove some of these parts, which are unused, 
 untested or deprecated.
 We will provide advance notification before removing anything.
 
 To start, the following features are likely to be removed in next few 
 releases of Dovecot.
 
 - Authentication drivers: vpopmail, checkpassword, bsdauth, shadow, sia
 - Password schemes: HMAC-MD5, RPA, SKEY, PLAIN-MD4, LANMAN, NTLM, SMD5
 - Authentication mechanisms: ntlm, rpa, skey
 - Dict drivers: memcached, memcached-ascii (use redis instead)
 - postfix postmap support
 - autocreate & autosubscribe plugins (use built-in auto=create/subscribe 
 setting instead)
 - expire plugin (use built-in autoexpunge setting)
 - fts-squat plugin
 - mailbox alias plugin
 - mail-filter plugin
 - snarf plugin
 - xz compression algorithm
 
 For the authentication drivers that are being removed, we suggest using 
 Lua as a replacement. See
 https://doc.dovecot.org/configuration_manual/authentication/lua_based_authentication/
  
 
 For information about converting between password schemes, see
 https://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes
 
 If you are using any of these features, please start preparing for their 
 removal in the near
 future. Features will begin to be dropped as of v2.3.11.
 
 Additionally, the mbox format will no longer receive new development. It 
 will still be
 maintained, however its use beyond migrations and other limited use cases 
 will be discouraged.
 
 Please contact us via the mailing list if you have any questions.
 
 Regards,
 Dovecot Team
 
>>> 
>>> 
>>> -- 
>>> "Catch the Magic of Linux..."
>>> 
>>> Michael Peddemors, President/CEO LinuxMagic Inc.
>>> Visit us at http://www.linuxmagic.com @linuxmagic
>>> A Wizard IT Company - For More Info http://www.wizard.ca
>>> "LinuxMagic" a Registered TradeMark of Wizard Tower TechnoServices Ltd.
>>> 
>>> 604-682-0300 Beautiful British Columbia, Canada
>>> 
>>> This email and any electronic data contained are confidential and intended
>>> solely for the use of the individual or entity to which they are addressed.
>>> Please note that any views or opinions presented in this email are solely
>>> those of the author and are not intended to represent those of the company.
>> ---
>> Aki Tuomi
> 
> 
> 
> -- 
> "Catch the Magic of Linux..."
> 
> Michael Peddemors, President/CEO LinuxMagic Inc.
> Visit us at http://www.linuxmagic.com  @linuxmagic
> A Wizard IT Company - For More Info http://www.wizard.ca 
> 
> "LinuxMagic" a Registered TradeMark of Wizard Tower TechnoServices Ltd.
> 
> 604-682-0300 Beautiful British Columbia, Canada
> 
> This email and any electronic data contained are confidential and intended
> solely for the use of the individual or entity to which they are addressed.
> Please note that any views or opinions presented in this email are solely
> those of the author and are not intended to represent those of the company.



Re: Not works URL

2020-03-15 Thread Remo Mattei
It works from my side. 

> Il giorno 15 mar 2020, alle ore 04:08, Olgerdas  ha 
> scritto:
> 
> Hi,
> URL not reachable: https://doc.dovecot.org/plugin-settings/acl/
> 
> -- 
> Pagarbiai,
> Olgerdas Balinskis
> https://www.balinskis.lt



Re: [EXT] max number of connections per ip

2020-02-28 Thread Remo Mattei
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
> 
> 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 

Re: Dovecot 2.3 repo for CentOS 8.

2019-12-12 Thread Remo Mattei
Agree

> Il giorno 12 dic 2019, alle ore 10:47, Alexander Dalloz  
> ha scritto:
> 
> Am 12.12.2019 um 11:31 schrieb Reio Remma:
>> On 09/12/2019 17:25, Aki Tuomi via dovecot wrote:
> On 09/12/2019 17:20 Reio Remma via dovecot  wrote:
>> 
>> [ ... ]
>> 
>> I tried rebuilding the RPM for CentOS 8 but I see it's missing some notable 
>> required packages like tcp wrappers and quota-devel. Managed to rebuild by 
>> switching these off in the spec file (--without-libwrap), but that's 
>> probably not a good idea. :)
>> Reio
> 
> TCP wrappers got dropped for RHEL 8 by purpose, following that step of fedora.
> 
> https://fedoraproject.org//wiki/Changes/Deprecate_TCP_wrappers
> 
> There is no real need nowadays and from my experience not many admins make 
> use of it.
> 
> Alexander



Re: Multiple certificate option

2019-09-07 Thread Remo Mattei via dovecot
Thanks Michael I will check with the free cert lets encrypt to test it. 

Remo

> Il giorno 7 set 2019, alle ore 02:09, Michael Hallager via dovecot 
>  ha scritto:
> 
> On 2019-09-07 12:25, remo--- via dovecot wrote:
>> What is the best way to adopt multiple certs?
>> Thanks.
> 
> /etc/dovecot/conf.d/10-ssl.conf
> 
> Primary SSL certificate:
> 
> # SSL/TLS support: yes, no, required. 
> #ssl = yes
> ssl = required
> 
> ("yes" or "required" - I use required)
> 
> # Minimum SSL protocol version to use. Potentially recognized values are 
> SSLv3,
> # TLSv1, TLSv1.1, and TLSv1.2, depending on the OpenSSL version used.
> ssl_min_protocol = TLSv1
> 
> # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
> # dropping root privileges, so keep the key file unreadable by anyone but
> # root. Included doc/mkcert.sh can be used to easily generate self-signed
> # certificate, just make sure to update the domains in dovecot-openssl.cnf
> ssl_cert =  ssl_key =  
> Secondary SSL certificates (I add this at the bottom of the file)
> 
> local_name mail.domain2.tld {
> 
>ssl_cert = ssl_key =  
> }



Re: Error suggestions please

2019-05-27 Thread Remo Mattei via dovecot
This is the latest version 


2.3.5.2 (38c8f1daf)


> On May 27, 2019, at 04:49, Aki Tuomi  wrote:
> 
> 
> On 26.5.2019 1.03, Remo Mattei via dovecot wrote:
>> May 25 15:01:27 imap(xx...@italy1.com)<10256>: Error: 
>> Mailbox INBOX: UID=208: 
>> read(/home/vpopmail/domains/italy1.com/x/Maildir/cur/1154731221.9257.azz.italy1.com,S=26421:2,S)
>>  failed: Cached message size smaller than expected (26421 < 26511, 
>> box=INBOX, UID=208) (read reason=mail stream)
>> May 25 15:01:27 imap(xxx...@italy1.com)<10256>: Error: 
>> Corrupted record in index cache file 
>> /home/vpopmail/domains/italy1.com/x/Maildir/dovecot.index.cache: UID 
>> 208: Broken physical size in mailbox INBOX: 
>> read(/home/vpopmail/domains/italy1.com/x/Maildir/cur/1154731221.9257.azz.italy1.com,S=26421:2,S)
>>  failed: Cached message size smaller than expected (26421 < 26511, 
>> box=INBOX, UID=208)
>> May 25 15:01:27 imap(xxx...@italy1.com)<10256>: Panic: 
>> file istream.c: line 315 (i_stream_read_memarea): assertion failed: 
>> (old_size <= _stream->pos - _stream->skip)
>> 
>> Can someone tell help on how to fix this issue.
>> 
>> Thanks 
>> 
> 
> Hi!
> 
> Which version of dovecot is this?
> 
> Aki
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: Hello some help on login users saying it's disabled

2019-05-26 Thread Remo Mattei via dovecot
Thanks Aki I fixed it. Some issues with the Dovecot.conf :) options all good 
now. 

> Il giorno 26 mag 2019, alle ore 21:39, Aki Tuomi  
> ha scritto:
> 
> 
>> On 26 May 2019 00:34 Remo Mattei via dovecot  wrote:
>> 
>> 
>> Hello I am experiencing some strange issue with the dovecot, the web round 
>> cube works fine but when I try to connect with an iPhone over IMAP IMAPs it 
>> tells me that the account is disabled. 
>> 
>> Please advice here is what I see in the logs:
>> 
>> 
> 
> snip..
> 
>> 
>> And the account does not show any mail whereas the Web shows the mail just 
>> fine. 
>> 
>> Thanks
> 
> auth_mechanisms = PLAIN LOGIN
> 
> should help, assuming you have not configured your iPhone to use "secure 
> password" authentication.
> 
> Aki



Error suggestions please

2019-05-26 Thread Remo Mattei via dovecot
May 25 15:01:27 imap(xx...@italy1.com)<10256>: Error: Mailbox 
INBOX: UID=208: 
read(/home/vpopmail/domains/italy1.com/x/Maildir/cur/1154731221.9257.azz.italy1.com,S=26421:2,S)
 failed: Cached message size smaller than expected (26421 < 26511, box=INBOX, 
UID=208) (read reason=mail stream)
May 25 15:01:27 imap(xxx...@italy1.com)<10256>: Error: 
Corrupted record in index cache file 
/home/vpopmail/domains/italy1.com/x/Maildir/dovecot.index.cache: UID 208: 
Broken physical size in mailbox INBOX: 
read(/home/vpopmail/domains/italy1.com/x/Maildir/cur/1154731221.9257.azz.italy1.com,S=26421:2,S)
 failed: Cached message size smaller than expected (26421 < 26511, box=INBOX, 
UID=208)
May 25 15:01:27 imap(xxx...@italy1.com)<10256>: Panic: file 
istream.c: line 315 (i_stream_read_memarea): assertion failed: (old_size <= 
_stream->pos - _stream->skip)

Can someone tell help on how to fix this issue.

Thanks 



smime.p7s
Description: S/MIME cryptographic signature


Hello some help on login users saying it's disabled

2019-05-26 Thread Remo Mattei via dovecot
Hello I am experiencing some strange issue with the dovecot, the web round cube 
works fine but when I try to connect with an iPhone over IMAP IMAPs it tells me 
that the account is disabled. 

Please advice here is what I see in the logs:


May 25 14:30:32 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=<4AZjBr2J2cisCqP7>
May 25 14:30:32 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:32 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:32 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:34 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:34 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:37 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:37 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:39 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=
May 25 14:30:39 imap-login: Info: Aborted login (no auth attempts in 0 secs): 
user=<>, rip=172.10.163.251, lip=208.53.44.237, session=

And the account does not show any mail whereas the Web shows the mail just 
fine. 

Thanks 

Re: /var/run/dovecot/stats-writer) failed: Permission denied

2019-04-10 Thread Remo Mattei via dovecot
This is what fixed mine 

 service stats {
# unix_listener stats-reader {
# group =
# mode = 0666
# user =
#   }
   unix_listener stats-writer {
 group = dovecot
 mode = 0666
 user =
   }
  }


> On Apr 10, 2019, at 09:43, @lbutlr via dovecot  wrote:
> 
> On 10 Apr 2019, at 09:06, @lbutlr via dovecot  wrote:
>> Should I add
>> 
>> service stats {
>> unix_listener stats-writer {
>> user = dovecot
>> }
>> unix_listener stats-reader {
>> user = dovecot
>> }
>> }
>> 
>> to my dovecot.conf file?
> 
> I did this and it appears to have fixed the issue.
> 
> Also, the failed message strongly implies that the email was not delivered, 
> since it happens on the delivery log line and there is not indication in the 
> log that delivery succeeded. However, the message is delivered. It might be 
> worth changing the message or still logging the actual message delivery?
> 
> 
> -- 
> I WILL NOT CARVE GODS Bart chalkboard Ep. 8F11
> 
> 



Issues with stats-writer

2019-02-03 Thread Remo Mattei
Here is the full mail coming in:


@40005c57633625970624 starting delivery 12824: msg 1270896 to local 
ma.org-...@mattei.org 
@40005c57633625970a0c status: local 1/10 remote 0/60
@40005c57633711a138c4 delivery 12824: success: lda(y...@ma.org 
,)Error:_net_connect_unix(/var/run/dovecot/stats-writer)_failed:_Permission_denied/did_0+0+1/
@40005c57633711a1447c status: local 0/10 remote 0/60

I am using qmail for some reasons I have the error above. I have tried the 
following: 

#service stats {
#unix_listener stats-reader {
#user = root
#group = dovecot
#mode = 0660
#}
#
#unix_listener stats-writer {
#user = root
#group = dovecot
#mode = 0660
#}
#}

But still no luck still have the same issue. 

Any tips are welcomed.

Remo