Re: [Dovecot] Any way to test a master user's password?

2013-08-16 Thread Nigel Smith
Google the terms "Dictionary Attack" and "Rainbow Table"  perhaps ?  ;-)



 From: Axel Luttgens 
To: Dovecot Mailing List  
Sent: Friday, 16 August 2013, 13:55
Subject: [Dovecot] Any way to test a master user's password?
 

Hello,

Is there any way to easily check a master user's password, for itself, without 
having to refer to another user or to weak the security by allowing master 
users to log in for themselves?

For example, this works:

    # doveadm auth test 'someuser*masteruser'
    Password: 
    passdb: someuser*masteruser auth succeeded

but depends on the existence of another user, and is thus contingent and 
unnecessarily heavy.

TIA,
Axel

Re: [Dovecot] force ciphers order for clients

2013-08-14 Thread Nigel Smith
I would like to contribute this suggestion (assuming nobody has already) :

ssl_cipher_list = TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:!PSK:@STRENGTH



I have not tested it incredibly thoroughly, but I do believe the @STRENGTH at 
the end is the little secret that puts the order into the chaos.


[Dovecot] Help needed with SOLR integration

2013-08-05 Thread Nigel Smith
Hi,

Is there anything wrong with this config for getting SOLR working ?

I'm on Ubuntu 12.04LTS and using the bundled Jetty and SOLR.

Calling "http://localhost:8080/solr/update?optimize=true"; doesn't return an 
error. And I'm pretty sure I've replaced the schema ?

Help & thanks in advance

Nigel


# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-37-generic x86_64 Ubuntu 12.04.2 LTS 
mail_location = maildir:~/Maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii
-numeric relational regex imap4flags copy include variables body enotify 
environment mailbox date ihave
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
}
plugin {
  fts = solr
  fts_solr = url=http://localhost:8080/solr/
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap lmtp sieve
service auth {
  unix_listener /var/spool/postfix/private/dovecot-auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = its-virtmail
    user = its-virtmail
  }
}
service imap-login {
  process_min_avail = 3
}
service lmtp {
  process_min_avail = 5
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
  user = its-virtmail
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  process_min_avail = 3
}
ssl = required
ssl_cert =  was automatically rejected:%n%r
}
protocol lmtp {
  mail_plugins = sieve
  postmaster_address = b...@example.com
}


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-03 Thread Nigel Smith
All's well that ends well Stan !

I've learnt how the list prefers its config specimens to be displayed, and the 
list has solved my original problem. 

I've even managed to get Sieve and SOLR working without any issues whatsoever.  
;-)

Guess that makes me a happy bunny so far.  Now I guess I need to transfer a few 
live accounts to the box and see if I can break it !

All the best.


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
> You should take this discussion off list.


Tell me Dem which part of my original question was not fit for the list ?  
It was a perfectly valid technical question relating to Dovecot, and according 
to the description of the mailing list "This is the main list for requesting 
help with Dovecot or talking about
it in general"

So I was "requesting help" with Dovecot, and everyone else is perfectly within 
their rights to "talk about it".

Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
> So, I'll now be a bit insisting, but could you now try with:

> mail_location = maildir:~/mails

Axel,

