From: Mark J. Nernberg (no email)
Date: Sun May 15 2005 - 17:39:53 EDT
I'm trying to set up a sort of "weird" filtration system, specifically,
Postfix -> TMDA -> Postfix -> Cyrus (IMAP).
Since I'm not using TMDA as a "filter" per se, but rather actually
delivering the message to TMDA, allowing TMDA to do its processing, and
then, finally, when releasing the message, I want to pass it back to Postfix
for delivery via Cyrus.
I expected to be able to receive a message on port 25, pass it to TMDA for
delivery, and then pass it back to postfix on port 10026 (via SMTP) for
final delivery via Cyrus.
However, Postfix redelivers the message to TMDA anyway.
In /etc/postfix/main.cf, I have:
mailbox_transport=tmda
My /etc/postfix/master.cf is (relevant portions):
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
192.168.254.235:25 inet n - n - - smtpd
-o smtpd_client_connection_count_limit=10
-o myhostname=smtp.downtownhelpdesk.com
127.0.0.1:10026 inet n - n - - smtpd
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
-o content_filter=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o
smtpd_recipient_restrictions=permit_mynetworks,reject_unauth_destination
-o smtpd_data_restrictions=
-o mailbox_transport=cyrus
-o mynetworks=127.0.0.0/8
-o receive_override_options=no_unknown_recipient_checks
-o myhostname=spamkiller.downtownhelpdesk.com
-o transport_maps=
tmda unix - n n - - pipe
flags=R user=tmda argv=/usr/local/tmda-1.0.3/bin/tmda-filter -noenv
/usr/tmda/$user $user $sender $recipient $extension
cyrus unix - n n - - pipe
flags= user=cyrus argv=/usr/cyrus/bin/deliver -r ${sender} -m
${extension} ${user}
-- Mark.
|
|
|