{"id":552,"date":"2011-04-01T02:43:59","date_gmt":"2011-04-01T00:43:59","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=552"},"modified":"2011-04-01T16:43:46","modified_gmt":"2011-04-01T14:43:46","slug":"exim-send-a-copy-of-all-outgoing-messages-to-another-mailbox","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2011\/04\/01\/exim-send-a-copy-of-all-outgoing-messages-to-another-mailbox\/","title":{"rendered":"Exim | Send a copy of all outgoing messages to another mailbox"},"content":{"rendered":"<p><strong>Steps:<\/strong><\/p>\n<p><strong>1. <\/strong><\/p>\n<div>\n<div id=\"highlighter_987976\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>[server1.domain.com:\/root]# cat \/etc\/exim.conf | grep ^system_filter<\/code><\/div>\n<div>system_filter = \/etc\/system_filter.exim<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>then<\/p>\n<p><strong>2. <\/strong><\/p>\n<div>\n<div id=\"highlighter_723129\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code>[server1.domain.com:\/root]# nano <\/code>system_filter = \/etc\/system_filter.exim<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>and find the line with following content<\/p>\n<div>\n<div id=\"highlighter_537243\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<\/td>\n<td>\n<div>\n<div><code>if not first_delivery<\/code><\/div>\n<div><code>then finish<\/code><\/div>\n<div><code>endif<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>3.<\/strong> After the above line add\u00a0following<\/p>\n<div>\n<div>\n<div>\n<div id=\"highlighter_885092\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<\/td>\n<td>\n<div>\n<div><code>if<\/code> <code>$header_from<\/code><code>:<\/code> <code>contains<\/code> <code>\"@domain.com\"<\/code><\/div>\n<div><code>then<\/code><\/div>\n<div><code> <\/code><code>unseen deliver <\/code><code>\"monitor@domain.com\"<\/code><\/div>\n<div><code>endif<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>4.<\/strong> Restart exim service<\/p>\n<div>\n<div id=\"highlighter_181950\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code>[server1.domain.com:\/root]# service exim restart<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>The above filter rule sends a copy of every message from domain.com  to monitor@domain.com [unless the message already has that recipient &#8211;  Exim never does duplicate deliveries].<\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>USTTEKI CALISIYORDU ANCAK GELEN TUM MAILLERINDE HARICI BIR MAILE GITMESI GEREKIYORDU<\/p>\n<p>BU DURUMDA USTTEKINI SALLADIK YERINE BUNU KOYDUK<\/p>\n<p>GAYET ACIK KONU<\/p>\n<p>&nbsp;<\/p>\n<p><code><br \/>\nnano \/etc\/system_filter.exim<\/p>\n<p>#Incoming\/Outgoing Email Archiving<br \/>\nif (\"$h_to:, $h_cc:, $h_bcc\" contains \"YOURDOMAIN.com\")<br \/>\nthen<br \/>\n  unseen deliver \"incoming@YOURDOMAIN.com\"<br \/>\nendif<\/p>\n<p>if $sender_address_domain is YOURDOMAIN.com<br \/>\nthen<br \/>\n  unseen deliver \"outgoing@YOURDOMAIN.com\"<br \/>\nendif<\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps: 1. 1 2 [server1.domain.com:\/root]# cat \/etc\/exim.conf | grep ^system_filter system_filter = \/etc\/system_filter.exim then 2. 1 [server1.domain.com:\/root]# nano system_filter = \/etc\/system_filter.exim and find the line with following content 1 2 3 if not first_delivery then finish endif 3. After the above line add\u00a0following 1 2 3 4 if $header_from: contains &#8220;@domain.com&#8221; then unseen deliver &#8220;monitor@domain.com&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=552"}],"version-history":[{"count":5,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/552\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}