This is a discussion on [courier-users] separating authdaemon for esmtp and imap within the Courier-Imap forums, part of the Mail Servers and Related category; --nextPart1227288.QdzkijDonZ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--nextPart1227288.QdzkijDonZ
Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi. I am new to courier but not new to courier-imap. At the moment, I use=20 courier-imap together with qmail on a server. On my testing system, I set up a mailserver based on courier completely,=20 without qmail. After a few tests, I got some strage behaviour in mail delivery... Ok, I got a local useraccount named "bernd" (uid 1000) and this user has=20 the files .courier and .courier-test-default in his home-directory. Each of them contains a delivery instruction into a different mailbox,=20 so I can see which one had been used. Say ~bernd/.courier delivers in ~bernd/mailbox_a/ and=20 ~bernd/.courier-test-default delivers to ~bernd/mailbox_b/. My local domain is "bilbo.bwurst.net", the host is reachable through=20 this address. I can send mail to "bernd@bilbo.bwurst.net", this works=20 as expected, the message gets placed in mailbox_a. I also tested virtual hosting (the qmail-way) with that line=20 in /etc/courier/aliases/bernd @test.bilbo.bwurst.net: bernd-test Then I send a message to "bernd@test.bilbo.bwurst.net" and it's placed=20 into mailbox_b.=20 So the QMail-style-delivery works fine. Now I have set up authdaemon to use a mysql database (fully working from=20 my existing courier-imap-account-management). In my /etc/courier/authlib/authdaemonrc, there is this line: authmodulelist=3D"authmysql authpam authuserdb" In authmysqlrc, the DB-access is configured like this: MYSQL_SELECT_CLAUSE SELECT mailaccounts.account, \ mailaccounts.cryptpass, \ mailaccounts.clearpass, \ mailaccounts.uid, \ users.gid, \ users.homedir, \ mailaccounts.mailbox, \ '', 0, '', '' \ FROM mailaccounts, users \ WHERE \ mailaccounts.account=3D'$(local_part)@$(domain)' \ AND users.uid =3D mailaccounts.uid One testing entry is like this: account=3Dfoobar@bilbo.bwurst.net cryptpass=3D$1$...$... clearpass=3D uid=3D1000 gid=3D100 homedir=3D/home/bernd mailbox=3D/home/bernd/mailbox_c This one works for POP3 and IMAP access on mailbox_c! If a mail message arrives for "foobar@bilbo.bwurst.net", I expected it=20 to be either discarded or delivered to mailbox_c as defined in the=20 database but neither of them happens. It gets delivered to mailbox_a! This also happens if the configured address has some extension=20 (foobar-test@bilbo.bwurst.net), it gets delivered via the ~/.courier of=20 the user that owns the pop3-account-entry. Can someone explain me why this happens and how I can get rid of that? It's not really a goot thing that all addresses defined as POP3-accounts=20 are put into one .courier-file, I think. I would like to use some kind of database virtual mail-address hosting=20 in the future, but it should be able to define which of that account=20 names are real addresses. :) =46or a quick workaround: Is it possible to disable authmysql for the=20 esmtp process and just let it work for pop3/imap? cu, Bernd =2D-=20 Wise men don't need advice. =46ools don't take it. --nextPart1227288.QdzkijDonZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iQIVAwUAQhsowQ0b18vi86Q/AQK//g//c0o6XdO9dWxx+yxNGQ9aLxNfBs18vmFs pPsuLv2AoGf5x54UuV9lRBtUrnyPk8cv14tF4TLQd7yTG2iUB7 wScOp3MtkGPKBw H1MvQNDVlM8r4zsWE/nPME9DS6+jy0M4WJwOhfYqgKruB8NsVGh2i5MyviFTOZa7 Rci3VEGG9t0yZZglaEO0K43+Ub2cqLY9x/HrnW23zUgvsaBrFThJz2X+C2oKZJBD omW/sQlO+2V6/8ucySgrLXpCQpQZJr39d03Zb5IWjxO0OYNvIDDb2KxGPg5Wkny E xPlSNTmgjq/ykeMfRwqgEFhxk9AGee0Kn06TfRjbrQhW/gvqFtB8smL3R4WxZmGO s31bX3glB4BmkvOkUjhdh2Gx8E1DnZ5kEnf9g/UznGVOGDn/MEQKKcjNjZE3/oGe AodnxPJ7AFJAy02EYWMFuentMVoFme8UQH/j5WLJWE71xzEJyvN/Ok2UqxoqDw4U uxesw4oL5USmkRaJgORbAHSXwbDmVJo06iohyItoH1FQW9QE8Q I+0RvMgvx/Vis4 D+hc/SN7dNLG0LZKw8fk1ZIMxnQqQgNOzaAwcW4yXKboAf6DE9271Gh LRNFp0j+u zbpO3t4y0lMd/Yl17H5YGwRIo02Yrm3hmEfmNG7cBq5U5M2sFJRkvbKWO0wcmBM n YxNR7rlZb2E= =pIvq -----END PGP SIGNATURE----- --nextPart1227288.QdzkijDonZ-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |