Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dovecot: lda(web1): Error: open(/var/mail/web1) failed

Featured Replies

Dovecot möchte in /var/mail Zugriff auf die Inbox für die in -> Kunden angelegten Kunden. 

Jan 16 09:16:17 ghost dovecot: lda(web1): msgid=<20190115192201.CE0DE176463@mail.domain.com>: save failed to open mailbox INBOX: Internal error occurred. Refer to server log for more information. [2019-01-16 09:16:17]
Jan 16 09:16:17 ghost postfix/local[11068]: CE0DE176463: to=<web1@mail.domain.com>, orig_to=<web1>, relay=local, delay=46456, delays=46456/0.33/0/0.01, dsn=4.3.0, status=deferred (temporary failure)

In Einstellungen -> Mail-Server-Einstellungen steht /var/customers/mail

 

Owner für /var/customers/mail auch komplett vmail user und group?

  • Author

jup.

 

Quote

Refer to server log for more information. 

Was steht denn in der entprechenden log? Da muss ja mehr stehen. Ggfls mail_debug = yes in der dovecot.conf aktivieren

  • Author
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Loading modules from directory: /usr/lib/dovecot/modules
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Module loaded: /usr/lib/dovecot/modules/lib90_sieve_plugin.so
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Effective uid=10002, gid=10002, home=/var/customers/webs/web1/
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: quota: No quota setting - plugin disabled
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:~/mail:INBOX=/var/mail/web1
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: fs: root=/var/customers/webs/web1//mail, index=, indexpvt=, control=, inbox=/var/mail/web1, alt=
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: userdb lookup skipped, username taken from USER environment
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: quota: No quota setting - plugin disabled
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Destination address: web1@mail.domain.com (source: user@hostname)
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: Pigeonhole version 0.4.16 (fed8554) initializing
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: include: sieve_global is not set; it is currently not possible to include `:global' scripts.
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: file storage: Storage path `/var/customers/webs/web1//sieve' not found
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: file storage: Failed to normalize active script directory (path=/var/customers/webs/web1//sieve): Part of the path does not exist (yet)
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: file storage: Using Sieve script path: /var/customers/webs/web1//sieve/.dovecot.sieve
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: file storage: Storage path `/var/customers/webs/web1//sieve/.dovecot.sieve' not found
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: storage: No default script location configured
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: User has no personal script
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: sieve: No scripts to execute: reverting to default delivery.
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Namespace : /var/mail/web1 doesn't exist yet, using default permissions
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Namespace : Using permissions from /var/customers/webs/web1//mail: mode=0700 gid=default
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Namespace : /var/mail/web1 doesn't exist yet, using default permissions
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Namespace : Using permissions from /var/customers/webs/web1//mail: mode=0700 gid=default
Jan 16 12:28:02 ghost dovecot: lda(web1): Error: open(/var/mail/web1) failed: Permission denied (euid=10002(web1) egid=10002(web1) missing +w perm: /var/mail, we're not in group 8(mail), dir owned by 0:8 mode=0775)
Jan 16 12:28:02 ghost dovecot: lda(web1): Error: Failed to autocreate mailbox INBOX: Internal error occurred. Refer to server log for more information. [2019-01-16 12:28:02]
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Mailbox stdin: Opened mail UID=1 because: header Message-ID (Cache file is unusable)
Jan 16 12:28:02 ghost dovecot: lda(web1): Debug: Mailbox stdin: Opened mail UID=1 because: virtual size (Cache file is unusable)
Jan 16 12:28:02 ghost dovecot: lda(web1): msgid=<20190116112802.1ADB9176CB4@mail.domain.com>: save failed to open mailbox INBOX: Internal error occurred. Refer to server log for more information. [2019-01-16 12:28:02]
Jan 16 12:28:02 ghost postfix/local[7861]: 1ADB9176CB4: to=<web1@mail.domain.com>, orig_to=<web1>, relay=local, delay=0.02, delays=0/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Jan 16 12:28:02 ghost postfix/local[7861]: using backwards-compatible default setting relay_domains=$mydestination to update fast-flush logfile for domain "mail.domain.com"

mail_debug = yes aktiviert . Das ist der Auszug aus /var/log/mail.log 

Quote

In Einstellungen -> Mail-Server-Einstellungen steht /var/customers/mail

und das aus den logs:

Quote

/var/mail/web1

und noch viel komsicher

Quote

Effective uid=10002, gid=10002, home=/var/customers/webs/web1/

passt alles nicht zusammen.

a) web1@domain.tld scheint kein E-mail konto zu sein, daher versucht er lokal zuzustellen und landet in /var/mail ...

b) home=/var/customers/webs/web1 - das stimmt nicht mit deiner Einstellung überein. Was steht denn in der Froxlor-Tabelle "mail_users" (kompletter auszug bitte, ohne passwörter)

  • Author

Die Datenbanktabelle sieht gut aus. Die IDs passen alle zusammen. Die durch Froxlor-Kunden erstellte E-Mail-Adressen sind auch nicht betroffen, sondern die Kunden-Konten selbst. Für alle Kunden / Benutzer welche durch Extrauser im System verfügbar sind möchte Dovecot gerne die Mailbox in /var/mail anlegen bzw sucht dort danach. 

wenn ich mir die /etc/dovecot/conf.d/ steht dort

 mail_location = mbox:~/mail:INBOX=/var/mail/%u 

das entspricht der Vorgabe der Froxlor-Konfiguration für Debian 9

Die Kunden-Benutzer / System-user haben aber garkein E-Mail Konto... also [kunde]@[hostname] gibt es schlichtweg nicht...

  • Author

ok, ich mach mir mal meinen reim drauf. Ich hab unter -> Einstellungen -> Mailserver-Einstellungen den Dovecot als MDA. Ich hab via Extrausers unter /var/lib/extrausers die Kunden im System. Die haben einen Shell-Zugang. Für all diese User würde der Dovecot jetzt gerne Zugang zu /var/mail haben um dort deren lokales Mailkonto einzurichten bzw. abzurufen. Da hat er aber keinen Zugang zu.

Lösung wäre

#mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_location = maildir:~/Maildir

Dann erhält man z.B. /var/customers/webs/customer1/Maildir weil /var/customers/webs/customer1 ist das Home-Verzeichnis für den Extrauser customer1

Du kannst gerne für die Benutzer Shell aktivieren, aber dann musst du dich auch um die lokale mailzustellung kümmern. Das ist Default bei froxlor nicht vorgesehen. Das das in der dovecot config so steht kommt aus der system default config für die entsprechende distribution. Froxlor arbeitet sonst nur rein mit den Mail Usern aus der Datenbank und hat nichts mit system Usern in dem Sinne am Hut.

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.