I am trying to link up a dummy email address to two different email addresses:
[email protected]
-> [email protected]
and [email protected]
This would mean that mail sent to [email protected]
would also get BCC'd or forwarded to [email protected]
and [email protected]
I am having trouble with the recipient_bbc_maps
config:
# /etc/postfix/main.cf
recipient_bcc_maps = pcre:/etc/postfix/recipient_bcc_map
# /etc/postfix/recipient_bbc_map
## This works
/^contact@example\.com$/ [email protected]
## This doesn't work
/^contact@example\.com$/ [email protected],[email protected]
The suggestion was taken from https://serverfault.com/a/183491, but it doesn't work.
Postfix can receive and send messages, so I know that my config is good so far.
What am I doing wrong?
# /var/log/mail.log
postfix/qmgr[594770]: 309D64800B2: from=<[email protected]>, size=3250, nrcpt=2 (queue active)
postfix/local[594799]: 309D64800B2: to=<[email protected]>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
postfix/local[594799]: 309D64800B2: to=<[email protected], user2>, orig_to=<[email protected],[email protected]>, relay=none, delay=0.02, delays=0.01/0.01/0/0.01, dsn=5.1.3, status=bounced (bad address syntax)
postfix/qmgr[594770]: 309D64800B2: removed