{"id":20935,"date":"2014-03-09T03:21:13","date_gmt":"2014-03-09T03:21:13","guid":{"rendered":"http:\/\/antonini.med.br\/blog\/?p=20935"},"modified":"2021-04-02T05:07:32","modified_gmt":"2021-04-02T05:07:32","slug":"postfix-554-relay-access-denied","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=20935","title":{"rendered":"Postfix: 554 Relay access denied"},"content":{"rendered":"<header>\n<p itemprop=\"headline\" style=\"text-align: justify;\">Uma forma de resolver o problema do 554 reject. N\u00e3o sei se funciona.<!--more--><\/p>\n<p itemprop=\"headline\" style=\"text-align: justify;\"><time itemprop=\"datePublished\" datetime=\"2007-08-30T19:06:02+00:00\">August 30, 2007<\/time> By <a itemprop=\"url\" href=\"http:\/\/major.io\/author\/majorhayden\/\" rel=\"author\">Major Hayden<\/a> <a href=\"http:\/\/major.io\/2007\/08\/30\/postfix-554-relay-access-denied\/#comments\">10 Comments<\/a><\/p>\n<\/header>\n<p style=\"text-align: justify;\">Let\u2019s say you have a user who can\u2019t receive e-mail. Each time they send a message to the server, this pops up in the mail logs:<\/p>\n<p style=\"text-align: justify;\"><code>postfix\/smtpd[23897]: NOQUEUE: reject: RCPT from remotemailserver.com[10.0.0.2]: 554 &lt;user@domain.com&gt;: Relay access denied; from=&lt;user@otherdomain.com&gt; to=&lt;user@domain.com&gt; proto=ESMTP helo=&lt;remotemailserver.com&gt;<\/code><\/p>\n<p style=\"text-align: justify;\">This is happening because Postfix is receiving e-mail for a domain for which it doesn\u2019t expect to handle mail. Add the domains to the <code>mydestination<\/code> parameter in \/etc\/postfix\/main.cf:<\/p>\n<div style=\"text-align: justify;\">\n<table style=\"width: 478px; height: 40px;\">\n<tbody>\n<tr>\n<td>\n<pre>mydestination = domain.com, domain2.com, domain3.com<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">If you have a lot of domains to add, create a mydomains hash file and change the <code>mydestination<\/code> parameter:<\/p>\n<div style=\"text-align: justify;\">\n<table style=\"width: 480px; height: 40px;\">\n<tbody>\n<tr>\n<td>\n<pre>mydestination = hash:\/etc\/postfix\/mydomains<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">Create \/etc\/postfix\/mydomains:<\/p>\n<div style=\"text-align: justify;\">\n<table style=\"width: 480px; height: 76px;\">\n<tbody>\n<tr>\n<td>\n<pre>localhost               OK\r\nlocalmailserver.com     OK\r\ndomain.com              OK<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">Then run:<\/p>\n<div style=\"text-align: justify;\">\n<table style=\"width: 484px; height: 40px;\">\n<tbody>\n<tr>\n<td>\n<pre># postmap \/etc\/postfix\/mydomains<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">This will create the hash file (mydomains.db) within \/etc\/postfix. If you\u2019ve just added the directive to the main.cf, run <code>postfix reload<\/code>. However, if the directive was already there, but you just adjusted the mydomains and ran postmap, then there is nothing left to do.<\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Uma forma de resolver o problema do 554 reject. N\u00e3o sei se funciona.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-20935","post","type-post","status-publish","format-standard","hentry","category-noticias"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/20935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20935"}],"version-history":[{"count":5,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/20935\/revisions"}],"predecessor-version":[{"id":20941,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/20935\/revisions\/20941"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}