Rolandas Juodzbalis a écrit : > Hello list, > > I have postfix on one server and amavis on another. On postfix I'm using > transport_maps to deliver depending on spam flag in database. If spam > flag is on, then query returns following output: > smtp:ip_of_amavis:10024. If spam flag is off, then it returns word > virtual. Problem begins when amavis tries to submit mail back to postfix > on port 10025 - transport_maps is used again and starts looping. Is > there any way to avoid using transport_maps when feeding mail from > amavis back to postfix via port 10025? Or maybe another alternative of > communicating between amavis and postfix? >
as Magnus said, transport_maps is global. what real problem are you trying to solve? amavisd-new has policy banks and other features that may help you. check the docs or ask on amavsid-new list. otherwise, postfix has the FILTER statement (which can be returned in smtpd access checks). but keep in mind that if mail is sent to multiple recipients, only one filter is used (so the last FILTER statement will win). so use FILTER if it is per client, per helo or per sender, but not if it is per recipient.