On Thu, Dec 17, 2009 at 09:51:13AM +0000, T D wrote: > My basic problem is that I can't work out how to forward email to more > than one recipient. For example, let's say I want o...@example.com to > 1) be delivered to its Cyrus mailbox as normal and 2) to be forwarded > to b...@blackberry.net and j...@vodafone.net. > > (1) Was working anyway, and so was (2) when there was only one email > address to forward to. I setup /etc/postfix/recipient_bcc with > > o...@example.com: b...@blackberry.net > > and all was hunky-dory. However, I then tried
I don't understand the ":" in your example. That is not valid syntax for virtual_alias_maps, which is documented in virtual.5.html : > o...@example.com: b...@blackberry.net,j...@vodafone.net o...@example.com b...@blackberry.net, j...@vodafone.net ^no colon alias_maps (for local(8) domains) uses the colon, but will not see the complete email address, just the LHS / localpart. > and it failed delivery as > 5.1.0 - Unknown address error 550-'5.1.1 > <b...@blackberry.net,j...@vodafone.net>: > Recipient address rejected: User unknown in virtual alias table 1. We should see the actual logs, with consistent munging, if any. Since you're an experienced mail admin, I presume you understand that domain names are the basis for mail routing. The message you showed here is interesting in that it seems to have treated the bob@,jane@ pair as a single address. 2. We should see the postconf -n output too, because there is no magic in the filename "recipient_bcc". It implies that you used it as recipient_bcc_maps, but that implication still does not explain everything. > What's the correct syntax to do this? Very grateful for any assistance. You're already using virtual_alias_maps, so that is probably the best of many choices on how to do it. > Extra info: > --------------- > > As an aside, I then tried to do it by changing the LDAP entry for the > email account (my additions inside ----) This can be done, as long as your query for o...@example.com returns "b...@blackberry.net, j...@vodafone.net". Unfortunately I cannot help with LDAP specifics, but I can point you to LDAP_README and the ldap_table(5) man page. Also, with any such lookup in Postfix, the postmap(1) tool can help. postmap -q "lookup-key-string" maptype:mapname When the desired result is returned, it will work. > But then the users complained that the mail wasn't being delivered to > their IMAP mailbox, and it was being forwarded to the blackberry / > vodafone address around ten times! Content filtering without proper receive_override_options set? Hard to say, see above. -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header