This seems to bring up a new problem. ;-(

Before that change, I could see the new mails in both Telnet and Apple Mail.

Now, I can only see the mail in Telnet and not in Apple Mail.   No config 
changes apart form your suggestion (mail_location = maildir:~/Maildir) 

Logs below.

RECEIVING EMAIL..
Aug  2 13:10:06 ukc-vm02-mx01 postfix/smtpd[5089]: connect from 
unknown[10.1.123.43]
Aug  2 13:10:26 ukc-vm02-mx01 postfix/smtpd[5089]: 0331F448FD: 
client=unknown[10.1.123.43]
Aug  2 13:10:30 ukc-vm02-mx01 postfix/cleanup[5092]: 0331F448FD: message-id=<>
Aug  2 13:10:30 ukc-vm02-mx01 postfix/qmgr[2093]: 0331F448FD: 
from=, size=208, nrcpt=1 (queue active)
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700): Debug: none: root=, index=, 
control=, inbox=, alt=
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700): Connect from local
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700): Debug: auth input: 
t...@ops.example.com uid=1001 gid=1001 home=/srv/mail/ops.example.com/test
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700, t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700, t...@ops.example.com): Debug: 
maildir++: root=/srv/mail/ops.example.com/test/Maildir, index=, control=, 
inbox=/srv/mail/ops.example.com/test/Maildir, alt=
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700, t...@ops.example.com): Debug: 
Namespace : /srv/mail/ops.example.com/test/Maildir doesn't exist yet, using 
default permissions
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700, t...@ops.example.com): Debug: 
Namespace : Using permissions from /srv/mail/ops.example.com/test/Maildir: 
mode=0700 gid=-1
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700, t...@ops.example.com): 
mCAHILah+1FcEgAAwf4bjw: msgid=unspecified: saved mail to INBOX
Aug  2 13:10:30 ukc-vm02-mx01 postfix/lmtp[5093]: 0331F448FD: 
to=, 
relay=ukc-vm02-mx01.ops.example.com[private/dovecot-lmtp], delay=11, 
delays=10/0.01/0/0.13, dsn=2.0.0, status=sent (250 2.0.0  
mCAHILah+1FcEgAAwf4bjw Saved)
Aug  2 13:10:30 ukc-vm02-mx01 dovecot: lmtp(4700): Disconnect from local: 
Client quit (in reset)
Aug  2 13:10:30 ukc-vm02-mx01 postfix/qmgr[2093]: 0331F448FD: removed
Aug  2 13:10:32 ukc-vm02-mx01 postfix/smtpd[5089]: disconnect from 
unknown[10.1.123.43]

ls -la /srv/mail/ops.example.com/test/Maildir/
total 48
drwx-- 5 its-virtmail its-virtmail  4096 Aug  2 13:12 .
drwx-- 3 its-virtmail its-virtmail  4096 Aug  2 13:10 ..
drwx-- 2 its-virtmail its-virtmail  4096 Aug  2 13:11 cur
-rw--- 1 its-virtmail its-virtmail 16384 Aug  2 13:12 dovecot.index.cache
-rw--- 1 its-virtmail its-virtmail   580 Aug  2 13:11 dovecot.index.log
-rw--- 1 its-virtmail its-virtmail   104 Aug  2 13:10 dovecot-uidlist
-rw--- 1 its-virtmail its-virtmail 8 Aug  2 13:10 dovecot-uidvalidity
-r--r--r-- 1 its-virtmail its-virtmail 0 Aug  2 13:10 
dovecot-uidvalidity.51fba1b6
drwx-- 2 its-virtmail its-virtmail  4096 Aug  2 13:11 new
drwx-- 2 its-virtmail its-virtmail  4096 Aug  2 13:10 tmp


TELNET
Aug  2 13:12:09 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=10.1.123.43, lip=172.16.1.71, 
mpid=5404, TLS
Aug  2 13:12:09 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug  2 13:12:09 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
maildir++: root=/srv/mail/ops.example.com/test/Maildir, index=, control=, 
inbox=/srv/mail/ops.example.com/test/Maildir, alt=
Aug  2 13:13:11 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): 
Disconnected: Logged out bytes=59/1273


APPLE MAIL
Aug  2 13:11:14 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=10.1.123.43, lip=172.16.1.71, 
mpid=5394, TLS
Aug  2 13:11:14 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug  2 13:11:14 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
maildir++: root=/srv/mail/ops.example.com/test/Maildir, index=, control=, 
inbox=/srv/mail/ops.example.com/test/Maildir, alt=
Aug  2 13:11:15 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=10.1.123.43, lip=172.16.1.71, 
mpid=5396, TLS
Aug  2 13:11:15 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug  2 13:11:15 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
maildir++: root=/srv/mail/ops.example.com/test/Maildir, index=, control=, 
inbox=/srv/mail/ops.example.com/test/Maildir, alt=
Aug  2 13:11:15 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=10.1.123.43, lip=172.16.1.71, 
mpid=5398, TLS
Aug  2 13:11:15 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug 

Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
Jerry,

We drew a line in the sand over the Steve issue hours ago.

Please keep this thread on-topic now, or post nothing at all.  I don't want to 
re-open that old debate.


Thank you for your understanding.


;-)


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith



> So, I'll now be a bit insisting, but could you now try with:
> mail_location = maildir:~/mails

Ok, will go try now. 

