[Dovecot] deliver mail with postfix to dovecot for mailinglists

Sven Kirmess dovecot at kzone.ch
Tue Nov 25 01:42:38 EET 2003


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



More information about the dovecot mailing list