{"id":2127,"date":"2022-08-30T15:22:16","date_gmt":"2022-08-30T15:22:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/02\/centos-6-mail-server-cant-receive-e-mails-but-can-send-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:16","modified_gmt":"2022-08-30T15:22:16","slug":"centos-6-mail-server-cant-receive-e-mails-but-can-send-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/centos-6-mail-server-cant-receive-e-mails-but-can-send-collection-of-common-programming-errors\/","title":{"rendered":"Centos 6 Mail Server \/ Can&#39;t receive e-mails but can send-Collection of common programming errors"},"content":{"rendered":"<p>I recently set up my server using Centos 6, with ISPconfig 3 with httpd, php, mysql, mail server. I can create e-mail accounts in the control panel, And I successfully can log in to the webmail, I tried to send a message to my other e-mail on a other provider, And I received it, And tried to send a E-Mail to my server (example@myserver.net) , and The mail server responds, But refuses it with this back.<\/p>\n<pre><code>From:   \nMAILER-DAEMON@teknikk.info  (Add as Preferred Sender)    \nDate:   Tue, Jan 29, 2013 11:11 pm\nTo: contact@heisteknikk.com\nThis is the mail system at host teknikk.info.\n\nI'm sorry to have to inform you that your message could not\nbe delivered to one or more recipients. It's attached below.\n\nFor further assistance, please send mail to postmaster.\n\nIf you do so, please include this problem report. You can\ndelete your own text from the attached returned message.\n\nThe mail system\n\n: unknown user: \"tek\"\n<\/code><\/pre>\n<p>Attached Delivery report<\/p>\n<pre><code>Reporting-MTA: dns; teknikk.info\nX-Postfix-Queue-ID: CD9571A1312\nX-Postfix-Sender: rfc822; contact@heisteknikk.com\nArrival-Date: Wed, 30 Jan 2013 00:11:00 +0100 (CET)\n\nFinal-Recipient: rfc822; tek@teknikk.info\nOriginal-Recipient: rfc822;tek@teknikk.info\nAction: failed\nStatus: 5.1.1\nDiagnostic-Code: X-Postfix; unknown user: \"tek\"\n<\/code><\/pre>\n<p>I set everything up with help from this guide, http:\/\/www.howtoforge.com\/perfect-server-centos-6.3-x86_64-apache2-dovecot-ispconfig-3 No problems with the install, But somehow, The mail doesn&#8217;t deliver to the account\/s.<\/p>\n<p>\/etc\/aliases<\/p>\n<pre><code>#\n#  Aliases in this file will NOT be expanded in the header from\n#  Mail, but WILL be visible over networks or from \/bin\/mail.\n#\n#       &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;      The program \"newaliases\" must be run after\n#       &gt;&gt; NOTE &gt;&gt;      this file is updated for any changes to\n#       &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;      show through to sendmail.\n#\n\n# Basic system aliases -- these MUST be present.\nmailer-daemon:  postmaster\npostmaster:     root\nmailman:              \"|\/usr\/lib\/mailman\/mail\/mailman post mailman\"\nmailman-admin:        \"|\/usr\/lib\/mailman\/mail\/mailman admin mailman\"\nmailman-bounces:      \"|\/usr\/lib\/mailman\/mail\/mailman bounces mailman\"\nmailman-confirm:      \"|\/usr\/lib\/mailman\/mail\/mailman confirm mailman\"\nmailman-join:         \"|\/usr\/lib\/mailman\/mail\/mailman join mailman\"\nmailman-leave:        \"|\/usr\/lib\/mailman\/mail\/mailman leave mailman\"\nmailman-owner:        \"|\/usr\/lib\/mailman\/mail\/mailman owner mailman\"\nmailman-request:      \"|\/usr\/lib\/mailman\/mail\/mailman request mailman\"\nmailman-subscribe:    \"|\/usr\/lib\/mailman\/mail\/mailman subscribe mailman\"\nmailman-unsubscribe:  \"|\/usr\/lib\/mailman\/mail\/mailman unsubscribe mailman\"\n# General redirections for pseudo accounts.\nbin:            root\ndaemon:         root\nadm:            root\nlp:             root\nsync:           root\nshutdown:       root\nhalt:           root\nmail:           root\nnews:           root\nuucp:           root\noperator:       root\ngames:          root\ngopher:         root\nftp:            root\nnobody:         root\nradiusd:        root\nnut:            root\ndbus:           root\nvcsa:           root\ncanna:          root\nwnn:            root\nrpm:            root\nnscd:           root\npcap:           root\napache:         root\nwebalizer:      root\ndovecot:        root\nfax:            root\nquagga:         root\nradvd:          root\npvm:            root\namanda:         root\nprivoxy:        root\nident:          root\nnamed:          root\nxfs:            root\ngdm:            root\nmailnull:       root\n<\/code><\/pre>\n<p>Tried to make a e-mail account named root@example.com and Did not get any errors, But didn&#8217;t receive it in the inbox, But in the \/var\/spool\/mail\/root.<\/p>\n<pre><code>From ***********@gmail.com  Thu Jan 31 01:01:52 2013\nReturn-Path: \nX-Original-To: root@teknikk.info\nDelivered-To: root@teknikk.info\nReceived: from localhost (unknown [127.0.0.1])\n        by teknikk.info (Postfix) with ESMTP id 083BF1A131E\n        for ; Thu, 31 Jan 2013 00:01:52 +0000 (UTC)\nX-Virus-Scanned: amavisd-new at teknikk.info\nReceived: from teknikk.info ([127.0.0.1])\n        by localhost (teknikk.info [127.0.0.1]) (amavisd-new, port 10024)\n        with ESMTP id 2XRR49L51PYm for ;\n        Thu, 31 Jan 2013 01:01:51 +0100 (CET)\nReceived: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180])\n        by teknikk.info (Postfix) with ESMTPS id B6C001A1314\n        for ; Thu, 31 Jan 2013 01:01:50 +0100 (CET)\nReceived: by mail-vc0-f180.google.com with SMTP id fo13so1371099vcb.25\n        for ; Wed, 30 Jan 2013 16:01:34 -0800 (PST)\nDKIM-Signature: v=1; a=rsa-sha256; c=relaxed\/relaxed;\n        d=gmail.com; s=20120113;\n        h=mime-version:x-received:date:message-id:subject:from:to\n         :content-type;\n        bh=6+cGiWqC5rk7+tY2hOc3FkwVEvRIENfjOf46AqnjdGM=;\n        b=kFz\/YsQysZb99aGhpKYljBCTxwSaOBz6hd5wTs7iG\/jLzw+Ib1KjpwA+GAS+e6HSkZ\n         L5svGpK2\/fQ5lSEp7H4xL49zOU9ATQ2zxLk3iihnhCnPhik4bsWzVwtMFWbkImGf+QQy\n         MeK0LiZVY9Tc8ioeyNong9CQMzGZF8DVQxyo\/3uXT6t5sc4dosoI9pCVtvsZX4aYLSHa\n         YYInKpiE4j02dPGtDzOqoZulMTBWz2JGMC9m3iP0vM\/EFSQQ4Me0HUcx1rglDa9Rafe4\n         LAoRYHx2ctIaT15XOhDeQlyl1+MDV6TTbcd0rXDuJxl8q\/I8BtPAcWpU5Sm00kq1\/mIK\n         BMsw==\nMIME-Version: 1.0\nX-Received: by 10.52.21.146 with SMTP id v18mr5586245vde.79.1359590494567;\n Wed, 30 Jan 2013 16:01:34 -0800 (PST)\nReceived: by 10.52.156.66 with HTTP; Wed, 30 Jan 2013 16:01:34 -0800 (PST)\nDate: Thu, 31 Jan 2013 01:01:34 +0100\nMessage-ID: \nSubject: Grr\nFrom: Andreas Teknikk \nTo: root@teknikk.info\nContent-Type: multipart\/alternative; boundary=20cf307ca38e77fe3004d48a540b\n\n--20cf307ca38e77fe3004d48a540b\nContent-Type: text\/plain; charset=ISO-8859-1\n\nWhy doesn't the other accounts work?\n\n--20cf307ca38e77fe3004d48a540b\n<\/code><\/pre>\n<p><b>Update<\/b><\/p>\n<p>Was trying around things in the control panel, And added my other domain gametek.me to the e-mail [Domains] in ISPConfig, And created a test account<\/p>\n<p>And tried to send a test mail to it using GMail, and suddently, It arrived, And then i tried my main domain teknikk.info, And then i got the Error User not exist, When it does exist.<\/p>\n<p>So what I am wondering, Is it because the server hostname is my main domain, Cause I tried a different domain I had, and It worked with no problems ._.<\/p>\n<p>I tried to delete the main domain from the cpanel, And readded it, And still didn&#8217;t work.<\/p>\n<p>So, If i use my main domain, The e-mails won&#8217;t arrive, But If I use my second domain, It arrives.<\/p>\n<p>I&#8217;m confused, Cause, Why does a other domain work, And not the main domain?<\/p>\n<p>Cause I need to get it fixed, As I use my main domain for things.<\/p>\n<h3>Issue fixed<\/h3>\n<p>This problem is now fixed, Had to change the mydestination that postconf | grep ^mydestination Showed to a other, changed it to server1.example.com, and after that, I received the test mail&#8217;s i sendt.<\/p>\n<ol>\n<li>\n<p>Is postfix configured to accept mail for the domain?<\/p>\n<p><code>postconf | grep ^mydestination<\/code> ?<\/p>\n<p>I know it doesn&#8217;t sound right because of the unknown user error, but it&#8217;s worth checking.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-02 12:07:30. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I recently set up my server using Centos 6, with ISPconfig 3 with httpd, php, mysql, mail server. I can create e-mail accounts in the control panel, And I successfully can log in to the webmail, I tried to send a message to my other e-mail on a other provider, And I received it, And [&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-2127","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2127"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2127\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}