Sven Kirmess
2003-Nov-24 21:43 UTC
[Dovecot] deliver mail with postfix to dovecot for mailinglists
This is a bit off topic on that list. But the question is required because of a limitation of dovecot. It cannot have shared mailboxes into which one would collect mailing list mails. I assume one has already solved that problem and therefore ask this question on that list. I try to do the following: I would like to setup an alias dovecot at kzone.ch and subscribe this alias to the dovecot mailing list. Then I would like to create an alias to run maildrop with the correct parameter to put it into the directory ~ski/Maildir/.dovecot/. Of course, there is no user dovecot on my system and if there would be one she couldn't write to a directory owned by me. Is there a trick to do the following: ski -> ~ski/Maildir dovecot -> ~ski/Maildir/.dovecot postfix -> ~ski/Maildir/.postfix Any other idea? Any good documentation on that? Sven
Joshua Goodall
2003-Nov-24 23:39 UTC
[Dovecot] deliver mail with postfix to dovecot for mailinglists
You might be able to achieve this with the virtual(8) delivery agent, since it can target arbitrary directories and UIDs. Also consider the "+" separator, as in user+foo at domain, which is integrated with the virtual(5) lookup in a reasonably intelligent way and may suit you. Of course, what we could really do is implement SIEVE (RFC3028) in a LMTP delivery agent for Dovecot. It'd attract a lot of the people currently depending on Cyrus. Joshua. On Mon, Nov 24, 2003 at 10:43:52PM +0100, Sven Kirmess wrote:> This is a bit off topic on that list. But the question is > required because of a limitation of dovecot. It cannot > have shared mailboxes into which one would collect mailing list > mails. I assume one has already solved that problem and > therefore ask this question on that list. > > I try to do the following: > I would like to setup an alias dovecot at kzone.ch > and subscribe this alias to the dovecot mailing list. Then > I would like to create an alias to run maildrop with the > correct parameter to put it into the directory > ~ski/Maildir/.dovecot/. Of course, there is no user dovecot > on my system and if there would be one she couldn't > write to a directory owned by me. > > Is there a trick to do the following: > > ski -> ~ski/Maildir > dovecot -> ~ski/Maildir/.dovecot > postfix -> ~ski/Maildir/.postfix > > Any other idea? > > Any good documentation on that? > > > Sven >-- Joshua Goodall "tea makes itself" joshua at roughtrade.net - Ana Susanj
Sven Kirmess
2003-Nov-24 23:42 UTC
[Dovecot] deliver mail with postfix to dovecot for mailinglists
I found an interesting document, describing how to use majordomo with postfix which I used to do what I want. (Actually, I didn't find anything to my problem. So I tried to set up majordomo... ;-) http://www.csh.rit.edu/~jon/projects/majordomo/#postfix That's what I did (ski is my login): 1) Create the mailbox where you would like to receive the mailing list into. I used my IMAP client and create a group called ml.test1 2) # mkdir /etc/postfix/mailing_list # mkdir /etc/postfix/mailing_list/ski # chown ski:ski /etc/postfix/mailing_list/ski 3) su - ski > cd /etc/postfix/mailing_list/ski > vi aliases test1: /var/spool/imap/ski/.ml.test1/ > /opt/postfix/sbin/postalias /etc/postfix/mailing_list/ski/aliases > ^D 4) # vi /etc/postfix/main.cf alias_maps = dbm:/etc/aliases, dbm:/etc/postfix/mailing_list/ski/aliases # /opt/postfix/sbin/postfix reload Now, whenever a mail to user test1 arrives, the alias is read from the file /etc/postfix/mailing_list/ski/aliases. Because there is no user test1 the delivery is done as the owner of the alias file, ski in this case. ski can write to ski's Maildir, of course... Sven
Seemingly Similar Threads
- dovecot 2.0rc2 Cannot delete a folder with Thunderbird (delete, not move to Trash)
- dovecot 2.0rc2 [SERVERBUG] When trying to remove a folder which contains a subfolder
- Fwd: Newbie here. Tips on setting up 100 phones wanted.
- hurdle model - count and response predictions
- [PATCH] [dovecot 2.2.9] Quota warnings ignored with FS quotas