Bouncing emails (Group doesn't exist: vmail)

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.0.8
I have access to my server: SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Im trying to set email through Yunohost. I have been able to setup all the prerequisites and I’m able to send and receive email without any problem.

Recently, i have been made aware that emails sent to me “bounce” back meaning each time a contact sends me an email he receives the message bellow.

This is the mail system at host xxxxxx.xxx.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<contact@xxxxxx.xxx.>: user unknown. Command output:
    lda(contact@xxxxxx.xxx.,)Error:
    net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied

Problem here is that i get those emails in my inbox without problem.

Here are the /var/log/mail.err logs :

xxxxxxx dovecot: master: Fatal: Dovecot is already running with PID 2322 (read from /var/run/dovecot/master.pid)
xxxxxxx dovecot: master: Fatal: service(stats) Group doesn't exist: vmail (See service stats { unix_listener /var/run/dovecot/stats-reader { group } } setting)
xxxxxxx postfix/smtpd[2268]: fatal: no SASL authentication mechanisms

I can provide more information if needed

Thank you

Weird indeed … the user vmail does exist, but not the group vmail - and instead I believe just “mail” should be used. But I have trouble identifying where all this is coming from exactly (an additional dovecot module maybe ?)

Can you try to run :

grep -nr "^[^#]*vmail" /etc/dovecot

On my side I have only :

/etc/dovecot/dovecot.conf:70:    user = vmail
/etc/dovecot/dovecot.conf:76:  user = vmail
/etc/dovecot/dovecot-ipv4.conf:25:    user = vmail
/etc/dovecot/dovecot-ipv4.conf:88:  user = vmail

which is about the user vmail which is fine

This is what i get :

/etc/dovecot/dovecot.conf:70:    user = vmail
/etc/dovecot/dovecot.conf:76:  user = vmail
/etc/dovecot/dovecot.conf:113:    user = vmail
/etc/dovecot/dovecot.conf:118:    user = vmail

Hmokay so let’s try something else and identify where that stats-reader thing is coming from :

grep -nr "stats-reader" /etc/

Result :

/etc/dovecot/dovecot.conf:112:  unix_listener stats-reader {

Here is the full part in dovecot.conf

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

Well uuh okay … is that something you added yourself ? There’s nothing like this in the default conf in Yunohost … Doesn’t 'yunohost tools regen-conf dovecot' want to update that file ?

1 Like

Yes it actually says

`Warning: The configuration file '/etc/dovecot/dovecot.conf' has been manually modified and will not be updated`

So i must have added those lines while i was trying to troubleshoot it myself.
Should i force regen it ?

Well uh yeah if you have real reason for the additional lines etc

Same problem but i dont get anymore errors in : /var/log/mail.err
I have this instead in /var/log/mail.log

Oct 13 14:46:35 xxxxxxxxxx dovecot: master: Warning: Killed with signal 15 (by pid=25358 uid=0 code=kill)
Oct 13 14:46:36 xxxxxxxxxx dovecot: master: Dovecot v2.3.4.1 (f79e8e7e4) starting up for imap, sieve (core dumps disabled)
Oct 13 14:48:05 xxxxxxxxxx dovecot: master: Warning: Killed with signal 15 (by pid=25626 uid=0 code=kill)
Oct 13 14:48:06 xxxxxxxxxx dovecot: log(25382): Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Oct 13 14:48:07 xxxxxxxxxx dovecot: master: Dovecot v2.3.4.1 (f79e8e7e4) starting up for imap, sieve (core dumps disabled)
Oct 13 14:48:25 xxxxxxxxxx postfix/smtpd[25663]: connect from mail-il1-f173.google.com[209.85.166.173]
Oct 13 14:48:25 xxxxxxxxxx dovecot: imap-login: Login: user=<xxxxxxxxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25679, secured, session=<MXG11IyxxOp/AAAB>
Oct 13 14:48:25 xxxxxxxxxx dovecot: imap(xxxx)<25679><MXG11IyxxOp/AAAB>: Logged out in=127 out=1634 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct 13 14:48:26 xxxxxxxxxx dovecot: imap-login: Login: user=<xxxxxxxxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25686, secured, session=<yZe51Iyxyup/AAAB>
Oct 13 14:48:26 xxxxxxxxxx postfix/smtpd[25663]: Anonymous TLS connection established from mail-il1-f173.google.com[209.85.166.173]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256
Oct 13 14:48:26 xxxxxxxxxx dovecot: imap(xxxx)<25686><yZe51Iyxyup/AAAB>: Logged out in=508 out=33122 deleted=0 expunged=0 trashed=0 hdr_count=50 hdr_bytes=115 body_count=0 body_bytes=0
Oct 13 14:48:26 xxxxxxxxxx dovecot: imap-login: Login: user=<xxxxxxxxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=25697, secured, session=<9vDF1Iyx0up/AAAB>
Oct 13 14:48:26 xxxxxxxxxx postfix/smtpd[25663]: DE56120A48: client=mail-il1-f173.google.com[209.85.166.173]
Oct 13 14:48:26 xxxxxxxxxx postsrsd[25698]: srs_forward: <xxxxxxxxxxxx@xxxx.xxx> rewritten as <SRS0=u0c7=DU=gmail.com=xxxxxxxxxx1@xxxxxxxxxxxx.xxx>
Oct 13 14:48:26 xxxxxxxxxx postfix/cleanup[25696]: DE56120A48: message-id=<CAHguswNMXreeErHH18Dmk_S2v2GCCQAg3sxYhN=nuaJszpvmGA@mail.gmail.com>
Oct 13 14:48:27 xxxxxxxxxx dovecot: imap(xxxx)<25697><9vDF1Iyx0up/AAAB>: Logged out in=397 out=3233 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct 13 14:48:27 xxxxxxxxxx postfix/qmgr[1374]: DE56120A48: from=<SRS0=u0c7=DU=gmail.com=xxxxxxxxxx1@xxxxxxxxxxxx.xxx>, size=9261, nrcpt=2 (queue active)
Oct 13 14:48:28 xxxxxxxxxx postfix/smtpd[25663]: disconnect from mail-il1-f173.google.com[209.85.166.173] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
Oct 13 14:48:28 xxxxxxxxxx postfix/pipe[25706]: DE56120A48: to=<contact@xxxxxxxxxxxx.xxx>, relay=dovecot, delay=1.6, delays=1.5/0.04/0/0.11, dsn=5.1.1, status=bounced (user unknown. Command output: lda(contact@xxxxxxxxxxxx.xxx,)Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied )
Oct 13 14:48:28 xxxxxxxxxx dovecot: lda(xxxx@xxxxxxxxxxxx.xxx)<25709><AcMeBhyihV9tZAAAPVu4KQ>: sieve: msgid=<CAHguswNMXreeErHH18Dmk_S2v2GCCQAg3sxYhN=nuaJszpvmGA@mail.gmail.com>: stored mail into mailbox 'INBOX'
Oct 13 14:48:28 xxxxxxxxxx postfix/pipe[25707]: DE56120A48: to=<xxxx@xxxxxxxxxxxx.xxx>, orig_to=<contact@xxxxxxxxxxxx.xxx>, relay=dovecot, delay=1.6, delays=1.5/0.06/0/0.1, dsn=2.0.0, status=sent (delivered via dovecot service (lda(xxxx@xxxxxxxxxxxx.xxx,)Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission d))
Oct 13 14:48:28 xxxxxxxxxx postsrsd[25698]: srs_forward: <""> not rewritten: No at sign in sender address
Oct 13 14:48:28 xxxxxxxxxx postsrsd[25699]: srs_reverse: <SRS0=u0c7=DU=gmail.com=xxxxxxxxxx1@xxxxxxxxxxxx.xxx> rewritten as <xxxxxxxxxxxx@xxxx.xxx>
Oct 13 14:48:28 xxxxxxxxxx postsrsd[25699]: srs_reverse: <SRS0=u0c7=DU=gmail.com=xxxxxxxxxx1@xxxxxxxxxxxx.xxx> rewritten as <xxxxxxxxxxxx@xxxx.xxx>
Oct 13 14:48:28 xxxxxxxxxx postfix/cleanup[25696]: 253DE20F87: message-id=<20201013124828.253DE20F87@xxxxxxxxxxxx.xxx>
Oct 13 14:48:28 xxxxxxxxxx postfix/qmgr[1374]: 253DE20F87: from=<>, size=11270, nrcpt=1 (queue active)
Oct 13 14:48:28 xxxxxxxxxx postfix/bounce[25710]: DE56120A48: sender non-delivery notification: 253DE20F87
Oct 13 14:48:28 xxxxxxxxxx postfix/qmgr[1374]: DE56120A48: removed
Oct 13 14:48:28 xxxxxxxxxx postfix/smtp[25711]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c09::1b]:25: Network is unreachable
Oct 13 14:48:28 xxxxxxxxxx postfix/smtp[25711]: Trusted TLS connection established to gmail-smtp-in.l.google.com[74.125.133.26]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256
Oct 13 14:48:29 xxxxxxxxxx postfix/smtp[25711]: 253DE20F87: to=<xxxxxxxxxxxx@xxxx.xxx>, orig_to=<SRS0=u0c7=DU=gmail.com=xxxxxxxxxx1@xxxxxxxxxxxx.xxx>, relay=gmail-smtp-in.l.google.com[74.125.133.26]:25, delay=0.87, delays=0.02/0.19/0.34/0.32, dsn=2.0.0, status=sent (250 2.0.0 OK  1602593309 y11si6802442wrn.199 - gsmtp)
Oct 13 14:48:29 xxxxxxxxxx postfix/qmgr[1374]: 253DE20F87: removed

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.