On 4/16/2012 12:46 PM, Punit Jain wrote: > Hi , > > I have a requirement where I need to send a copy of mail to pipe daemon for > some processing, based on if recipient has an attribute set in ldap. > > At the same time mail is also delivered to recipient. The pipe daemon can > pass the mail to SMS fateway for sms to be delivered. > > Any clues how to achieve in postfix ? > > I searched forums but didnot find any solution to how to achieve this maybe > by ldap table lookups or using pipe daemon. > > Regards, > Punit > >
To send multiple copies, you need multiple recipients. Use a virtual_alias_maps (NOT virtual_alias_domains) lookup such that looking up the original recipient returns the original + an SMS recipient if the flag is set. lookup key: u...@example.com result: u...@example.com u...@sms.example.com Then use a transport_maps entry to route the sms message to your pipe transport. #transport_maps entry: sms.example.com sms-pipe:dummy -- Noel Jones