>If it works, this may prove useful in the future (for example, should you want 
>make use of sieve or easily avoid to have >the control/index files taken into 
>account for the quotas).

Ah yes, Sieve.  That's going to be my next challenge.  I have not tested it 
yet, but have been wondering if the various sieve directory settings (e.g. 
sieve_dir,sieve,sieve_global_dir etc. etc.) operate independently of the
 "general" Dovecot directory settings (e.g. mail_location, the home 
directory in user files etc.) ?  

> As a last step, you could then try to chroot again.

Only if someone can suggest why my original chroot config didn't work first, 
otherwise I'll just be breaking things again  ;-)

Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
Looking more promising with the chroot commented out Axel (doveconf at the 
bottom) . ;-)

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

Aug  2 12:25:50 ukc-vm02-mx01 postfix/smtpd[4480]: connect from 
unknown[17.16.10.43]
Aug  2 12:26:04 ukc-vm02-mx01 postfix/smtpd[4480]: 8E0454470E: 
client=unknown[17.16.10.43]
Aug  2 12:26:09 ukc-vm02-mx01 postfix/cleanup[4484]: 8E0454470E: message-id=<>
Aug  2 12:26:09 ukc-vm02-mx01 postfix/qmgr[2093]: 8E0454470E: 
from=, size=210, nrcpt=1 (queue active)
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466): Debug: none: root=, index=, 
control=, inbox=, alt=
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466): Connect from local
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466): Debug: auth input: 
t...@ops.example.com uid=1001 gid=1001 home=/srv/mail/ops.example.com/test/
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466, t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test/
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466, 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 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466, t...@ops.example.com): Debug: 
Namespace : /srv/mail/ops.example.com/test doesn't exist yet, using default 
permissions
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466, t...@ops.example.com): Debug: 
Namespace : Using permissions from /srv/mail/ops.example.com/test: mode=0700 
gid=-1
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466, t...@ops.example.com): 
wD94LVGX+1FyEQAAwf4bjw: msgid=unspecified: saved mail to INBOX
Aug  2 12:26:09 ukc-vm02-mx01 postfix/lmtp[4485]: 8E0454470E: 
to=, 
relay=ukc-vm02-mx01.ops.example.com[private/dovecot-lmtp], delay=12, 
delays=12/0.01/0/0.16, dsn=2.0.0, status=sent (250 2.0.0  
wD94LVGX+1FyEQAAwf4bjw Saved)
Aug  2 12:26:09 ukc-vm02-mx01 dovecot: lmtp(4466): Disconnect from local: 
Client quit (in reset)
Aug  2 12:26:09 ukc-vm02-mx01 postfix/qmgr[2093]: 8E0454470E: removed
Aug  2 12:26:15 ukc-vm02-mx01 postfix/smtpd[4480]: disconnect from 
unknown[17.16.10.43]

* 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.
* 1 EXISTS
* 1 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1375442769] UIDs valid
* OK [UIDNEXT 2] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
a2 OK [READ-ONLY] Select completed.
a3 FETCH 1 BODY[]
* 1 FETCH (BODY[] {488}
Return-Path: 
Delivered-To: 
Received: from ukc-vm02-mx01.ops.example.com
by ukc-vm02-mx01.ops.example.com (Dovecot) with LMTP id wD94LVGX+1FyEQAAwf4bjw
for ; Fri, 02 Aug 2013 12:26:09 +0100
Received: from x (unknown [17.16.10.43])
by ukc-vm02-mx01.ops.example.com (Postfix) with ESMTP id 8E0454470E
for ; Fri,  2 Aug 2013 12:25:57 +0100 (BST)
Subject: x

s
)
a3 OK Fetch completed.
a4 LOGOUT
* BYE Logging out
a4 OK Logout completed.
closed


Aug  2 12:26:34 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=17.16.10.43, lip=10.17.10.71, 
mpid=4490, TLS
Aug  2 12:26:34 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test/
Aug  2 12:26:34 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 12:27:15 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): 
Disconnected: Logged out bytes=44/1170



