Bluehost.com Web Hosting $6.95

Re: [courier-users] Maildrop: Direct delivery to IMAP folder

This is a discussion on Re: [courier-users] Maildrop: Direct delivery to IMAP folder within the Courier-Imap forums, part of the Mail Servers and Related category; This is a MIME GnuPG-signed message. If you see this text, it means that your E-mail or Usenet ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-05-2005
Sam Varshavchik
 
Posts: n/a
Default Re: [courier-users] Maildrop: Direct delivery to IMAP folder

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-24847-1131229975-0001
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Michael Nguyen writes:

> From: "Sam Varshavchik" <mrsam@courier-mta.com>
>> Michael Nguyen writes:

>
> [snip]
>
>> > Hmm.... Well, courier-authlib gets the info from a MySQL database. I

> guess
>> > I'm not sure how I could get authlib to transform
>> > michaeln+archive@twentyten.org into /var/mail/102309.macnt/.archive/ as

> the
>> > maildir.
>> >
>> > How would you do this, Sam?

>>
>> Well, that's what courier-authlib does: take a userid and return the
>> associated account information, such as the account's homedir/maildir.

>
> Sam, why do you hate me??! I've been loyal!
>
> Maybe I'm being unclear... So, michaeln@twentyten.org has a maildir of
> /var/mail/102309.macnt/...
>
> I want to be able to deliver to an arbitrary folder such that
> michaeln+anything@twentyten.org would be delivered to ${MAILDIR for
> michaeln@twentyten.org}/.anything
>
> Can you think of any way I can trick authlibmysql into returning something
> like that?


No. You said that you were using Postfix, and it's Postfix that runs the
logic to deliver <name+extra@domain> to the <name@domain>'s mailbox. This
logic belongs in Postfix.

For comparison's purposes, this is analogous to how Courier implements the
equivalent concept of <name-extension@domain>.

When Courier gets an address of <name-extension@domain>, it first tries to
look up the full address through authlib. If it does not exist, the
extension gets chopped off, and Courier tries again.

When a valid mailbox is found, whatever got chopped off is set aside, and
used to look up the .courier-extension file in the account's home directory
(falling back to .couried-default, etc.)

What you need to do is hack Postfix to put +anything part into some
environment variable, and deliver the message to user@domain; and its
..mailfilter can then import the +anything part from the environment, and
decide what to do with it.



--=_mimegpg-commodore.email-scan.com-24847-1131229975-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQBDbTMXx9p3GYHlUOIRAq4pAJ99t+Uk8sP/l4gb9CpM3rNFnIam+wCdEDC8
Lh1srL5JhIAg3ewqwXAdlkM=
=R/7x
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-24847-1131229975-0001--


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0