[Dovecot] sieve under lmtp using wrong homedir ?
Hi,
i have a problem with dovecot-2.0.15.
All is working well except lmtp. Sieve scripts are correctly saved under /var/vmail/test.com/test/sieve, but under lmtp sieve will use /var/vmail//testuser/ Uid testuser has mail=test@test.com configured in ldap.
As i could see in the debug logs, there is a difference between the auth "master out" lines, but why ?
working if managesieve stores scripts:
Jan 11 15:02:42 auth: Debug: master in: REQUEST 3533701121 23001 1
7ec31d3c65cb934785e8eb0f33a182ae
Jan 11 15:02:42 auth: Debug: ldap(test@test.com,10.234.201.4): result:
mail(user)=test@test.com
Jan 11 15:02:42 auth: Debug: master out: USER 3533701121 test@test.com
home=/var/vmail/test.com/test uid=5000 gid=5000
Jan 11 15:02:42 managesieve(test@test.com): Debug: Effective uid=5000,
gid=5000, home=/var/vmail/test.com/test
but under lmtp not: Jan 11 14:39:53 auth: Debug: master in: USER 1 testuser service=lmtp lip=10.234.201.9 rip=10.234.201.4 Jan 11 14:39:53 auth: Debug: auth(testuser,10.234.201.4): username changed testuser -> test@test.com Jan 11 14:39:53 auth: Debug: ldap(test@test.com,10.234.201.4): result: mail(user)=test@test.com Jan 11 14:39:53 auth: Debug: master out: USER 1 test@test.com home=/var/vmail//testuser uid=5000 gid=5000 Jan 11 14:39:53 lmtp(8499): Debug: auth input: test@test.com home=/var/vmail//testuser uid=5000 gid=5000 Jan 11 14:39:53 lmtp(8499): Debug: changed username to test@test.com Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: Effective uid=5000, gid=5000, home=/var/vmail//testuser Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: Quota root: name=User quota backend=maildir args= Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: Quota rule: root=User quota mailbox=* bytes=2147483648 messages=0 Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: Quota warning: bytes=1932735283 (90%) messages=0 reverse=no command=quota-warning 90 test@test.com Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: maildir++: root=/var/vmail/test.com/test/Maildir, index=/var/dovecot/indexes/test.com/test, control=, inbox=/var/vmail/test.com/test/Maildir, alt= Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: trash: No trash setting permissions from /var/vmail/test.com/test/Maildir: mode=0700 gid=-1
- plugin disabled Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: sieve: include: sieve_global_dir is not set; it is currently not possible to include `:global' scripts. Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: pla8CymRDU8zIQAAFrfQGQ: sieve: user's script path /var/vmail//testuser/.dovecot.sieve doesn't exist (using global script path in stead) Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: pla8CymRDU8zIQAAFrfQGQ: sieve: user has no valid personal script Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: pla8CymRDU8zIQAAFrfQGQ: sieve: no scripts to execute: reverting to default delivery. Jan 11 14:39:53 lmtp(8499, test@test.com): Debug: Namespace : Using
Thanks, for your help.
Frank
On 11.1.2012, at 17.35, Frank Post wrote:
All is working well except lmtp. Sieve scripts are correctly saved under /var/vmail/test.com/test/sieve, but under lmtp sieve will use /var/vmail//testuser/ Uid testuser has mail=test@test.com configured in ldap.
As i could see in the debug logs, there is a difference between the auth "master out" lines, but why ? .. Jan 11 14:39:53 auth: Debug: master in: USER 1 testuser service=lmtp lip=10.234.201.9 rip=10.234.201.4
This means that Dovecot LMTP got:
RCPT TO:<testuser>
instead of:
RCPT TO:<test@test.com>
You probably should fix your userdb lookup so that that would return "unknown user" instead of accepting it. But the real problem is anyway in your MTA setup.
participants (2)
-
Frank Post
-
Timo Sirainen