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 recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps at the end of /etc/postfix/main.cf. "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. 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 However, both options don't work for my mail server running on CentOS: 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")" 2) In case of the "recipient_bcc_maps" option it's able to retrieve the addresses where it should forward the mails to via Bcc, but the mails bounce with the error message "Relay access denied (in reply to RCPT TO command))" - And for some odd reason postfix tries to connect only to the mail server of <accoun...@gmail.com>, and it almost looks as if it would try to contact it for sending both mails (whose addresses are hosted by two separate mail providers). This is the exact output (they're not GMail and hotmail, which I just used those as examples, but this should be irrelevant I guess): Oct 26 16:49:49 servername postfix/smtp[13481]: 9DEE8243BF: to=<accoun...@gmail.com, accoun...@hotmail.com>, relay=mail.gmail.com[...]:25, delay=0.71, delays=0.05/0/0.59/0.07, dsn=5.7.1, status=bounced (host mail.gmail.com[...] said: 554 5.7.1 <accoun...@gmail.com, accoun...@hotmail.com>: Relay access denied (in reply to RCPT TO command)) When I configured the mail server on Ubuntu I followed the instructions in this postfix-dovecot-mysql-tutorial <https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql> to a large extend, so maybe comparing my current /etc/postfix/main.cf with the /etc/postfix/main.cf provided in that tutorial could give a clue what the reason for this might be / how I could solve this issue. This is my current /etc/postfix/main.cf <http://pastebin.com/AehzFnYv> . I'd appreciate any suggestions and/or advice. My next step will be setting up SMTP-SASL authentication, hopefully this will work now (I'm not sure yet what the best approach might be for configuring SMTP-SASL authentication when using virtual users/mailboxes (pam? shadow? sasldb?) - I'd also be thankful for any advice in this regard). All the best to everyone and thanks in advance David P.S.: This is totally off-topic, so maybe it would be better to open a separate thread for this question, but does anyone here have experiences with setting up a mail server running on OpenBSD? I'd like to try doing so, since I'm a big fan of OpenBSD, but I could imagine that doing so wouldn't be very easy. -- 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-tp86962.html Sent from the Postfix Users mailing list archive at Nabble.com.