linuxc128: > Hello, > > I've set up a mail server on my VPS, which is running CentOS 7. Previously > I > used Ubuntu for my VPS, but even after having spent endless hours of > configuration efforts I wasn't able to get SMTP-SASL authentication > working > and an admin of my VPS hosting company also told me that they made only > negative experiences with Ubuntu in regards to its sometimes enigmatic > behavior and instability, so he recommended me to use CentOS for my > purposes > instead (I want to use my VPS as a mail and web server mainly). > > I got my mail server running on CentOS (until now I didn't have time yet > to > configure SMTP-SASL authentication), but unfortunately two things don't > work, which worked without any problems on the mail server I had set up on > Ubuntu: > I want that a copy of every incoming and outgoing mail gets forwarded to > two > other mail addresses I'm using (hosted by public mail providers), and I > did > so by simply adding > > always_bcc = alwaysbcc
That will send a copy of all email to 'alwaysbcc'. > "always_bcc" can handle only one parameter (e. g. mail address), so I > created an alias in /etc/alias named "alwaysbcc" which referred to the two > mail addresses. > 1) postfix doesn't look for the alias or is not able to parse it > correctly, > since it says "status=bounced (unknown user: "alwaysbcc@")" > And why should Postfix look in /etc/alias? This solution is described here and it worked when I was running Postfix on Ubuntu: Postfix: Multiple Recipients for always_bcc <https://www.bfccomputing.com/postfix-multiple-recipients-for-always_bcc/> And take a look at the top of /etc/postfix/main.cf: alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases That's why it should look there. In my eyes the problem is that "alwaysbcc" gets parsed as "always...@myserver.com", so I would have to find a way to avoid this. > recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps > And in /etc/postfix/recipient_bcc_maps I defined entries > following this pattern: > > user_1@ account_1@, account_2@ > user_2@ account_1@, account_2@ > As documented, you can't specify multiple addresses on the right-hand > side. > recipient_bcc_maps (default: empty) > Optional BCC (blind carbon-copy) address lookup tables, indexed by > recipient address. The BCC address (multiple results are not sup- > ported) is added when mail enters from outside of Postfix. You are right (I just found this information), so I wonder why it worked on Ubuntu. Anyway, there seems to be a way to solve this: postfix recipient_bcc_maps multiple recipients how to? <http://stackoverflow.com/questions/22537523/postfix-recipient-bcc-maps-multiple-recipients-how-to> Would you mind telling me about other mistakes you noticed in my config? -- View this message in context: http://postfix.1071664.n5.nabble.com/always-bcc-for-multiple-recipients-via-alias-and-recipient-bcc-maps-don-t-work-tp86962p86967.html Sent from the Postfix Users mailing list archive at Nabble.com.