I have this in dovecot-postfix.conf: mail_location maildir:/home/mail/dnamesum=%12MLd/dname=%Ld/unamesum=%12MLn/uname=%Ln/mail Yes, it is excessive, but that's just for testing. The pattern I really want is less clear for debugging. In postfix/main.cf I have: mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot-postfix.conf -a "${RECIPIENT}" I verified through strace that -a "${RECIPIENT}" is in fact getting a full user at domain address. The problem is that %d and %Ld are coming up as empty, and %12MLd is giving me the first 12 hex characters of an md5 of an empty content. It's losing the domain name somewhere. It's in the mail headers and in the -a option. So what else is needed?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 10 May 2010, Phil Howard wrote:> user at domain address. The problem is that %d and %Ld are coming up as empty, > and %12MLd is giving me the first 12 hex characters of an md5 of an empty > content. It's losing the domain name somewhere. It's in the mail headers > and in the -a option. So what else is needed?Do you re-write the "user" attribute in the passdb? Regards, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBS+kOib+Vh58GPL/cAQIq6ggAlnLzmjfwCMKhtoN2pq5eXIeoPs+fZB7J EJaPHEtEMn5PTsml+DI3ZRjqGVGCz1GhiTOXc18i/LSSDEL5CBhX6cqpaf8wskEX ppZXgQ8h0ogy/yIX1izHqoCEn8FYOtmRA6OgLrOyzP8Fm5DSWnYGFoysLH+fpIdF oelJMmhSOvIGSvmxaPlfZCnV+QbKC7Z74A0VINo7byUgwNPanxDCrE2OjtchEFJi Vul17oXcwVcTfxZXtbcpbucTbsddj+L+5SCzp8Lg9HKcMNnhYSFaijPyE0WscIge sxwYTbKct7HTSlb6SZmxnJbI9B8l43D/AhQX16uPBQec5S88I3Atqg==Rm2S -----END PGP SIGNATURE-----
Am 14.05.2010 um 17:05 schrieb Phil Howard:> On Wed, May 12, 2010 at 04:20, Steffen Kaiser <skdovecot at smail.inf.fh-brs.de >> wrote: > >> Could you verify that the domain gets stripped by setting mail_debug, >> auth_verbose and auth_debug? >> > > Where would I see the results of this?In whatever logging facility you set up. It will simply raise verbosity. Thomas
On Fri, May 14, 2010 at 12:47, Thomas Leuxner <tlx at leuxner.net> wrote:> Am 14.05.2010 um 17:05 schrieb Phil Howard: > > > On Wed, May 12, 2010 at 04:20, Steffen Kaiser < > skdovecot at smail.inf.fh-brs.de > >> wrote: > > > >> Could you verify that the domain gets stripped by setting mail_debug, > >> auth_verbose and auth_debug? > >> > > > > Where would I see the results of this? > > In whatever logging facility you set up. It will simply raise verbosity. >Nothing new is showing up when I test sending some mail through (which does get delivered to that path constructed with an empty string for %). marconi/root/x1 /root 53# cd /var/log/dovecot marconi/root/x1 /var/log/dovecot 54# ls -l total 8 -rw------- 1 root root 120 2010-05-14 11:26 error.log -rw------- 1 root root 1130 2010-05-14 11:22 info.log marconi/root/x1 /var/log/dovecot 55# cat error.log dovecot: 2010-05-14 11:21:39 Warning: Killed with signal 15 dovecot: 2010-05-14 11:26:52 Warning: Killed with signal 15 marconi/root/x1 /var/log/dovecot 56# cat info.log dovecot: 2010-05-14 11:00:27 Info: dovecot v1.1.11 starting up (core dumps disabled) dovecot: 2010-05-14 11:00:28 Info: auth(default): new auth connection: pid=3233 dovecot: 2010-05-14 11:00:28 Info: auth(default): new auth connection: pid=3234 dovecot: 2010-05-14 11:00:28 Info: auth(default): new auth connection: pid=3236 dovecot: 2010-05-14 11:00:28 Info: auth(default): new auth connection: pid=3235 dovecot: 2010-05-14 11:00:28 Info: auth(default): new auth connection: pid=3237 dovecot: 2010-05-14 11:00:28 Info: auth(default): new auth connection: pid=3238 dovecot: 2010-05-14 11:22:17 Info: dovecot v1.1.11 starting up (core dumps disabled) dovecot: 2010-05-14 11:22:18 Info: auth(default): new auth connection: pid=3328 dovecot: 2010-05-14 11:22:18 Info: auth(default): new auth connection: pid=3327 dovecot: 2010-05-14 11:22:18 Info: auth(default): new auth connection: pid=3329 dovecot: 2010-05-14 11:22:18 Info: auth(default): new auth connection: pid=3326 dovecot: 2010-05-14 11:22:18 Info: auth(default): new auth connection: pid=3330 dovecot: 2010-05-14 11:22:18 Info: auth(default): new auth connection: pid=3331 marconi/root/x1 /var/log/dovecot 57#
On Mon, May 10, 2010 at 15:21, Phil Howard <ttiphil at gmail.com> wrote:> I have this in dovecot-postfix.conf: > > mail_location > maildir:/home/mail/dnamesum=%12MLd/dname=%Ld/unamesum=%12MLn/uname=%Ln/mail > > Yes, it is excessive, but that's just for testing. The pattern I really > want is less clear for debugging. In postfix/main.cf I have: > > mailbox_command = /usr/lib/dovecot/deliver -c > /etc/dovecot/dovecot-postfix.conf -a "${RECIPIENT}" > > I verified through strace that -a "${RECIPIENT}" is in fact getting a full > user at domain address. The problem is that %d and %Ld are coming up as > empty, and %12MLd is giving me the first 12 hex characters of an md5 of an > empty content. It's losing the domain name somewhere. It's in the mail > headers and in the -a option. So what else is needed? >There was a typo in an earlier config item: auth_username_format = %Ln at Ld Maybe that was what someone was screaming at me about when I looked at username_format. I didn't see this until I was trying to figure out why the passwd file wasn't being read. I ran strace, and saw that it was trying to access a file with "ld" in it. Even then it took a while because the domain had been reformed as "Ld" and subsequently lower cased later. I found this while trying out a subset of a couple suggested configurations with some virtual_* settings in Postfix, and using dovecot/deliver via transport. I will now clean up the mess and hope I don't break it doing that. Then slam it with email and see what happens next.