I'm a bit further along but haven't figured out why Authentication is still failing. I've tried a telnet to port 143 and openssl connection to 993. The command I issued, per the debugging page on the wiki, is: a login info at aesoft-sbcs.com crap Here is a snapshot from my logs (yup second try and blank lines to make it easier for me to read). Oct 7 08:17:20 mx0 dovecot: auth(default): client in: AUTH 2 PLAIN service=imap secured lip=216.64.180.226 rip=66.193.34.88 lport=993 rport=65026 resp=AGluZm9AYWVzb2Z0LXNiY3MuY29tAGNyYXA Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file /var/mail/vhosts/aesoft-sbcs.com/passwd: Read 3 users Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file(info at aesoft-sbcs.com,66.193.34.88): lookup: user=info at aesoft-sbcs.com file=/var/mail/vhosts/aesoft-sbcs.com/passwd Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file(info at aesoft-sbcs.com,66.193.34.88): unknown user Oct 7 08:17:22 mx0 dovecot: auth(default): client out: FAIL 2 user=info at aesoft-sbcs.com And here is the relevant line from /var/mail/vhosts/aesoft-sbcs.com/passwd info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info Yes there are three users in the file. What is puzzling me is why the source connection's IP is showing up in the /lookup/. I did not create the directory /var/mail/vhosts/aesoft-sbcs.com/info/Maildir Should I? I've attached the out put from postconf -n and dovecot -n since I'm pretty sure I've got some setting wrong. Thanks for any ideas or clues. Rod -- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: postfix-n.lst URL: <http://dovecot.org/pipermail/dovecot/attachments/20081007/587e3631/attachment-0004.pl> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot-n.lst URL: <http://dovecot.org/pipermail/dovecot/attachments/20081007/587e3631/attachment-0005.pl>
On Oct 7, 2008, at 6:33 PM, Roderick A. Anderson wrote:> Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file(info at aesoft-sbcs.com > ,66.193.34.88): unknown userIt's looking up info at aesoft-sbcs.com from the file.> info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/infoBut you have only info there. So either change it here, or:> passdb: > driver: passwd-file > args: /var/mail/vhosts/%d/passwdFrom http://wiki.dovecot.org/AuthDatabase/PasswdFile: username_format=<s>: Look up usernames using this format instead of the full username (%u). If you want to enable user at domain logins but have only "user" in the file, set this to %n. So use: passdb passwd-file { args = username_format=%n /var/mail/vhosts/%d/passwd } -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081007/8f12641c/attachment-0002.bin>
Roderick A. Anderson wrote:> I'm a bit further along but haven't figured out why Authentication is > still failing. I've tried a telnet to port 143 and openssl connection > to 993. > > The command I issued, per the debugging page on the wiki, is: > > a login info at aesoft-sbcs.com crap > > Here is a snapshot from my logs (yup second try and blank lines to make > it easier for me to read). > > Oct 7 08:17:20 mx0 dovecot: auth(default): client in: AUTH 2 PLAIN > service=imap secured lip=216.64.180.226 rip=66.193.34.88 > lport=993 rport=65026 resp=AGluZm9AYWVzb2Z0LXNiY3MuY29tAGNyYXA> > Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file > /var/mail/vhosts/aesoft-sbcs.com/passwd: Read 3 users > > Oct 7 08:17:20 mx0 dovecot: auth(default): > passwd-file(info at aesoft-sbcs.com,66.193.34.88): lookup: > user=info at aesoft-sbcs.com file=/var/mail/vhosts/aesoft-sbcs.com/passwd > > Oct 7 08:17:20 mx0 dovecot: auth(default): > passwd-file(info at aesoft-sbcs.com,66.193.34.88): unknown user > > Oct 7 08:17:22 mx0 dovecot: auth(default): client out: FAIL 2 > user=info at aesoft-sbcs.com > > And here is the relevant line from > /var/mail/vhosts/aesoft-sbcs.com/passwd > > info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info >The user is "info at aesoft-sbcs.com", not "info". ~Seth
Timo Sirainen wrote:> On Oct 7, 2008, at 6:33 PM, Roderick A. Anderson wrote: > >> Oct 7 08:17:20 mx0 dovecot: auth(default): >> passwd-file(info at aesoft-sbcs.com,66.193.34.88): unknown user > > It's looking up info at aesoft-sbcs.com from the file. > >> info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info > > But you have only info there. So either change it here, or: > >> passdb: >> driver: passwd-file >> args: /var/mail/vhosts/%d/passwd > > From http://wiki.dovecot.org/AuthDatabase/PasswdFile: > > username_format=<s>: Look up usernames using this format instead of the > full username (%u). If you want to enable user at domain logins but have > only "user" in the file, set this to %n. > > So use: > > passdb passwd-file { > args = username_format=%n /var/mail/vhosts/%d/passwd > } >Well these did seem to be set correctly (I've been experimenting with different settings). Here is a portion of "dovecot -n" output passdb: driver: passwd-file args: /var/mail/vhosts/%d/passwd userdb: driver: passwd-file args: uid=vmail gid=vmail username_format=%n /var/mail/vhosts/%d/passwd Where does userdb and passdb each come into play? Should their settings be the same since I'm using one file? TIA, Rod --