Hi! Perhaps clarifying what I want to achieve...
The blackbox thing will then direct my "cleaned mail" to the same postfix (but with another personality (in master.cf) to another port. So this machine still need all the virtual alias stuff for this part. And the "deliver back part" seems to work fine! /Erik S ________________________________ Från: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] för Erik Starbäck [erik.starb...@uadm.uu.se] Skickat: den 27 april 2014 10:10 Till: postfix-users@postfix.org Ämne: Please help to hook an external "mail cleaning box" in our existing postfix-solution Hi! We have an rather complex postfix/cyrus-setup with many old quirks and stuff. I want to redirect our outgoing postfix to a "black box mail cleaning thing", and I want to direct it to it without any rewriting of addresses, just as it was external mail. I still want check the sending addresses and stuff... I don't have any extra testing machine, so my approach is to create an extra "personality(?)" in master.cf to test it before I change the main.cf To test I created this line in master.cf 127.0.0.1:30025 inet n - n - - smtpd -o content_filter=smtp:[blackbox.cleaning.thing]:25 And it works (in the sense the mail is sent to blackbox.cleaning.thing, but with the address rewritten to our technical deliver domain address -- and I really don't want that! Then I tried to exclude almost all possible options in master.cf so the nothing should be rewritten -- just moved to the blackbox thing -- as it was external mail, but I only get: "User unknown in virtual alias table" -o content_filter=smtp:[blackbox.cleaning.thing]:25 -o mydestination= -o local_recipient_maps= -o relay_recipient_maps= -o virtual_alias_maps= -o virtual_alias_domains=foo.bar -o virtual_transport= -o virtual_mailbox_domains= -o virtual_mailbox_maps= -o local_transport= -o sender_canonical_maps= -o sender_canoical_classes= -o transport_maps= -o smtpd_recipient_restrictions=permit_mynetworks,reject ---- Note before sending! Now I realized virtual_alias_domains and stuff is not handled with smtpd, but with cleanup. So I tried to fiddle with an "extra" cleanup. But I didn't get that to work either.... So please! Some input to my problem. How to make all mail behave like external on this "personality" WITHOUT changing the main.cf. Or give my some other idea... Thanks! /Erik S