<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://msc.siamtools.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Copy_All_In_Out_Email_Postfix_Zpanel</id>
		<title>Copy All In Out Email Postfix Zpanel - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://msc.siamtools.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Copy_All_In_Out_Email_Postfix_Zpanel"/>
		<link rel="alternate" type="text/html" href="https://msc.siamtools.com/wiki/index.php?title=Copy_All_In_Out_Email_Postfix_Zpanel&amp;action=history"/>
		<updated>2026-05-01T19:29:58Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://msc.siamtools.com/wiki/index.php?title=Copy_All_In_Out_Email_Postfix_Zpanel&amp;diff=1227&amp;oldid=prev</id>
		<title>Snifer: Created page with &quot;Case  There are multiple domains on a (Z-Panel)server running multiple websites and email from different customer. One customer wants a copy of in- and outgoing email for 3 do...&quot;</title>
		<link rel="alternate" type="text/html" href="https://msc.siamtools.com/wiki/index.php?title=Copy_All_In_Out_Email_Postfix_Zpanel&amp;diff=1227&amp;oldid=prev"/>
				<updated>2014-05-30T03:37:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Case  There are multiple domains on a (Z-Panel)server running multiple websites and email from different customer. One customer wants a copy of in- and outgoing email for 3 do...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Case&lt;br /&gt;
&lt;br /&gt;
There are multiple domains on a (Z-Panel)server running multiple websites and email from different customer. One customer wants a copy of in- and outgoing email for 3 domains sent to a special email address.&lt;br /&gt;
&lt;br /&gt;
More than one main.cf file&lt;br /&gt;
&lt;br /&gt;
On a system with Z-Panel there are more than one main.cf files. Do be precise there are 7.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/postfix/main.cf&lt;br /&gt;
/etc/zpanel/configs/postfix/main.cf&lt;br /&gt;
/etc/zpanel/panel/etc/build/config_packs/centos_6_2/postfix/conf/main.cf&lt;br /&gt;
/etc/zpanel/panel/etc/build/config_packs/centos_6_3/postfix/main.cf&lt;br /&gt;
/etc/zpanel/panel/etc/build/config_packs/ubuntu_11_10/postfix/conf/main.cf&lt;br /&gt;
/etc/zpanel/panel/etc/build/config_packs/ubuntu_12_04/postfix/main.cf&lt;br /&gt;
/usr/lib/postfix/main.cf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You only need to modify one of them and that is /etc/postfix/main.cf . Forget oll the others.&lt;br /&gt;
Copy / Forward All email (from all domains, not what you want)&lt;br /&gt;
&lt;br /&gt;
Postfix has the possibility to send a copy of all email to a specific email address. This means that all email from an to all email accounts on all domains is forwarded.&lt;br /&gt;
This can simply be don by adding this line in /etc/postfix/main.cf&lt;br /&gt;
always_bcc = administrator@example.com&lt;br /&gt;
This is not an option if you have different customer with different domains on the server.&lt;br /&gt;
&lt;br /&gt;
Copy / Forward all email from specific domain&lt;br /&gt;
&lt;br /&gt;
This give you the possibility to forward email from only one domain (or as many if you want).&lt;br /&gt;
&lt;br /&gt;
Add this lines in /etc/postfix/main.cf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sender_bcc_maps = hash:/etc/postfix/sender_bcc&lt;br /&gt;
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the this two files: /etc/postfix/recipient_bcc and /etc/postfix/sender_bcc&lt;br /&gt;
touch /etc/postfix/sender_bcc&lt;br /&gt;
touch /etc/postfix/recipient_bcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit both files by adding line like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@domain.com detective@example.com&lt;br /&gt;
@domain.eu detective@example.com&lt;br /&gt;
@domain.nl detective@example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where @domain.com is the domain you want the email forwarded from and detective@example.com the email address where a copy must be send to. Do this in both file. recipient_bcc is for incoming and sender_bcc for outgoing email.&lt;br /&gt;
Create the Postfix lookup tables&lt;br /&gt;
&lt;br /&gt;
Before Postfix can do something with it you have to make the Postfix lookup tables. You have to do this every time you make changes in /etc/postfix/sender_bcc or /etc/postfix/recipient_bcc.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;per&amp;gt;&lt;br /&gt;
postmap /etc/postfix/sender_bcc&lt;br /&gt;
postmap /etc/postfix/recipient_bcc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates the following files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/postfix/recipient_bcc.db&lt;br /&gt;
/etc/postfix/sender_bcc.db&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart postfix&lt;br /&gt;
&lt;br /&gt;
Now restart Postfix and your done.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
postfix reload&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://www.robgroen.nl/content/how-copy-all-and-outgoing-email-certain-domein-postfix-and-z-panel Source]&lt;/div&gt;</summary>
		<author><name>Snifer</name></author>	</entry>

	</feed>