# doveconf -n                                                            
[20/270]
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-37-generic x86_64 Ubuntu 12.04.2 LTS ext4
mail_debug = yes
mail_location = maildir:/srv/mail/%d/%n
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeri
c relational regex imap4flags copy include variables body enotify environment 
mailbox date ihave
passdb {
  args = scheme=CRYPT username_format=%u /etc/dovecot/users
  driver = passwd-file
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = imap lmtp
service auth {
  unix_listener /var/spool/postfix/private/dovecot-auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = its-virtmail
    user = its-virtmail
  }
}
service lmtp {
  process_min_avail = 5
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
  user = its-virtmail
}
ssl_cert =  was automatically r

Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
Also re-ran Axel's test with a forward slash after the username, no better

Although unlike my original config, With Axel's new user home,  Dovecot seems 
to be creating an extra directory
 /srv/mail/srv/mail/ops.example.com/test/


Messages are being delivered to the original path though 
/srv/mail/ops.example.com/test/new/


Aug  2 11:53:08 ukc-vm02-mx01 postfix/smtpd[3967]: connect from 
unknown[10.16.15.43]
Aug  2 11:53:26 ukc-vm02-mx01 postfix/smtpd[3967]: 13D87448D4: 
client=unknown[10.16.15.43]
Aug  2 11:53:31 ukc-vm02-mx01 postfix/cleanup[3971]: 13D87448D4: message-id=<>
Aug  2 11:53:31 ukc-vm02-mx01 postfix/qmgr[2093]: 13D87448D4: 
from=, size=207, nrcpt=1 (queue active)
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953): Debug: none: root=, index=, 
control=, inbox=, alt=
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953): Connect from local
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953): Debug: auth input: 
t...@ops.example.com uid=1001 gid=1001 home=/srv/mail/ops.example.com/test/
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953, t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/srv/mail/ops.example.com/test/
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953, 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:53:31 ukc-vm02-mx01 dovecot: lmtp(3953, t...@ops.example.com): Debug: 
Namespace : Using permissions from /srv/mail/ops.example.com/test: mode=0755 
gid=-1
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953, t...@ops.example.com): 
QhhaFauP+1FxDwAAwf4bjw: msgid=unspecified: saved mail to INBOX
Aug  2 11:53:31 ukc-vm02-mx01 postfix/lmtp[3972]: 13D87448D4: 
to=, 
relay=ukc-vm02-mx01.ops.example.com[private/dovecot-lmtp], delay=17, 
delays=17/0.01/0/0.16, dsn=2.0.0, status=sent (250 2.0.0  
QhhaFauP+1FxDwAAwf4bjw Saved)
Aug  2 11:53:31 ukc-vm02-mx01 dovecot: lmtp(3953): Disconnect from local: 
Client quit (in reset)
Aug  2 11:53:31 ukc-vm02-mx01 postfix/qmgr[2093]: 13D87448D4: removed


Aug  2 11:54:03 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=10.16.15.43, lip=10.17.10.71, 
mpid=3977, TLS
Aug  2 11:54:03 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:54:03 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:54:03 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: Home 
dir not found: /srv/mail/ops.example.com/test/
Aug  2 11:54:03 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:54:03 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:54:03 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:54:23 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): 
Disconnected: Logged out bytes=43/908


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith


> 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=, 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=, 
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  
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=, 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


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith


> I'm not sure how Dovecot is supposed to interpret the ending "/./" part.

Axel,

Re: the above

http://wiki2.dovecot.org/Chrooting

"Insert "/./" inside the returned home directory, eg.: home=/home/./user to 
chroot into /home, or home=/home/user/./ to chroot into /home/user."


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith


> I wanted to add before above question that I would at least try something 
> like this:
>mail_location = maildir:~/mails
> t...@ops.example.com:{SSHA512}x:1001:1001::/srv/mail/ops.example.com/test:::


I'll admit I'm a little confused Axel  ;-)

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)

I'm not quite sure how proposed changing mail_location to ~/mails would work ?



Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith


Reindl,


Can we please get this thread back on topic now ?

Thank you

Nigel


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
>thats fine *but* on mailing-lists you should paste the output *inline*

>
>nobody likes to c&p things for quoting from whatever online
>services nor is it useful in context of list-archives as well
>as nobody right on his mind clicks on tiny-urls


Fine, but then just ask me to post them on the list instead of making up a 
stupid story that I never provided them in the first place !    ;-(


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
>> PS - Yes, Stan is right: always better to provide the output doveconf -n 
>> (and postconf -n), and even better in a message's body. :-)


As I told Stan and I'll tell you the configs were right there from the 
start for all to see ;-)


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
To save Stan the inconvenience of clicking on a link, I hereby copy my configs 
from pastbin and paste to the list, apologies for the clutter...

