Hi again,

I'm using a setup integrated with Active Directory with Maildir and I
need to do some filtering in messages (basically manipulating some
headers).

Using procmail as a transport like:
---
procmail  unix  -       n       n       -       -       pipe
  flags=Ru user=vmail argv=/usr/bin/procmail -t -m USER=${user}
  DOMAIN=${domain} EXTENSION=${extension} /etc/procmailrc
---

This setup doesn't work well for me because it doesn't update the
maildirsize (I'm using the VDA patches in Postfix) file in the user's
Maildir and it doesn't automatically create the Maildir when needed.
Without using procmail as a transport it does it very well.

I am wondering if I can use procmail (or some other filtering
software) in another way so it does it's filtering and then send the
message back to Postfix, like my DSPAM setup, that uses the LMTP
socket, filters the message and send it to the LMTP in the
localhost:10026 port.

---
smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=lmtp:unix:/var/run/dspam.sock

127.0.0.1:10026 inet    n       -       -       -       -       smtpd
  -o content_filter=
  -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  -o smtpd_helo_restrictions=
  -o smtpd_client_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/8
  -o smtpd_authorized_xforward_hosts=127.0.0.0/8
---

Also, this setup works for both outgoing and incoming messages and I'd
like to do it only for incoming messages.

Reply via email to