YunoHost / issues

General issue tracker for the YunoHost project
72 stars 8 forks source link

Email ranking with "+" #2343

Open microniko opened 8 months ago

microniko commented 8 months ago

Describe the bug

When I use user+plouf@domain.com type, dovecot tries to store the email in the plouf folder. If the folder doesn't exist, there is an error in the log. I suggest adding an option in Yunohost to either disable this or create a folder automatically so that it's accessible to the user.

Context

Logs

Feb 21 19:04:41 domain dovecot: lda(user+plouf@domain.com)<406738><XX/fQ>: Error: sieve: Execution of script /var/mail/sievescript/user/.dovecot.sieve failed with unsuccessful implicit keep (user logfile /var/mail/sievescript/user/.dovecot.sieve.log may reveal additional details)
Feb 21 19:04:41 domain dovecot: lda(user+plouf@domain.com)<406738><XX/fQ>: msgid=<11111@smtp-relay.com>: save failed to open mailbox plouf: Mailbox doesn't exist: plouf

Thx

alexAubin commented 8 months ago

Eh yeah but isn't it supposed to be user+plouf@domain.tld ... ?

microniko commented 8 months ago

Eh yeah but isn't it supposed to be user+plouf@domain.tld ... ?

Oups… Yes…

Tagadda commented 8 months ago

@microniko I can't reproduce this issue. Are you sure that you didn't mistyped the e-mail address ? Can you please share the original log (with YunoPaste) ?

microniko commented 8 months ago

@Tagadda : You can found an example of log entry here.

Tagadda commented 8 months ago

Can you share dovecot logs around Feb 25 07:36:44 ?

microniko commented 8 months ago

@Tagadda : There is an syslog extract (with Dovecot and Postfix).

tituspijean commented 8 months ago

I can replicate the issue:

Feb 27 11:58:18 vps dovecot: lda(titus@domain.tld)<1737150><QEWYKlrO3WW+gRoA3/52cw>: Error: sieve: Execution of script /var/mail/sievescript/titus/.dovecot.sieve failed with unsucce
ssful implicit keep (user logfile /var/mail/sievescript/titus/.dovecot.sieve.log may reveal additional details)
Feb 27 11:58:18 vps dovecot: lda(titus@domain.tld)<1737150><QEWYKlrO3WW+gRoA3/52cw>: msgid=<1015653988.76731519.1709035096652.JavaMail.zimbra@free.fr>: save failed to open mailbox t
est: Mailbox doesn't exist: test                                                                                                                                                        
Feb 27 11:58:18 vps dovecot: lda(titus@domain.tld)<1737150><QEWYKlrO3WW+gRoA3/52cw>: msgid=<1015653988.76731519.1709035096652.JavaMail.zimbra@free.fr>: saved mail to INBOX
Feb 27 11:58:18 vps postfix/pipe[1737147]: 3D075201BD: to=<titus+test@domain.tld>, relay=dovecot, delay=0.67, delays=0.6/0.01/0/0.07, dsn=2.0.0, status=sent (delivered via dovecot s
ervice)