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: "always...@server.com")" And why should Postfix look in /etc/alias? > recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps > And in /etc/postfix/recipient_bcc_maps I defined entries > following this pattern: > > use...@server.com accoun...@gmail.com, accoun...@hotmail.com > use...@server.com accoun...@gmail.com, accoun...@hotmail.com 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. These are not the only mistakes - but that should get you started. Wietse