Only send e-mail with iRedMail on Ubuntu

  • Posted April 4, 2013

I use this tutorial , but I can only send e-mail and I receive only local e-mail. I do not how debug this problem. Can you help me?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yes, it should point to your droplet’s hostname/PTR record.

@ Viktor, <br>Thanks for reply and clear instructions. Question remaining for me is: <br>does this mx record: “” need to be the same as the FQDN of the actual server (or VPS in this case)? <br>Mine says: whereas mx and other records point to:, all on same IP. Would this cause redmail not receiving mai?? <br>Thanks for answers!

I’m posting this just because someone might read this in the future. <br>I was facing the same problem I only could send email but I couldn’t receive emails. <br>The soloution is very simple! Follow this steps: <br>1. Log in to your Digital Ocean account. <br>2. Frol the list on the left side choose DNS. <br>3. Navigate on your preffered domain name and click it. <br>4. Push Add Record button. <br>5. Select an MX. <br>6. Where it says enter hostname wright (don’t forget the dot in the end!) <br>7. Where it says enter priority type 10 <br> <br>That’s it!! wait for few minutes and your email is working!!!

I have same error as raiyu. My dns settings see on this screenshot: <br>Sorry, I don’t know much about mx records and dns settings, so where I do mistake

but I can only send e-mail and I receive only local e-mail <br> <br>This may be greylisting. You can check /var/log/mail.log to see if the email actually arrived. If it is in the log, just give sometime to pass the greylisting.

<br>P.S. it’s better to post iRedMail related issues/questions in iRedMail online support forum:

<br>Hi Peter, <br> <br>I’m author of iRedMail project, Zhang Huangbin. <br> <br>The error message is “DNS Error: Domain name not found”, that means the mail server cannot find required DNS records of your domain. Usually, mail server will use MX record(s) to connect to your mail server, if no MX record available, A record is used instead. <br> <br>Please check your DNS records first, and usually ISP will cache DNS records for several hours, you may need to wait for some hours to get modified DNS records active.

Hello there. I am too having the same issue. Now I know my DNS setting are as stated in the tutorial. You can do a whois on to see. <br> <br>So I am at a lost. I can send mail to the outside world. But I can not receive any mails from the outside world. Here is a bounded mail message. <br> <br>-----Message will be retried for 2 more day(s) <br> <br>Technical details of temporary failure: <br>DNS Error: Domain name not found <br> <br>----- Original message ----- <br> <br>DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; <br>; s=20120113; <br> h=x-received:message-id:from:to:subject:date:mime-version <br> :content-type:x-priority:x-msmail-priority:importance:x-mailer <br> :x-mimeole:x-antivirus:x-antivirus-status; <br> bh=BgS1mutoywoNJcgZTtEsi9VDuO1lxW7juUM9djGhAPw=; <br> b=pV6PaZyYg9tCGXtDv3xheEzCMS2iH0rfzYmEYHgiJJ0lCnQP2RvpKfyUJMV1ieF/WT <br> PYlEWPSgzhd5zIyRkFOVRZxk1bLPVqJ6QAQP/dpaxPjbjuJqSH1qFi7X+/Oyt5UFvE5t <br> ClVIwQDt6CNgLsD4isuhXaThp8P47LgClRK3X9crM5hGU+8BgpVGndRve5UOe3uywrUU <br> j/lbR7nGmPvNCL2oViLs4B5/FzR0m0/Do0mI2TPMfFpWqmQ6kDO9Np2z4kStnRnFrfak <br> jP9oIWPWf9xq3Pr7ue+vppOeBYzQlwH4PWUTWNvezXOwJNjwfHPtQ2gFnb8DS5pi+drK <br> cl5g== <br>X-Received: by with SMTP id lo7mr20535913wjb.48.1366307976561; <br> Thu, 18 Apr 2013 10:59:36 -0700 (PDT) <br>Return-Path: <br>Received: from MySuperAMD ( []) <br> by with ESMTPS id du2sm32864956wib.0.2013. <br> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); <br> Thu, 18 Apr 2013 10:59:35 -0700 (PDT) <br>Message-ID: E80255211C5B4D7DB2682900EF38A02F@MySuperAMD <br>From: “Peter Whyte G-Mail” <br>To: “Peter Whyte” <br>Subject: you gt me? <br>Date: Thu, 18 Apr 2013 18:59:32 +0100 <br>MIME-Version: 1.0 <br>Content-Type: multipart/alternative; <br> boundary=“----=_NextPart_000_0003_01CE3C66.DC4C1EF0” <br>X-Priority: 3 <br>X-MSMail-Priority: Normal <br>Importance: Normal <br>X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 <br>X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 <br>X-Antivirus: avast! (VPS 130418-0, 18/04/2013), Outbound message <br>X-Antivirus-Status: Clean <br> <br>----------------------------------------- <br> <br>And here is my RAW BIND <br> <br>==================================== <br> <br>$TTL 7200 <br>@ IN SOA ( <br> 1366390521 ; last update: 2013-04-19 16:55:21 UTC <br> 3600 ; refresh <br> 900 ; retry <br> 1209600 ; expire <br> 10800 ; 3 hours ttl <br> ) <br> IN NS <br> NS <br> NS <br> <br> MX 0 <br>@ IN A <br>@ TXT “v=spf1 ip4:IP_ADDRESS -all” <br>dkim._domainkey TXT v=DKIM1; p=IGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJfLEu9mhZOi8y4/yC6huETQOprEvX1Pf2sFw+xyiGFR/kTLKttzchQf64FlSbEdFEkF31rSboK4fIbW7kH7FDT77wBRsrjlDA1LEH7QKJWgnihMhFDoBdPsXqPII7Fm38GMOniKT0kD3z1TTbGxF+smShkIefIoOdED/3OAsCawIDAQAB <br> <br> <br>================================================ <br> <br>Any help on this matter would be great. It is the one thing I need.

There are a couple of next steps to take. <br> <br>First is check your MX resolution for the domain that you are sending email to, to ensure it is being routed to your virtual server. <br> <br>Next is check your maillog to see if that mail is actually hitting your MTA and perhaps being improperly processed there after.