[Mailman-Users] Postfix and mailman content filter issue

Suuuper suuuper at messinalug.org
Wed Sep 6 12:24:42 CEST 2006

Hi all,
I'm having troubles in making a content_filter for postfix for mail
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} --

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

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 

More information about the Mailman-Users mailing list