{"id":4194,"date":"2020-10-30T23:43:13","date_gmt":"2020-10-30T22:43:13","guid":{"rendered":"https:\/\/webhosting.de\/?p=4194"},"modified":"2021-07-15T13:04:53","modified_gmt":"2021-07-15T12:04:53","slug":"srs-with-postfix-under-centos","status":"publish","type":"post","link":"https:\/\/webhosting.de\/ru\/srs-mit-postfix-unter-centos\/","title":{"rendered":"SRS \u0441 \u043f\u043e\u0441\u0442\u0444\u0438\u043a\u0441\u043e\u043c \u043f\u043e\u0434 CentOS"},"content":{"rendered":"<p>In den letzten Tagen hat sich united <a href=\"https:\/\/webhosting.de\/ru\/flexoptix-universal-transceiver\/\">internet<\/a> dazu entschlossen weitergeleitete eMails z.B. an gmx oder <a href=\"https:\/\/webhosting.de\/ru\/web-de\/\">web.de<\/a> Adressen zu blockieren.<\/p>\n<p>F\u00fcr Kunden von anderen Providern die einzelne eMailadressen zu ihrer gmx\/web.de eMail weiterleiten lassen pl\u00f6tzlich keine eMails mehr erhalten, wenn der Absender die eMail von gmx\/web.de versendet hat.<\/p>\n<p>Als Provider ist man nun gen\u00f6tigt dem Wunsch von united internet zu entsprechen seinen Server auf das sog. SRS Verfahren umzustellen, auch wenn dieses zu weiteren Problemen f\u00fchrt und insbesondere bei bereits weitergeleiteten eMails zu Problemen f\u00fchren kann.<\/p>\n<p>Mit dieser Anleitung haben Sie SRS in 1 Minute installiert und die Serviceanfragen Ihrer Kunden lassen nach.<\/p>\n<p><strong>Dieses Anleitung bezieht sich auf ein Centos7 System mit Postfix als MTA.<\/strong><\/p>\n<p>Laden Sie das RPM postsrsd-1.4-3.el7.centos.x86_64.rpm herunter und installieren Sie es.<\/p>\n<pre class=\"lang:default decode:true \">wget https:\/\/download.hoster.online\/postsrsd-1.4-3.el7.centos.x86_64.rpm\nrpm -i postsrsd-1.4-3.el7.centos.x86_64.rpm<\/pre>\n<p>Wenn es keine Fehlermeldungen gab ist die Installation abgeschlossen. Mit folgendem Befehl kann die Installation gepr\u00fcft werden. Hier wird auch direkt angezeigt, welche Dateien installiert wurden.<\/p>\n<pre class=\"lang:default decode:true \">rpm -qil postsrsd<\/pre>\n<p>Beispielausgabe:<\/p>\n<p>Name : postsrsd<br \/>\nVersion : 1.4<br \/>\nRelease : 3.el7.centos<br \/>\nArchitecture: x86_64<br \/>\nInstall Date: Do 02 Jun 2016 11:55:53 CEST<br \/>\nGroup : Unspecified<br \/>\nSize : 49065<br \/>\nLicense : GPLv2+<br \/>\nSignature : (none)<br \/>\nSource RPM : postsrsd-1.4-3.el7.centos.src.rpm<br \/>\nBuild Date : Do 02 Jun 2016 10:54:45 CEST<br \/>\nBuild Host : vpn.webhoster.ag<br \/>\nRelocations : (not relocatable)<br \/>\nURL : https:\/\/github.com\/roehling\/postsrsd<br \/>\nSummary : A sender-envelope rewriter to comply with SPF forwarding for postfix<br \/>\nDescription :<br \/>\nPostSRSd provides the Sender Rewriting Scheme (SRS) via TCP-based<br \/>\nlookup tables for Postfix. SRS is needed if your mail server acts<br \/>\nas forwarder.<br \/>\n\/etc\/sysconfig\/postsrsd<br \/>\n\/usr\/lib\/systemd\/system\/postsrsd.service<br \/>\n\/usr\/sbin\/postsrsd<br \/>\n\/usr\/share\/doc\/postsrsd<br \/>\n\/usr\/share\/doc\/postsrsd\/README.md<br \/>\n\/usr\/share\/doc\/postsrsd\/README_UPGRADE.md<br \/>\n\/usr\/share\/doc\/postsrsd\/main.cf.ex<br \/>\n\/usr\/share\/man\/man8\/postsrsd.8.gz<br \/>\n\/var\/lib\/postsrsd<\/p>\n<p><strong>Jetzt muss noch die Konfigurationsdatei angepasst werden. Danach kann der Dienst eingebunden und gestartet werden.<\/strong><\/p>\n<pre class=\"lang:default decode:true \">nano \/etc\/sysconfig\/postsrsd<\/pre>\n<h6># Default settings for postsrsd<\/h6>\n<h6># Local domain name.<br \/>\n# Addresses are rewritten to originate from this domain. The default value<br \/>\n# is taken from postconf -h mydomain and probably okay.<br \/>\n#<br \/>\n#SRS_DOMAIN=example.com Tragen Sie hier bitte die Mailserver Domain ein. Diese sollte sich auch in der main.cf befinden.<br \/>\n<span style=\"color: #ff0000;\">SRS_DOMAIN=ihrefirma.de<\/span><\/h6>\n<h6># Exclude additional domains.<br \/>\n# You may list domains which shall not be subjected to address rewriting.<br \/>\n# If a domain name starts with a dot, it matches all subdomains, but not<br \/>\n# the domain itself. Separate multiple domains by space or comma.<br \/>\n#<br \/>\n#SRS_EXCLUDE_DOMAINS=.example.com,example.org<\/h6>\n<h6># First separator character after SRS0 or SRS1.<br \/>\n# Can be one of: -+=<br \/>\nSRS_SEPARATOR==<\/h6>\n<h6># Secret key to sign rewritten addresses.<br \/>\n# When postsrsd is installed for the first time, a random secret is generated<br \/>\n# and stored in \/etc\/postsrsd.secret. For most installations, that&#8217;s just fine.<br \/>\n#<br \/>\nSRS_SECRET=\/etc\/postsrsd.secret<\/h6>\n<h6># Local ports for TCP list.<br \/>\n# These ports are used to bind the TCP list for postfix. If you change<br \/>\n# these, you have to modify the postfix settings accordingly. The ports<br \/>\n# are bound to the loopback interface, and should never be exposed on<br \/>\n# the internet.<br \/>\n#<br \/>\nSRS_FORWARD_PORT=10001<br \/>\nSRS_REVERSE_PORT=10002<\/h6>\n<h6># Drop root privileges and run as another user after initialization.<br \/>\n# This is highly recommended as postsrsd handles untrusted input.<br \/>\n#<br \/>\nRUN_AS=nobody<\/h6>\n<h6># Jail daemon in chroot environment<br \/>\nCHROOT=\/var\/lib\/postsrsd<\/h6>\n<p><strong>Sofern noch nicht vorhanden erstellen Sie folgende Dateien im Postfix Verzeichnis:<\/strong><\/p>\n<pre class=\"lang:default decode:true \">touch \/etc\/postfix\/sender_canonical_maps\n\ntouch \/etc\/postfix\/recipient_canonical_maps\n\npostmap btree:\/etc\/postfix\/recipient_canonical_maps\n\npostmap btree:\/etc\/postfix\/sender_canonical_maps<\/pre>\n<p><strong>F\u00fcgen Sie nun, oder \u00e4ndern Sie folgende Zeilen in Ihrer main.cf Konfigurationsdatei ein:<\/strong><\/p>\n<pre class=\"lang:default decode:true \">sender_canonical_maps = btree:\/etc\/postfix\/sender_canonical_maps, tcp:127.0.0.1:10001\nsender_canonical_classes = envelope_sender\nrecipient_canonical_maps = btree:\/etc\/postfix\/recipient_canonical_maps, tcp:127.0.0.1:10002\nrecipient_canonical_classes = envelope_recipient<\/pre>\n<p><strong>Danach k\u00f6nnen Sie den postsrs Dienst starten und postfix neu starten.<\/strong><\/p>\n<pre class=\"lang:default decode:true \">service postsrsd start\nservice postfix restart<\/pre>\n<p>Pr\u00fcfen Sie ob alles l\u00e4uft indem Sie von einer gmx Adresse eine eMail an eine auf dem Server vorhandene <a href=\"https:\/\/webhosting.de\/ru\/10-moeglichkeiten-die-emailadresse-geschuetzt-darzustellen\/\">eMailadresse<\/a> senden von der aus eine eMail zur\u00fcck zu gmx gesendet wird.<\/p>\n<p>tail -f \/var\/log\/maillog|grep &#8217;srs_forward&#8216;<\/p>\n<p>Beispielausgabe:<\/p>\n<pre class=\"lang:default decode:true \">Jun 2 12:22:10 ihrefirma.de postsrsd[1899]: srs_forward: &amp;lt;meinname@ihrefirma.de&amp;gt; rewritten as &amp;lt;SRS0+JkYf=R2=kundendomain.xxx=weiterleitung@ihrefirma.de&amp;gt;<\/pre>\n<p>Wenn diese Anleitung f\u00fcr Sie hilfreich war, freuen wir uns \u00fcber eine Spende an den lokalen Kindergarten:<\/p>\n<form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" target=\"_top\"><input name=\"cmd\" type=\"hidden\" value=\"_s-xclick\"><br \/>\n<input name=\"hosted_button_id\" type=\"hidden\" value=\"2Q65EVXTZEYCA\"><br \/>\n<input alt=\"Jetzt einfach, schnell und sicher online bezahlen \u2013 mit PayPal.\" name=\"submit\" src=\"https:\/\/www.paypalobjects.com\/de_DE\/DE\/i\/btn\/btn_donateCC_LG.gif\" type=\"image\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.paypalobjects.com\/de_DE\/i\/scr\/pixel.gif\" alt=\" width=\" 1\"=\"\" height=\"1\" border=\"0\"><\/form>\n<p>Falls Sie eine andere Linux Distribution verwenden k\u00f6nnen Sie den Daemon auch manuell kompilieren. Bei z.B. Centos6 ist zu beachten, dass der dort mitgelieferte Postfix Service zu alt ist und am besten zun\u00e4chst auf die aktuellste Version aktualisiert werden sollte.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In den letzten Tagen hat sich united internet dazu entschlossen weitergeleitete eMails z.B. an gmx oder web.de Adressen zu blockieren. F\u00fcr Kunden von anderen Providern die einzelne eMailadressen zu ihrer gmx\/web.de eMail weiterleiten lassen pl\u00f6tzlich keine eMails mehr erhalten, wenn der Absender die eMail von gmx\/web.de versendet hat. Als Provider ist man nun gen\u00f6tigt dem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":614,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_crdt_document":"","inline_featured_image":false,"footnotes":""},"categories":[700,780,791,995],"tags":[197,198,199,200],"class_list":["post-4194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-anleitungen","category-administration-anleitungen","category-emailserver-administration-anleitungen","category-hilfe","tag-gmx","tag-postfix","tag-srs","tag-web-de"],"acf":[],"_wp_attached_file":null,"_wp_attachment_metadata":null,"litespeed-optimize-size":null,"litespeed-optimize-set":null,"_elementor_source_image_hash":null,"_wp_attachment_image_alt":null,"stockpack_author_name":null,"stockpack_author_url":null,"stockpack_provider":null,"stockpack_image_url":null,"stockpack_license":null,"stockpack_license_url":null,"stockpack_modification":null,"color":null,"original_id":null,"original_url":null,"original_link":null,"unsplash_location":null,"unsplash_sponsor":null,"unsplash_exif":null,"unsplash_attachment_metadata":null,"_elementor_is_screenshot":null,"surfer_file_name":null,"surfer_file_original_url":null,"envato_tk_source_kit":null,"envato_tk_source_index":null,"envato_tk_manifest":null,"envato_tk_folder_name":null,"envato_tk_builder":null,"envato_elements_download_event":null,"_menu_item_type":null,"_menu_item_menu_item_parent":null,"_menu_item_object_id":null,"_menu_item_object":null,"_menu_item_target":null,"_menu_item_classes":null,"_menu_item_xfn":null,"_menu_item_url":null,"_trp_menu_languages":null,"rank_math_primary_category":"700","rank_math_title":null,"inline_featured_image":null,"_yoast_wpseo_primary_category":"700","rank_math_schema_blogposting":null,"rank_math_schema_videoobject":null,"_oembed_049c719bc4a9f89deaead66a7da9fddc":null,"_oembed_time_049c719bc4a9f89deaead66a7da9fddc":null,"_yoast_wpseo_focuskw":null,"_yoast_wpseo_linkdex":null,"_oembed_27e3473bf8bec795fbeb3a9d38489348":null,"_oembed_c3b0f6959478faf92a1f343d8f96b19e":null,"_trp_translated_slug_en_us":null,"_wp_desired_post_slug":null,"_yoast_wpseo_title":null,"tldname":null,"tldpreis":null,"tldrubrik":null,"tldpolicylink":null,"tldsize":null,"tldregistrierungsdauer":null,"tldtransfer":null,"tldwhoisprivacy":null,"tldregistrarchange":null,"tldregistrantchange":null,"tldwhoisupdate":null,"tldnameserverupdate":null,"tlddeletesofort":null,"tlddeleteexpire":null,"tldumlaute":null,"tldrestore":null,"tldsubcategory":null,"tldbildname":null,"tldbildurl":null,"tldclean":null,"tldcategory":null,"tldpolicy":null,"tldbesonderheiten":null,"tld_bedeutung":null,"_oembed_d167040d816d8f94c072940c8009f5f8":null,"_oembed_b0a0fa59ef14f8870da2c63f2027d064":null,"_oembed_4792fa4dfb2a8f09ab950a73b7f313ba":null,"_oembed_33ceb1fe54a8ab775d9410abf699878d":null,"_oembed_fd7014d14d919b45ec004937c0db9335":null,"_oembed_21a029d076783ec3e8042698c351bd7e":null,"_oembed_be5ea8a0c7b18e658f08cc571a909452":null,"_oembed_a9ca7a298b19f9b48ec5914e010294d2":null,"_oembed_f8db6b27d08a2bb1f920e7647808899a":null,"_oembed_168ebde5096e77d8a89326519af9e022":null,"_oembed_cdb76f1b345b42743edfe25481b6f98f":null,"_oembed_87b0613611ae54e86e8864265404b0a1":null,"_oembed_27aa0e5cf3f1bb4bc416a4641a5ac273":null,"_oembed_time_27aa0e5cf3f1bb4bc416a4641a5ac273":null,"_tldname":null,"_tldclean":null,"_tldpreis":null,"_tldcategory":null,"_tldsubcategory":null,"_tldpolicy":null,"_tldpolicylink":null,"_tldsize":null,"_tldregistrierungsdauer":null,"_tldtransfer":null,"_tldwhoisprivacy":null,"_tldregistrarchange":null,"_tldregistrantchange":null,"_tldwhoisupdate":null,"_tldnameserverupdate":null,"_tlddeletesofort":null,"_tlddeleteexpire":null,"_tldumlaute":null,"_tldrestore":null,"_tldbildname":null,"_tldbildurl":null,"_tld_bedeutung":null,"_tldbesonderheiten":null,"_oembed_ad96e4112edb9f8ffa35731d4098bc6b":null,"_oembed_8357e2b8a2575c74ed5978f262a10126":null,"_oembed_3d5fea5103dd0d22ec5d6a33eff7f863":null,"_eael_widget_elements":null,"_oembed_0d8a206f09633e3d62b95a15a4dd0487":null,"_oembed_time_0d8a206f09633e3d62b95a15a4dd0487":null,"_aioseo_description":null,"_eb_attr":null,"_eb_data_table":null,"_oembed_819a879e7da16dd629cfd15a97334c8a":null,"_oembed_time_819a879e7da16dd629cfd15a97334c8a":null,"_acf_changed":null,"_wpcode_auto_insert":null,"_edit_last":"1","_edit_lock":"1604487814:1","_oembed_e7b913c6c84084ed9702cb4feb012ddd":null,"_oembed_bfde9e10f59a17b85fc8917fa7edf782":null,"_oembed_time_bfde9e10f59a17b85fc8917fa7edf782":null,"_oembed_03514b67990db061d7c4672de26dc514":null,"_oembed_time_03514b67990db061d7c4672de26dc514":null,"rank_math_news_sitemap_robots":"index","rank_math_robots":["index"],"_eael_post_view_count":"6750","_trp_automatically_translated_slug_ru_ru":null,"_trp_automatically_translated_slug_et":"srs-with-postfix-under-centos","_trp_automatically_translated_slug_lv":"srs-with-postfix-under-centos","_trp_automatically_translated_slug_fr_fr":null,"_trp_automatically_translated_slug_en_us":null,"_wp_old_slug":null,"_trp_automatically_translated_slug_da_dk":null,"_trp_automatically_translated_slug_pl_pl":null,"_trp_automatically_translated_slug_es_es":null,"_trp_automatically_translated_slug_hu_hu":null,"_trp_automatically_translated_slug_fi":"srs-with-postfix-under-centos","_trp_automatically_translated_slug_ja":"%e3%82%bb%e3%83%b3%e3%83%81%e4%bb%a5%e4%b8%8b%e3%81%ae%e3%83%9d%e3%82%b9%e3%83%88%e3%83%95%e3%82%a3%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e6%8c%81%e3%81%a4%ef%bd%93%ef%bd%92%ef%bd%93","_trp_automatically_translated_slug_lt_lt":null,"_elementor_edit_mode":null,"_elementor_template_type":null,"_elementor_version":null,"_elementor_pro_version":null,"_wp_page_template":"default","_elementor_page_settings":null,"_elementor_data":null,"_elementor_css":null,"_elementor_conditions":null,"_happyaddons_elements_cache":null,"_oembed_75446120c39305f0da0ccd147f6de9cb":null,"_oembed_time_75446120c39305f0da0ccd147f6de9cb":null,"_oembed_3efb2c3e76a18143e7207993a2a6939a":null,"_oembed_time_3efb2c3e76a18143e7207993a2a6939a":null,"_oembed_59808117857ddf57e478a31d79f76e4d":null,"_oembed_time_59808117857ddf57e478a31d79f76e4d":null,"_oembed_965c5b49aa8d22ce37dfb3bde0268600":null,"_oembed_time_965c5b49aa8d22ce37dfb3bde0268600":null,"_oembed_81002f7ee3604f645db4ebcfd1912acf":null,"_oembed_time_81002f7ee3604f645db4ebcfd1912acf":null,"_elementor_screenshot":null,"_oembed_7ea3429961cf98fa85da9747683af827":null,"_oembed_time_7ea3429961cf98fa85da9747683af827":null,"_elementor_controls_usage":null,"_elementor_page_assets":[],"_elementor_screenshot_failed":null,"theplus_transient_widgets":["tp-video-player"],"_eael_custom_js":null,"_wp_old_date":null,"_trp_automatically_translated_slug_it_it":null,"_trp_automatically_translated_slug_pt_pt":null,"_trp_automatically_translated_slug_zh_cn":null,"_trp_automatically_translated_slug_nl_nl":null,"_trp_automatically_translated_slug_pt_br":null,"_trp_automatically_translated_slug_sv_se":null,"rank_math_analytic_object_id":"692","rank_math_internal_links_processed":null,"_trp_automatically_translated_slug_ro_ro":null,"_trp_automatically_translated_slug_sk_sk":null,"_trp_automatically_translated_slug_bg_bg":null,"_trp_automatically_translated_slug_sl_si":null,"litespeed_vpi_list":["webhostinglogo.png"],"litespeed_vpi_list_mobile":["webhostinglogo.png"],"rank_math_seo_score":null,"rank_math_contentai_score":null,"ilj_limitincominglinks":null,"ilj_maxincominglinks":null,"ilj_limitoutgoinglinks":null,"ilj_maxoutgoinglinks":null,"ilj_limitlinksperparagraph":null,"ilj_linksperparagraph":null,"ilj_blacklistdefinition":null,"ilj_linkdefinition":["srs mit postfix unter centos","srs","postfix","spam"],"_eb_reusable_block_ids":null,"rank_math_focus_keyword":null,"rank_math_og_content_image":null,"_yoast_wpseo_metadesc":"Hier beschreiben wir wie man srs manuell mit Postfix verwenden kann. Eine Weiterleitung ohne srs wird meist als Spam betrachtet.","_yoast_wpseo_content_score":"30","_yoast_wpseo_focuskeywords":"[]","_yoast_wpseo_keywordsynonyms":"[\"\"]","_yoast_wpseo_estimated-reading-time-minutes":null,"rank_math_description":"Hier beschreiben wir wie man srs manuell mit Postfix verwenden kann. Eine Weiterleitung ohne srs wird meist als Spam betrachtet.","surfer_last_post_update":null,"surfer_last_post_update_direction":null,"surfer_keywords":null,"surfer_location":null,"surfer_draft_id":null,"surfer_permalink_hash":null,"surfer_scrape_ready":null,"_thumbnail_id":"614","footnotes":null,"_links":{"self":[{"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/posts\/4194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/comments?post=4194"}],"version-history":[{"count":0,"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/posts\/4194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/media\/614"}],"wp:attachment":[{"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/media?parent=4194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/categories?post=4194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhosting.de\/ru\/wp-json\/wp\/v2\/tags?post=4194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}