Happy now Stan ?  ;-)

(1) Doveconf
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.5.0-37-generic x86_64 Ubuntu 12.04.2 LTS ext4
mail_chroot = /srv/mail
mail_debug = yes
mail_location = maildir:/srv/mail/%d/%n
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
passdb { args = scheme=CRYPT username_format=%u /etc/dovecot/users driver = 
passwd-file
}
plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve
}
protocols = imap lmtp
service auth { unix_listener /var/spool/postfix/private/dovecot-auth { group = 
postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = 
its-virtmail user = its-virtmail }
}
service lmtp { process_min_avail = 5 unix_listener 
/var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = 
postfix } user = its-virtmail
}
ssl_cert =  was automatically rejected:%n%r
}
(2) Postifx
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_command = /usr/lib/dovecot/deliver -c 
/etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}"
mailbox_size_limit = 0
mydestination = ukc-vm02-mx01.ops.example.com, localhost.ops.example.com, , 
localhost
myhostname = ukc-vm02-mx01.ops.example.com
mynetworks = 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128 10.17.18.0/24
myorigin = /etc/mailname
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = reject_unknown_sender_domain, 
reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, 
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
smtpd_tls_mandatory_ciphers = high
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = cdb:/etc/postfix/virtual
virtual_gid_maps = static:1001
virtual_mailbox_base = /srv/mail
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_maps = cdb:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_transport = lmtp:unix:private/dovecot-lmtp
virtual_uid_maps = static:1001


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith


>Unfortunately you failed to provide 'dovecot -n' output which makes
>assisting you much more difficult.  Providing this is standard operating
>procedure.


Sorry, but What on earth are you on about ?

From the man page " -n     Dump non-default settings to stdout and exit 
successfully.  The same as doveconf -n."

From the ***TOP*** of my original email :

