1 (edited by redmailawesome 2016-08-16 17:28:48)

Topic: No address associated with hostname - tried a few things (hostname -f)

Newest iRedmail
Ubuntu 14.04
MySQL
Nginx
No pro (yet)

Incredibly excited about iRedmail !!
----------
Both my hosts and postfix hosts match and are:

127.0.0.1          localhost.localdomain localhost
my.public.ip.ip   mx.mydomain.com mail


I'm getting a "no address associated with hostname" error when I run hostname -f

I can (or could recently) send emails but I do not receive them.

I have a few questions:

1) Should that second line be my public ip? I tried with the server IP as well.
2) On my domains DNS  MX record should I make it "mx.mydomain.com." or "mail.mydomain.com."?
3) Could this be a port forwarding issue? (the email not arriving problem).

I've restarted postfix after all the changes that I've made


Awesome product, I'm excited to get it working and possibly upgrade to pro.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by redmailawesome 2016-08-16 17:51:46)

Re: No address associated with hostname - tried a few things (hostname -f)

I just made a quick change in hosts from

mx.mydomain.com mail

to

mx.mydomain.com mx

It seems like that fixed my host name problem. Good to know!
Now I'm not sure about the DNS MX record and port forwarding but I'll see if this fixed it.

Edit: doesn't look like it fixed it sad I checked doesn't look like grey listing either.

Any suggestions?

3

Re: No address associated with hostname - tried a few things (hostname -f)

redmailawesome wrote:

127.0.0.1          localhost.localdomain localhost
my.public.ip.ip   mx.mydomain.com mail

The "my.public.ip.ip" line is fine, but you have to add 'mx.mydomain.com mail' to the '127.0.0.1' line also. like this:

127.0.0.1 mx.mydomain.com mail localhost.localdomain localhost
redmailawesome wrote:

2) On my domains DNS  MX record should I make it "mx.mydomain.com." or "mail.mydomain.com."?

Use the one pointed to your mail server.

redmailawesome wrote:

3) Could this be a port forwarding issue? (the email not arriving problem).

It's more likely a DNS issue, you must setup correct DNS records first, otherwise other mail servers cannot connect to the real mail server.

4

Re: No address associated with hostname - tried a few things (hostname -f)

Thanks Zhang your support is amazing. I'm still having some issues so I'm going to buy a support ticket. I'm getting frustrated and it's probably something small or DNS still.