> Are you just saying I should test removing the "/./" chroot from the user 
> homedir ?  (I think I already tried this, but happy to try again if that's 
> what you're saying)
> In a first time, yes, for various reasons:


Per Axel's request, snippet from users.....  
1001:1001::/srv/mail/ops.example.com/test:/bin/false::

# rm -rf /srv/mail/ops.example.com/test/*

Receiving mail………..
Aug  2 11:43:14 ukc-vm02-mx01 postfix/smtpd[3947]: connect from 
unknown[192.168.10.43]
Aug  2 11:43:30 ukc-vm02-mx01 postfix/smtpd[3947]: 3C2C0448D4: 
client=unknown[192.168.10.43]
Aug  2 11:43:41 ukc-vm02-mx01 postfix/cleanup[3951]: 3C2C0448D4: message-id=<>
Aug  2 11:43:42 ukc-vm02-mx01 postfix/qmgr[2093]: 3C2C0448D4: 
from=<a...@example.com>, size=207, nrcpt=1 (queue active)
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254): Debug: none: root=, index=, 
control=, inbox=, alt=
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254): Connect from local
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254): Debug: auth input: 
t...@ops.example.com uid=1001 gid=1001 home=/srv/mail/ops.example.com/test
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254, t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/srv/mail/ops.example.com/test
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254, t...@ops.example.com): Debug: 
maildir++: root=/srv/mail/ops.example.com/test, index=, control=, 
inbox=/srv/mail/ops.example.com/test, alt=
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254, t...@ops.example.com): Debug: 
Namespace : Using permissions from /srv/mail/ops.example.com/test: mode=0755 
gid=-1
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254, t...@ops.example.com): 
KYtNAl6N+1HOCAAAwf4bjw: msgid=unspecified: saved mail to INBOX
Aug  2 11:43:42 ukc-vm02-mx01 dovecot: lmtp(2254): Disconnect from local: 
Client quit (in reset)
Aug  2 11:43:42 ukc-vm02-mx01 postfix/lmtp[3952]: 3C2C0448D4: 
to=<t...@ops.example.com>, 
relay=ukc-vm02-mx01.ops.example.com[private/dovecot-lmtp], delay=18, 
delays=18/0/0/0.16, dsn=2.0.0, status=sent (250 2.0.0 <t...@ops.example.com> 
KYtNAl6N+1HOCAAAwf4bjw Saved)
Aug  2 11:43:42 ukc-vm02-mx01 postfix/qmgr[2093]: 3C2C0448D4: removed
Aug  2 11:43:49 ukc-vm02-mx01 postfix/smtpd[3947]: disconnect from 
unknown[192.168.10.43]


# ls -la /srv/mail/ops.example.com/test/new/
total 12
drwxr-xr-x 2 its-virtmail its-virtmail 4096 Aug  2 11:43 .
drwxr-xr-x 5 its-virtmail its-virtmail 4096 Aug  2 11:43 ..
-rw-r--r-- 1 its-virtmail its-virtmail  476 Aug  2 11:43 
1375440222.M45272P2254.ukc-vm02-mx01,S=476,W=485



* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
AUTH=PLAIN] Dovecot ready.
a1 LOGIN t...@ops.example.com test
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN 
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT 
SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in
a2 EXAMINE INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS ()] Read-only mailbox.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1375440274] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
a2 OK [READ-ONLY] Select completed.
a3 LOGOUT
* BYE Logging out
a3 OK Logout completed.
closed


Checking mail…….
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=<t...@ops.example.com>, method=PLAIN, rip=192.168.10.43, lip=10.17.177.71, 
mpid=3956, TLS
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Error: 
chdir(/srv/mail/ops.example.com/test) failed: No such file or directory
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: Home 
dir not found: /srv/mail/ops.example.com/test
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
maildir++: root=/srv/mail/ops.example.com/test, index=, control=, 
inbox=/srv/mail/ops.example.com/test, alt=
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Namespace : /srv/mail/ops.example.com/test doesn't exist yet, using default 
permissions
Aug  2 11:44:29 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Namespace : Using permissions from /srv/mail/ops.example.com/test: mode=0700 
gid=-1
Aug  2 11:44:38 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): 
Disconnected: Logged out bytes=26/599

Reply via email to