Only send e-mail with iRedMail on Ubuntu

April 4, 2013 8.3k views
I use this tutorial https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-ubuntu-12-10-x64 , 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?
9 Answers
There are a couple of next steps to take.

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.

Next is check your maillog to see if that mail is actually hitting your MTA and perhaps being improperly processed there after.
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 oddsodz.com to see.

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.

-----Message will be retried for 2 more day(s)

Technical details of temporary failure:
DNS Error: Domain name not found

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=x-received:message-id:from:to:subject:date:mime-version
:content-type:x-priority:x-msmail-priority:importance:x-mailer
:x-mimeole:x-antivirus:x-antivirus-status;
bh=BgS1mutoywoNJcgZTtEsi9VDuO1lxW7juUM9djGhAPw=;
b=pV6PaZyYg9tCGXtDv3xheEzCMS2iH0rfzYmEYHgiJJ0lCnQP2RvpKfyUJMV1ieF/WT
PYlEWPSgzhd5zIyRkFOVRZxk1bLPVqJ6QAQP/dpaxPjbjuJqSH1qFi7X+/Oyt5UFvE5t
ClVIwQDt6CNgLsD4isuhXaThp8P47LgClRK3X9crM5hGU+8BgpVGndRve5UOe3uywrUU
j/lbR7nGmPvNCL2oViLs4B5/FzR0m0/Do0mI2TPMfFpWqmQ6kDO9Np2z4kStnRnFrfak
jP9oIWPWf9xq3Pr7ue+vppOeBYzQlwH4PWUTWNvezXOwJNjwfHPtQ2gFnb8DS5pi+drK
cl5g==
X-Received: by 10.194.122.7 with SMTP id lo7mr20535913wjb.48.1366307976561;
Thu, 18 Apr 2013 10:59:36 -0700 (PDT)
Return-Path:
Received: from MySuperAMD (cpc9-kemp7-2-0-cust786.9-2.cable.virginmedia.com. [82.29.139.19])
by mx.google.com with ESMTPS id du2sm32864956wib.0.2013.04.18.10.59.34
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 18 Apr 2013 10:59:35 -0700 (PDT)
Message-ID:
From: "Peter Whyte G-Mail"
To: "Peter Whyte"
Subject: you gt me?
Date: Thu, 18 Apr 2013 18:59:32 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0003_01CE3C66.DC4C1EF0"
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 15.4.3555.308
X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308
X-Antivirus: avast! (VPS 130418-0, 18/04/2013), Outbound message
X-Antivirus-Status: Clean

-----------------------------------------

And here is my RAW BIND

====================================

$TTL 7200
@ IN SOA ns1.digitalocean.com. hostmaster.oddsodz.com. (
1366390521 ; last update: 2013-04-19 16:55:21 UTC
3600 ; refresh
900 ; retry
1209600 ; expire
10800 ; 3 hours ttl
)
IN NS ns1.digitalocean.com.
NS ns2.digitalocean.com.
NS ns3.digitalocean.com.

MX 0 oddsodz.com
@ IN A 198.199.75.193
@ TXT "v=spf1 ip4:IP_ADDRESS -all"
dkim._domainkey TXT v=DKIM1; p=IGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJfLEu9mhZOi8y4/yC6huETQOprEvX1Pf2sFw+xyiGFR/kTLKttzchQf64FlSbEdFEkF31rSboK4fIbW7kH7FDT77wBRsrjlDA1LEH7QKJWgnihMhFDoBdPsXqPII7Fm38GMOniKT0kD3z1TTbGxF+smShkIefIoOdED/3OAsCawIDAQAB


================================================

Any help on this matter would be great. It is the one thing I need.

Hi Peter,

I'm author of iRedMail project, Zhang Huangbin.

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.

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.

P.S. it's better to post iRedMail related issues/questions in iRedMail online support forum: http://www.iredmail.org/forum/
> but I can only send e-mail and I receive only local e-mail

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.
I have same error as raiyu. My dns settings see on this screenshot: http://d.pr/i/wvIi
Sorry, I don't know much about mx records and dns settings, so where I do mistake
I'm posting this just because someone might read this in the future.
I was facing the same problem I only could send email but I couldn't receive emails.
The soloution is very simple! Follow this steps:
1. Log in to your Digital Ocean account.
2. Frol the list on the left side choose DNS.
3. Navigate on your preffered domain name and click it.
4. Push Add Record button.
5. Select an MX.
6. Where it says enter hostname wright mail.yourdomain.com. (don't forget the dot in the end!)
7. Where it says enter priority type 10

That's it!! wait for few minutes and your email is working!!!
@ Viktor,
Thanks for reply and clear instructions. Question remaining for me is:
does this mx record: "mail.yourdomain.com" need to be the same as the FQDN of the actual server (or VPS in this case)?
Mine says: server.yourdomain.com whereas mx and other records point to: mail.yourdomain.com, all on same IP. Would this cause redmail not receiving mai??
Thanks for answers!
Yes, it should point to your droplet's hostname/PTR record.
Have another answer? Share your knowledge.