I have installed iRedMail without problems. I can’t send and recieve mails.

My DNS configuration is:

When trying to send a mail from gmail:

Delivery to the following recipient failed permanently:


Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain wameo.pl by aspmx.l.google.com. [2607:f8b0:4003:c08::1a].

The error that the other server returned was:
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient’s email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 b6si1862986oby.16 - gsmtp

—– Original message —–

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
MIME-Version: 1.0
X-Received: by with SMTP id lx8mr14151934oeb.15.1428253389915;
Sun, 05 Apr 2015 10:03:09 -0700 (PDT)
Received: by with HTTP; Sun, 5 Apr 2015 10:03:09 -0700 (PDT)
Date: Sun, 5 Apr 2015 19:03:09 +0200
Message-ID: <CAPqDFauUdtNpOK7autBzO8dAbqxdiJuQmvhZ0GVPEaozvRYp=w@mail.gmail.com>

When trying to send mail to a different server:

Diagnostic-Code: X-Postfix; connect to[]:10024: Connection

1 comment
  • Maybe there is a problem with my /etc/hosts file?

    root@main:~# cat /etc/hosts   localhost.localdomain   localhost   main.wameo.pl main  main.wameo.pl main

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.

Submit an Answer
3 answers

It looks like you have Gmail’s MX records on your domain name. Do you have a Google Apps account? If not, you should remove the MX records and keep only the ones that point to your iRedMail droplet.

  • It didn’t solved my problem. I made changes in my DNS records and now when im sending an email from gmail to my server it shows:

    Final-Recipient: rfc822; kontakt@wameo.pl
    Original-Recipient: rfc822;kontakt@wameo.pl
    Action: failed
    Status: 4.4.1
    Diagnostic-Code: X-Postfix; connect to[]:10024: Connection