Mac OS X Server

BCC all mail to an OS X Server to an Email address

I’m pretty big on privacy. Actually, I don’t need much privacy; I’m an open book. But I try to be very respectful of the privacy of others. Still, there are certain valid circumstances to send all mail that goes to an OS X Server to an email address. Maybe you have an automation that picks up mail from support staff and files it into software for ticketing, maybe you have a legal hold. In many cases, it’s not my place to judge the validity of such requests; only to find ways to implement them.

To bcc all mail to an OS X Server, first disable the feature from Postfix so you can enable it in serveradmin. First, edit the postfix config file, /Library/Server/Mail/Config/postfix/main.cf. Open the file in your favorite text editor and remove the line that starts with always_bcc. Then close the file and save.

Next, run the following command to enable the option:

sudo serveradmin settings mail:postfix:always_bcc_enabled = yes

And finally, define the email address, which I’ll use krypted@krypted.com to do:

sudo serveradmin settings mail:imap:postmaster_address = "krypted@krypted.com"

Enjoy the deluge!