Hi all,
I'm having troubles in making a content_filter for postfix for mail
archiving.
My filter works like this:

- Postfix passes the mail in pipe
- The mail is saved on a spool directory
- The script parses all parameters (sender and recipient)
- The mail is saved in a directory (e.g. /var/foo/user), and if it doesn't
exist, it creates it
- The mail is sent back to postfix via "sendmail" command

I call the filter in master.cf with the following line:

arch ? ?unix ? ?- ? ? ? n ? ? ? n ? ? ? - ? ? ? - ? ? ? pipe
? flags=Rq user=filter argv=/etc/postfix/filter/archivizione.pl -f
${sender} --
${recipient}

The problem is that this postfix also handles mailing lists specified in
/etc/aliases with the aid of mailman
e.g.:


test: ? ? ? ? ? ? ?"|/var/mailman/mail/mailman post test"
team: ? ? ? ? ? ? ?"|/var/mailman/mail/mailman post team"
hello: ? ? ? ? ? ? ? ? ? "|/var/mailman/mail/mailman post hello"


If an email is sent to a mailing list, the filter instead of archiving it
in each user's maildir, archives in a directory that calls
"listname at domain.it"

Any suggestions to solve this?

Thanks in advance


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.python.org/pipermail/mailman-users/attachments/20060906/8283df49/attachment.pgp

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupmailman-users @
categoriespython
postedSep 6, '06 at 10:24a
activeSep 7, '06 at 1:33a
posts2
users2
websitelist.org

2 users in discussion

Suuuper: 1 post Brad Knowles: 1 post

People

Translate

site design / logo © 2022 Grokbase