{"id":56,"date":"2017-06-21T13:07:51","date_gmt":"2017-06-21T11:07:51","guid":{"rendered":"http:\/\/admin.bejkon.se\/?p=56"},"modified":"2017-06-21T13:07:51","modified_gmt":"2017-06-21T11:07:51","slug":"postfix-mailgraph-och-syslog-ng-synology","status":"publish","type":"post","link":"https:\/\/admin.bejkon.se\/?p=56","title":{"rendered":"Postfix, mailgraph och syslog-ng synology"},"content":{"rendered":"<p><strong>Starta om syslog-ng <\/strong><br \/>\ninitctl restart syslog-ng<\/p>\n<p>vi \/usr\/local\/etc\/syslog-ng\/patterndb.d\/mail.conf<br \/>\ntemplate template_date_format {<br \/>\n    template(&#8221;${MONTH_ABBREV} ${DAY} ${HOUR}:${MIN}:${SEC} ${HOST} ${MSGHDR}${MSG}\\n&#8221;);<br \/>\n        template_escape(no);<br \/>\n        };<\/p>\n<p>destination mail { file(&#8221;\/var\/log\/mail.log&#8221; template(template_date_format)); };<br \/>\ndestination mailwarn { file(&#8221;\/var\/log\/mail.warn&#8221;); };<br \/>\ndestination mailerr { file(&#8221;\/var\/log\/mail.err&#8221;); };<\/p>\n<p>filter f_mail { facility(mail); };<br \/>\nfilter f_warn { level(warn); };<br \/>\nfilter f_err { level(err); };<\/p>\n<p>log { source(src); filter(f_mail); destination(mail); };<br \/>\nlog { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };<br \/>\nlog { source(src); filter(f_mail); filter(f_err); destination(mailerr); };<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Starta om syslog-ng initctl restart syslog-ng vi \/usr\/local\/etc\/syslog-ng\/patterndb.d\/mail.conf template template_date_format { template(&#8221;${MONTH_ABBREV} ${DAY} ${HOUR}:${MIN}:${SEC} ${HOST} ${MSGHDR}${MSG}\\n&#8221;); template_escape(no); }; destination mail { file(&#8221;\/var\/log\/mail.log&#8221; template(template_date_format)); }; destination mailwarn { file(&#8221;\/var\/log\/mail.warn&#8221;); }; destination mailerr { file(&#8221;\/var\/log\/mail.err&#8221;); }; filter f_mail { facility(mail); }; filter f_warn { level(warn); }; filter f_err { level(err); }; log { source(src); filter(f_mail); destination(mail); }; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/admin.bejkon.se\/?p=56\" class=\"more-link\">Forts\u00e4tt l\u00e4sa<span class=\"screen-reader-text\"> \u201dPostfix, mailgraph och syslog-ng synology\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[15,11,14],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-synology","tag-mailgraph","tag-postfix","tag-syslog-ng"],"_links":{"self":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":2,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/admin.bejkon.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}