<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#maildrop+notes'
         s:cUser='alex'
         s:oUser=''
         s:mUser='alex'>
        <s:name>maildrop notes</s:name>
        <s:content>This is about Postfix 2.2.10 and maildrop 2.0.4 on EL4.&#xD;&#xA;&#xD;&#xA;Postfix is configured with no Unix users, just lots of virtual domains and virtual users, e.g. main.cf:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;#/etc/postfix/main.cf&#xD;&#xA;...&#xD;&#xA;virtual_alias_maps = hash:/etc/postfix/virtual&#xD;&#xA;virtrual_mailbox_domains = firstname_lastname.com firstname2_lastname2.com firstname3_lastname3.com&#xD;&#xA;virtual_mailbox_base = /var/mail/vhosts&#xD;&#xA;virtual_mailbox_maps = hash:/etc/postfix/vmailbox&#xD;&#xA;...&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;#/etc/postfix/virtual&#xD;&#xA;#there are some mail aliases here which forward to another MX&#xD;&#xA;#because the users are not Unix users so they don&apos;t have a $HOME/.forward&#xD;&#xA;user1@firstname_lastname.com foo@another.domain.tld&#xD;&#xA;user2@firstname_lastname.com blah@yet.another.domain.tld&#xD;&#xA;#this is also different from /etc/aliases which is only for local aliases&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;#/etc/postfix/vmailbox&#xD;&#xA;firstname@firstname_lastname.com  name1/Maildir&#xD;&#xA;firstname2@firstname2_lastname.com name2/Maildir&#xD;&#xA;lastname@firstname_lastname.com name1/Maildir&#xD;&#xA;...&#xD;&#xA;#this maps the various e-mail addresses to a mailbox&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Now we want to be able to use maildrop to do some filtering on the mails on this family server.  This HOWTO claims to do it: http://www.postfix.org/MAILDROP_README.html&#xD;&#xA;&#xD;&#xA;Simply install maildrop and add these two lines to main.cf:&#xD;&#xA;{code:none}&#xD;&#xA;maildrop_destination_recipient_limit = 1&#xD;&#xA;virtual_transport = maildrop&#xD;&#xA;{code}&#xD;&#xA;This will use maildrop as the delivery agent for all virtual addresses, but not for any mail related to local Unix accounts, and it tells Postfix that maildrop only processes one message at a time. You also need to add the appropriate pipe command in master.cf as in the howto.&#xD;&#xA;&#xD;&#xA;1 Too bad it doesn&apos;t work!&#xD;&#xA;/etc/init.d/postfix reload&#xD;&#xA;{code:none}&#xD;&#xA;Aug  5 21:51:39 hostname postfix/pipe[3088]: 23066246EE: to=&lt;postmaster@hostname&gt;, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )&#xD;&#xA;{code}&#xD;&#xA;What now?  Google to the rescue: http://www.security-express.com/archives/postfix/2004-04/1411.html  It seems we &quot;merely&quot; need to configure maildrop to understand the mappings in the virtual_mailbox_maps file, otherwise it doesn&apos;t know where to actually deliver the mail.  &#xD;&#xA;&#xD;&#xA;There&apos;s a bunch of references on the web to MySQL or LDAP based lookups, or &quot;makeuserdb&quot; all of which seem irrelevant for us.&#xD;&#xA;&#xD;&#xA;1 Possibly useful links&#xD;&#xA;Example maildroprc: http://gentoo-wiki.com/Maildrop_configuration&#xD;&#xA;Official latest docs: http://www.courier-mta.org/maildrop/maildrop.html&#xD;&#xA;Example maildroprc: http://www.vanadac.com/~dajhorn/projects/fsavp/maildroprc.txt&#xD;&#xA;&#xD;&#xA;1 Some maildrop tricks&#xD;&#xA;something about env vars: http://osdir.com/ml/mail.maildrop/2004-01/msg00038.html&#xD;&#xA;tips from 1998: http://www.courier-mta.org/maildrop/maildroptips.html&#xD;&#xA;&#xD;&#xA;1 Here&apos;s a similar issue&#xD;&#xA;http://sourceforge.net/mailarchive/forum.php?thread_name=468539B5.20004%40interfree.it&amp;forum_name=courier-maildrop</s:content>
        <s:mTime>2007-08-06 00:20:14.0</s:mTime>
        <s:cTime>2007-08-05 23:15:34.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfixadmin on RHEL4'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/Security/preventing-brute-force-ssh-attacks'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/ruby on rails'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