Dovecot :  2.0.19 (see config at http://pastebin.com/raw.php?i=KMaQ9Ccc)
Postfix :  2.9.6 (see config at http://pastebin.com/raw.php?i=EEeevHfk)



The configs are right there for both postifx and dovecot.   I was being 
courteous by posting them on pastebin instead of pasting them into an email 
which would become clutterd with lines of config !


Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
>Somewhat blindly, what's the output of:
>
>    id its-virtmail
>    grep 't...@ops.example.com' /etc/dovecot/users
>    ls -al 
>'/srv/mail/ops.ops.example.com/test/new/1375430267.M868397P2192.ukc-vm02-mx01\,S\=477\,W\=486'
>
>Axel


Hello Axel,

# id its-virtmail
uid=1001(its-virtmail) gid=1001(its-virtmail) groups=1001(its-virtmail)

# grep 't...@ops.example.com' /etc/dovecot/users 
t...@ops.example.com:{SSHA512}x:1001:1001::/srv/mail/ops.example.com/test/./:/bin/false::

# ls -al 
/srv/mail/ops.example.com/test/new/1375430267.M868397P2192.ukc-vm02-mx01\,S\=477\,W\=486
 
-rw-r--r--
 1 its-virtmail its-virtmail 477 Aug  2 08:57 
/srv/mail/ops.example.com/test/new/1375430267.M868397P2192.ukc-vm02-mx01,S=477,W=486

Re: [Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith



>Probably a namespace issue.  The imap daemon is telling you there's not
>new mail.  So wherever it's looking it sees no mail.  So either it's
>looking in the wrong place, and the configuration isn't correct.  Error
>logs will inform you about the latter, 'dovecot -n' about the former.
>Show dovecot client connection and error logging, and dovecot -n.

Hi Stan,

Unfortunatley not.

As demonstrated in my initial post, I can do :

#cat 
/srv/mail/ops.example.com/test/new/1375430267.M868397P2192.ukc-vm02-mx01\,S\=477\,W\=486

And the debug shows the MUA looking in the same place  (forgot to include the 
Dovecot MUA debug earlier) :

Aug  2 09:01:09 ukc-vm02-mx01 postfix/anvil[2642]: statistics: max connection 
rate 1/60s for (smtp:192.168.198.199) at Aug  2 08:57:17
Aug  2 09:01:09 ukc-vm02-mx01 postfix/anvil[2642]: statistics: max connection 
count 1 for (smtp:192.168.198.199) at Aug  2 08:57:17
Aug  2 09:01:09 ukc-vm02-mx01 postfix/anvil[2642]: statistics: max cache size 1 
at Aug  2 08:57:17
Aug  2 09:03:38 ukc-vm02-mx01 dovecot: imap-login: Login: 
user=, method=PLAIN, rip=192.168.198.199, 
lip=79.170.177.71, mpid=2667, TLS
Aug  2 09:03:38 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/
Aug  2 09:03:38 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 09:03:51 ukc-vm02-mx01 dovecot: imap(t...@ops.example.com): 
Disconnected: Logged out bytes=26/599


[Dovecot] Mail being delivered but MUA showing empty inbox

2013-08-02 Thread Nigel Smith
Dovecot :  2.0.19 (see config at http://pastebin.com/raw.php?i=KMaQ9Ccc)
Postfix :  2.9.6 (see config at http://pastebin.com/raw.php?i=EEeevHfk)

I'm trying to get Dovecot and Postfix working on Ubuntu 12.04LTS but am not 
having much luck.

The problem is that although mail gets delivered to the correct place, however 
pointing a MUA of any description at Dovecot just yields a purportedly empty 
inbox !

I will first demonstrate correct delivery of mail, then I will show MUA - 
domain names changed to protect the innocent !

(1) Mail Delivery

Aug  2 08:57:17 ukc-vm02-mx01 postfix/smtpd[2640]: connect from 
unknown[192.168.199.198]
Aug  2 08:57:39 ukc-vm02-mx01 postfix/smtpd[2640]: 76AB04470E: 
client=unknown[192.168.199.198]
Aug  2 08:57:47 ukc-vm02-mx01 postfix/cleanup[2644]: 76AB04470E: message-id=<>
Aug  2 08:57:47 ukc-vm02-mx01 postfix/qmgr[2093]: 76AB04470E: 
from=, size=208, nrcpt=1 (queue active)
Aug  2 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192): Debug: none: root=, index=, 
control=, inbox=, alt=
Aug  2 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192): Connect from local
Aug  2 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192): Debug: auth input: 
t...@ops.example.com uid=1001 gid=1001 home=/srv/mail/ops.example.com/test/./
Aug  2 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192, t...@ops.example.com): Debug: 
Effective uid=1001, gid=1001, home=/srv/mail/ops.example.com/test
Aug  2 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192, 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 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192, t...@ops.example.com): 
ZH9VM3tm+1GQCAAAwf4bjw: msgid=unspecified: saved mail to INBOX
Aug  2 08:57:47 ukc-vm02-mx01 postfix/lmtp[2645]: 76AB04470E: 
to=, 
relay=ukc-vm02-mx01.ops.example.com[private/dovecot-lmtp], delay=24, 
delays=24/0.01/0/0.09, dsn=2.0.0, status=sent (250 2.0.0  
ZH9VM3tm+1GQCAAAwf4bjw Saved)
Aug  2 08:57:47 ukc-vm02-mx01 dovecot: lmtp(2192): Disconnect from local: 
Client quit (in reset)
Aug  2 08:57:47 ukc-vm02-mx01 postfix/qmgr[2093]: 76AB04470E: removed
Aug  2 08:57:48 ukc-vm02-mx01 postfix/smtpd[2640]: disconnect from 
unknown[192.168.199.198]

The mail is correctly saved in the right place…..

# cat 
/srv/mail/ops.ops.example.com/test/new/1375430267.M868397P2192.ukc-vm02-mx01\,S\=477\,W\=486
 
Return-Path: 
Delivered-To: 
Received: from ukc-vm02-mx01.ops.ops.example.com
    by ukc-vm02-mx01.ops.ops.example.com (Dovecot) with LMTP id 
ZH9VM3tm+1GQCAAAwf4bjw
    for ; Fri, 02 Aug 2013 08:57:47 +0100
Received: from x (unknown [192.168.199.198])
    by ukc-vm02-mx01.ops.ops.example.com (Postfix) with ESMTP id 76AB04470E
    for ; Fri,  2 Aug 2013 08:57:24 +0100 (BST)
Subject: test


(2) MUA


* 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 1375424854] 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