Pigeonhole : how to automatically subscribe to newly created folders

2024-05-05 Thread Erwan David via dovecot

Hello,

In my sieve script I use

fileinto :create "mailbox"

Is it possible that the created mailbox is then automatically added to 
the subsccribe list for the account ?



--
Erwan David

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Pay Someone to Take My Online Course? <- SPAM!

2023-10-05 Thread Erwan David

Le 05/10/2023 à 13:13, Narcis Garcia a écrit :

Please unsubscribe spammer soon!



Please : never quote spam...


--
Erwan David

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


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

2022-08-20 Thread Erwan David

Le 20/08/2022 à 18:23, Austin Witmer a écrit :

See below.


On Aug 20, 2022, at 9:56 AM, Remo Mattei  wrote:

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 
<http://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 
<http://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 
<http://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.



No, I’m not familiar with SeLinux or Apparmor. Tell me what I should do or 
check.

Thanks!

Austin Witmer



I'm not sure. apparmor logs in kern.log

You can try a grep mailserver/plain/maildir/domain.com /var/log/*.log 
for a start





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

2022-08-20 Thread Erwan David

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: Message attachments, relocated with Tbird in Dovecot maildir store, not openable; reversible by moving BACK to inbox?

2022-04-01 Thread Erwan David

Le 01/04/2022 à 12:17, PGNet Dev a écrit :

This 'feels' like cache management misconfiguration to me.  Not sure 
whether in Tbird &/or Dovecot, or what to look for specificially.


Hints as to cause/fix of this attachment issue?  Or event what/where, 
specifically, to log?




I see same symptoms when opening a mail in thunderbird 2 or 3 weeks 
after I received it, without moving it in another folder.
Burt using "repair folder" in TB, I get it back, so for me it looks more 
like a TB cache problem.




Re: Userdb problem

2021-11-11 Thread Erwan David

Le 11/11/2021 à 21:31, Erwan David a écrit :

Hello

I am trying to move authentication from ldap to passwdfile. 
Autentication works, but clients do not find the mails.



With ldap I have :

root@email:~ # doveadm auth login erwan x
passdb: erwan auth succeeded
extra fields:
 user=erwan
userdb extra fields:
 erwan
 home=/var/db/mailboxes/erwan
 /var/db/mailboxes/erwan=/var/db/mailboxes/erwan
 uid=587
 gid=587
 auth_mech=PLAIN

With passwdfile I get

root@email:~ # doveadm auth login erwan x
passdb: erwan auth succeeded
extra fields:
 user=erwan
userdb extra fields:
 erwan
 home=/var/db/mailboxes/erwan,uid=587,gid=587
 uid=587
 gid=587
 auth_mech=PLAIN

The only difference is this 
"/var/db/mailboxes/erwan=/var/db/mailboxes/erwan" (which is the place 
where email is stored).



There is an obvious other difference in the home field... Sorry I only 
saw it when reading again my email...





Userdb problem

2021-11-11 Thread Erwan David

Hello

I am trying to move authentication from ldap to passwdfile. 
Autentication works, but clients do not find the mails.



With ldap I have :

root@email:~ # doveadm auth login erwan x
passdb: erwan auth succeeded
extra fields:
 user=erwan
userdb extra fields:
 erwan
 home=/var/db/mailboxes/erwan
 /var/db/mailboxes/erwan=/var/db/mailboxes/erwan
 uid=587
 gid=587
 auth_mech=PLAIN

With passwdfile I get

root@email:~ # doveadm auth login erwan x
passdb: erwan auth succeeded
extra fields:
 user=erwan
userdb extra fields:
 erwan
 home=/var/db/mailboxes/erwan,uid=587,gid=587
 uid=587
 gid=587
 auth_mech=PLAIN

The only difference is this 
"/var/db/mailboxes/erwan=/var/db/mailboxes/erwan" (which is the place 
where email is stored).



What is the problem with this ?


auth configuration is :


passdb {
  driver = passwd-file
  args = scheme=SHA512-CRYPT username_format=%n 
/usr/local/etc/dovecot/users

}

userdb {
  driver = passwd-file
  args = username_format=%n /usr/local/etc/dovecot/users

  # Default fields that can be overridden by passwd-file
  #default_fields = quota_rule=*:storage=1G
  default_fields = home=/var/db/mailboxes/%n,uid=587,gid=587

  # Override fields from passwd-file
  #override_fields = home=/home/virtual/%u
  override_fields = home=/var/db/mailboxes/%n,uid=587,gid=587
}




Re: Something obvious in my sieve?

2021-08-19 Thread Erwan David
Le 19/08/2021 à 20:23, @lbutlr a écrit :
> I get the following error for this: line 24 is the "contains subset" line
> .active_sieve: line 24: error: expecting test identifier after ',' in test 
> list, but found '('.
> .active_sieve: line 24: error: expecting ',' or end of test list ')', but 
> found '{'.
> .active_sieve: error: parse failed.
>
>if anyof (body :contains "files transferred: 0",
> (header :contains "subject" "a specific subject goes here" ) {
>   
> This clause produces no error
>
> if anyof (header :contains "from" "@unwanted",
>   envelope :matches :detail "to" "extension",
>   exists "X-Facebook" ){
>
> What am I missing?
>
You must not put an opening parenthesis before the "header :contains",
it is the second clause of the anyof




Re: Quick Question

2021-07-23 Thread Erwan David

Le 23/07/2021 à 13:49, Stephane Magnier a écrit :

Hi,

Is there a way to transform  a "*mbox*" structure ( in the folder : like 
/var/spool/mail/ ) into a *maildir* structure ?


I would dream to see a doveadm instruction doing something like : 
*/doveadm /var/spool/mail/%u /var/spool2/./*..  something like 
this.. That would be great !!  :-)


Thanks and regards



Have a look to https://wiki.dovecot.org/Migration/MailFormat



Re: Fwd: Mailbox lost

2021-07-12 Thread Erwan David

Le 12/07/2021 à 09:09, Stephane Magnier a écrit :



sorry I don't understand..

When I use the lsub "" ** , there was nothing connected to the server ( 
nor Thunderbird nor roundcubemail )


Just the server running alone.

Is that normal to get "lsub" ... empty ? Evertything available should be 
available ?


So, how can I reactivate the vsibility via Dovecot cmd line ?

It used to work fine.. and suddently, it disappeared.. Done nothing.. ( 
se server was on test only and visible just by me )


Thanks




LSUB shows you the list of subscribed mailboxes. If you want a 
mailbox/folder to appear in the result of LSUB you must use the 
SUBSCRIBE command.
However it is usually much easier to do through an imap client other 
than telnet (what you call "dovecot cmd line" is indeed using telnet as 
an imap client)




Re: lost mailbox

2021-07-02 Thread Erwan David
Le 02/07/2021 à 16:37, Stephane Magnier a écrit :
>
> Hi,
>
> I used dovect with the following setup :
> mbox:/var/spool2/mail/%u:INBOX=/var/spool/mail/%u
>
> If I have a look via cmd line
>
> [root@mbxx1 ~]# telnet localhost 143
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
> LITERAL+ STARTTLS AUTH=PLAIN] Dovecot ready.
> a login azt000 lassiemag76
> a OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT
> SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT
> MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS
> LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES
> WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY
> PREVIEW=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
> b list "" **
> * LIST (\NoInferiors) "/" 2015
> * LIST (\NoInferiors) "/" 2020-IT
> * LIST (\NoInferiors) "/" 2018-PERSO
> * LIST (\NoInferiors) "/" 2017
> * LIST (\NoInferiors) "/" 2020-MARKETING
> * LIST (\NoInferiors) "/" 2019-AZT
> * LIST (\NoInferiors) "/" 2019-ADMIN
> * LIST (\NoInferiors) "/" "2020- PERSO"
> * LIST (\NoInferiors) "/" sss
> * LIST (\NoInferiors) "/" 2019-COMPTA
> * LIST (\NoInferiors) "/" 2019-PERSO
> * LIST (\NoInferiors) "/" 2017-ADMIN
> * LIST (\NoInferiors) "/" 2016
> * LIST (\NoInferiors \UnMarked) "/" 2020-compta
> * LIST (\NoInferiors \UnMarked \Trash) "/" Trash
> * LIST (\NoInferiors \UnMarked) "/" Archives
> * LIST (\NoInferiors \Sent) "/" Sent
> * LIST (\NoInferiors \Marked \Junk) "/" Junk
> * LIST (\NoInferiors \UnMarked \Drafts) "/" Drafts
> * LIST (\NoInferiors \UnMarked \Sent) "/" "Sent Messages"
> * LIST (\NoInferiors) "/" INBOX/2021-AZT
> * LIST (\NoInferiors) "/" INBOX/2021-WebMEETING
> * LIST (\NoInferiors) "/" INBOX/2021-zezez
> * LIST (\NoInferiors) "/" INBOX/2021-PERSO
> * LIST (\NoInferiors) "/" INBOX/2021-MARKETING
> * LIST (\NoInferiors \UnMarked) "/" INBOX/2021-COMPTA
> * LIST (\NoInferiors \UnMarked) "/" INBOX/2021-ADMIN
> * LIST (\NoInferiors \UnMarked) "/" INBOX/2021-ATV
> * LIST (\NoInferiors \UnMarked) "/" INBOX/2021-test
> * LIST (\HasChildren) "/" INBOX
> b OK List completed (0.009 + 0.000 + 0.008 secs).
>
>
> If I've opened my thunderbird.. I have just the INBOX and nothing
> else  
>
> and the folder :  2021-ADMIN and 2021-ATV and that's it
>
>
> I've tried to do : /doveadm force-resync -u user1  : /nothing happened
>
> Any idea in order to syncrhonized a folder with  thunderbird ?
>
Check the subscribed mailboxes, thunderbird shows only them.

In thunderbird, right click on the account, then "subscirbe" (sorry I do
not remember the Imap command to get the scuscibed mailboxes)



Re: What imap ssl/auth settings work best with MS Outlook?

2021-04-30 Thread Erwan David
Le 30/04/2021 à 19:06, Benny Pedersen a écrit :
> On 2021-04-30 03:48, Adi Pircalabu wrote:
>> On 29-04-2021 23:08, @lbutlr wrote:
>>> On 29 Apr 2021, at 03:22, Steve Dondley wrote:
 I am totally unfamiliar with Exchange servers. What do they offer,
 exactly, that dovecot/postfix does not (besides a revenue stream
 for MS)?
>>>
>>> A monthly stipend to Microsoft?
>>>
>>> (I think they actuallyy do offer some useful tools for things like
>>> meetings and calendars and such, including the 'feature' of being able
>>> to automatically add people to your itinerary.)
>>
>> 
>>
>> Fact: Exchange (especially hosted) is 2010-ish, Office365 is the
>> buzzword these days. Microsoft have been trying their best for quite
>> some time now to cripple the IMAP support in Outlook as much as they
>> can so that the email users will move their email business with o365
>> which - surprise surprise! - is s easy to autodiscover,
>> autoconfigure, autothis, autothat. It's all about integrated services
>> run by few well known powerful monopolies and it's only gonna get
>> worse.
>>
>> 
>
> 
>
> is mozilla thunderbird better in 2021 with no shareing or dokumented
> ical icard or shared adressbook
>
> simply is seamonkey worse then firefox ?
>
> 
>
> imho its not just microsoft
>

Thunderbird has native caldav support, you get carddav with the cardbook
extension, no problem.




Re: What imap ssl/auth settings work best with MS Outlook?

2021-04-30 Thread Erwan David

Le 30/04/2021 à 11:47, James a écrit :

On 30/04/2021 08:13, @lbutlr wrote:

When you enter your email address, it would be TRIVIAL to check the MX 
records for the domain and fill those in for the SMTP and IMAP 
servers, allowing users to more easily add (if needed) the domain prefix.


Better to use DNS SVR records than guess from MX or domain.  I provide 
email SVRs but does any mail client use them?


https://tools.ietf.org/html/rfc6186


There is config-v1.1.xml, again I do not know which clients use, hence 
what I should provide, maybe I carry on providing as many methods as I can.





Here is what Thunderbird does : 
https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration


No use of SRV Alas



Re: t/s expired cert error

2021-03-02 Thread Erwan David
Le 02/03/2021 à 13:29, Voytek Eymont a écrit :
> since a couple of days one of users reported getting expired certificate
> error in TB, looking at the log, I can see like:
>
> Mar 02 21:46:24 pop3-login: Info: Disconnected (no auth attempts in 0
> secs): user=<>, rip=111.222.333.444, lip=103.106.168.105, TLS: SSL_read
> failed: error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert
> certificate expired: SSL alert number 45, session=<...>


Here it is the certificate presented on the pop3 port (either port 110
with a STLS command or port 995)


> but, looking at server with
> https://ssl-tools.net/mailservers/emu.sbt.net.au it says 'valid' as does
> certbot tool


Here it seems te site tests the smtp server (on port 25), which is not
handled by dovecot. You probably have different certificates on both.





Re: Dovecot and mutt

2021-01-20 Thread Erwan David
On Wed, Jan 20, 2021 at 01:58:38PM CET, "@lbutlr"  said:
> On 20 Jan 2021, at 04:33, Piotr Auksztulewicz  wrote:
> > On Wed, Jan 20, 2021 at 04:27:11AM -0700, @lbutlr wrote:
> >> set imap_pass = "lasH-hds[er$asd"  # Not a real password
> > 
> > Use single quotes around the password. Double quotes make $asd to be
> > interpreted as shell variable and replaced with (most likely) empty
> > string, so you get a shortened passwort in effect.
> 
> This worked, thank you.
> 
> Also… gr. Who though expansion inside a password string was a clever idea 
> and can I introduce them to a clue bat? :p

set imap_pass = $smtp_pass seems a good usecase.

> > PS. Also a mutt lover :-)
> 
> With the amount of HTML mail out there I really don't understand how people 
> are able to use it anymore. Now, if I could get a 'stip html down to plain 
> text' side function to work… 

In my .mailcap I have
text/html; w3m -I %{charset} -T text/html; copiousoutput;

and in my .muttrc :
auto_view text/html


-- 
Erwan


Re: sieve cli

2019-10-03 Thread Erwan David via dovecot


Le 03/10/2019 à 18:40, Matthew Broadhead via dovecot a écrit :
> i am using dovecot-2.2.36-3.el7_7.1.x86_64 on centos 7
>
> is it possible to activate / deactivate a sieve script for a mailbox
> from the command line?
>
> my mailboxes are currently stores in /../vmail/domain.tld/username
>
> if i activate / deactivate a filter set using roundcube (webmail
> system) then it creates or deletes a symbolic link
> /../vmail/domain.tld/username/dovecot.sieve  which points to a file
> /../vmail/domain.tld/username/sieve/managesieve.sieve.
>
> if i create this symbolic link manually it doesn't seem to work
>

You can use the sieve-connect command which uses the managesieve
protocol to speak to the server.



Re: Calendar function ?

2018-10-21 Thread Erwan David
Le 10/21/18 à 12:29, m...@caloro.ch a écrit :
>
> Hello
>
>  
>
> I running no long time with me Email System Postfix/Dovecot/mysql and
> i’am whery happy
>
> the feature to synchroize Calendar, or view the calender entry from me
> workpartner i will miss
>
>  
>
> this feature, how do you handle this ? isn’t possible to insert this
> to Dovecot or Postfix?
>
> Are this question out of topic ? or how do you implement this in our
> envirement ?
>
>  
>
> Regards
>
> Mauri
>
>  
>
I use the caldav features of nextcloud for tjis