For starters my first post over here so hello everyone :).
I got a big problem with emails. My domain is hosted at godaddy.com and I unfortunately have to use their dns manager for the time being. I got the site to work with no problem, but I have problems setting up the emails to work. So… Was wondering if anybody could let me know what to set up in godaddy’s dns manager to get it configured properly with virtualmin? I have tried to point dns to domain.com and change mail cname to mail.domain.com but this has not been helping.
Thanks for getting back to me. I try to explain my problem bit more clearly :). What I did in dns manager I pointed my domain to my ip, I also pointed cname mail to mail.domain.com and mx records to domain.com. Now, when I try to send email to that address it just disappears, I don’t get any undelivered message about it, it just disappears. I installed squirrelmail and tried to send email with it, that was delivered but if I try to answer to that email again, the message just disappears.
Whenever you send those emails to your server – take a peek in the email logs in /var/log/maillog or /var/log/mail.log… do you see the connections from the sending mail servers in there? Are there any errors related to the mail delivery?
Nope, nothing. No connections from the sending mail servers or any errors at all, only logs from my outlook’s connecting to check the mail, nothing else.
So I take it that it has to do with port 25 like you mentioned indeed? Is there any options in virtualmin I could check / change the port for this or something else how I could track this down? Have to admit I’m out of ideas myself as I have no experience to sort this kind of things out
I’m referring to where your dedicated server resides.
That “Connection Refused” message suggests that something is preventing Gmail from accessing email on your server.
In order for email to work, it has to be on port 25… so if the ISP hosting your server blocks that, it would prevent incoming email from working there.
I suspect the issue is related to your ISP.
However, you can verify that Postfix is listening for connections by running this command:
netstat -an | grep :25
And you can verify that your server doesn’t have a firewall blocking connections by running this command:
I checked both. iptables gives me
ACCEPT tcp – 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
With netstat i found this related to port 25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
So… I think everything should be working and port open on my server at least?
But, when I try to telnet domain.com 25 I get connection refused so it indeed looks like my ISP could be blocking it. I tried to go through their site to find any info but couldn’t find any. Can I change the port into another one somehow?
The server name shouldn’t be the cause of the problem you’re seeing… it looks like Postfix isn’t listening on all interfaces, which would prevent anyone from accessing it on port 25.
I don’t see anything unusual in your config output though.
Now that you’ve restarted Postfix, can you run this command again: