Il 07/03/2013 14:42, Steffen Kaiser ha scritto:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 7 Mar 2013, Nunzio Falcone wrote:
After I send email to utente2 via "telenet localhost 25"
I return to /var/vmail/utente2 and perform "ls -la" that shows me: maildir |-maildir |-cur |-new |-tmp
but the expected results was |-maildir |-cur |-new |-tmp
Mar 05 19:54:35 auth: Debug: master in: USER 1 utente2/maildir/@domain.local service=lda Mar 05 19:54:35 auth: Debug: master out: USER 1 utente2/maildir/@domain.local uid=500 gid=500 home=/var/vmail/utente2/maildir/@domain.local Mar 05 19:54:35 lda: Debug: auth input: utente2/maildir/@domain.local uid=500 gid=500 home=/var/vmail/utente2/maildir/@domain.local Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: Effective uid=500, gid=500, home=/var/vmail/utente2/maildir/@domain.local Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: Home dir not found: /var/vmail/utente2/maildir/@domain.local Mar 05 19:54:35 lda(utente2/maildir/@domain.local): Debug: maildir++: root=/var/vmail/utente2/maildir//maildir, index=, control=, inbox=/var/vmail/utente2/maildir//maildir
When I interprete lines 1 and 2 correctly, you pass "utente2/maildir/@domain.local" as username to Dovecot. Line 3 evaluates your homedir using "%Lu" correctly, 6th line is using "%n" variable, which resembles to "utente2/maildir/"; there you get the double "maildir//maildir" - note the double /, too, one from the username, one from the mail_location pattern.
For some reason, I do not know, you allow "/" in usernames, hence, they gets passed to the path of homedir and mail location.
The only question now is, do you really send the message to: utente2/maildir/@domain.local
or does Postfix mangles the recipient in some way?
i've performed those task
set /etc/dovecot/conf.d/10-auth.conf # modifiche dovecot+postfix+ad #auth_username_format = %Lu *auth_username_format = %n* auth_debug = yes ssl = no first_valid_uid = 500 last_valid_uid = 500 first_valid_gid = 500 last_valid_gid = 500
and execute the following telnet session [root@posta ~]# telnet localhost 25 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 posta.domain.local ESMTP Postfix HELO domain.local 250 posta.domain.local mail from:domain@domain.local 250 2.1.0 Ok rcpt to:utente2 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> blabla . 250 2.0.0 Ok: queued as EF9CE406F9
note the use of login (only "utente2)
this is the debug session Mar 07 23:06:15 auth: Debug: master in: USER 1 utente2/maildir/@domain.local service=lda Mar 07 23:06:15 auth: Debug: master out: USER 1 utente2/maildir/ uid=500 gid=500 home=/var/vmail/utente2/maildir/ Mar 07 23:06:15 lda: Debug: auth input: utente2/maildir/ uid=500 gid=500 home=/var/vmail/utente2/maildir/ Mar 07 23:06:15 lda: Debug: changed username to utente2/maildir/ Mar 07 23:06:15 lda(utente2/maildir/): Debug: Effective uid=500, gid=500, home=/var/vmail/utente2/maildir/ Mar 07 23:06:15 lda(utente2/maildir/): Debug: Home dir not found: /var/vmail/utente2/maildir/ Mar 07 23:06:15 lda(utente2/maildir/): Debug: maildir++: root=/var/vmail/utente2/maildir//maildir, index=, control=, inbox=/var/vmail/utente2/maildir//maildir Mar 07 23:06:15 lda(utente2/maildir/): Debug: Namespace : Permission lookup failed from /var/vmail/utente2/maildir//maildir Mar 07 23:06:15 lda(utente2/maildir/): Debug: Namespace : Using permissions from /var/vmail/utente2/maildir//maildir: mode=0700 gid=-1 Mar 07 23:06:15 lda(utente2/maildir/): Debug: none: root=, index=, control=, inbox= Mar 07 23:06:15 lda(utente2/maildir/): Info: msgid=<20130307220609.EF9CE406F9@posta.domain.local>: saved mail to INBOX
but the result is the same maildir |-maildir |-cur |-new |-tmp
this is my first insallation so any help is appreciated
--
*Nunzio Falcone* nunzio.falcone@gmail.com
*Cell * +39 320 1167923 *Voip*+39 081 0117933 *Fax * +39 081 0113049