Can send, but cannot reveive email

I have been hunting around the forums and although there are ample threads that relate to issues with email transport, I have been unable to find a solution. For me, I am able to send emails, but when trying to receive emails, the email doesn't appear to exist and there are no errors in the mail.err log or anywhere else that I can see.

This is a fresh install of virtualmin, installed using the install.sh file yesterday. I have tried installing it on two fresh debian 8 servers and in both cases the same issue happens. The steps I am taking:

  • build a fresh server (my servers are hosted inside of vultr.com)
  • install virtualmin
  • set up a virtual site, for testing purposes I have only checked the "mail for domain enabled" feature. The only other thing I change from default is setting it to use the shared ipv6 address
  • set up the email user. I leave everything as default, only setting the username and password
  • from either roubdcube or the build-in usermin mail, I send an email to myself, it works no problem
  • i try and reply to the email, or send an email directly to the email account set up in virtualmin and it fails

I don't see any errors in mail.err, I do however see this at the time of the email being sent, within mail.log:

Nov 1 14:11:43 dev dovecot: imap-login: Login: user=<info.jadoku.com>, method=PLAIN, rip=::1, lip=::1, mpid=2609, secured, session=<vRqIc+xczgAAAAAAAAAAAAAAAAAAAAAB> Nov 1 14:11:43 dev dovecot: imap(info.jadoku.com): Disconnected: Logged out in=50 out=469

So nothing particularly useful...

A couple of additional notes:

  • when I look in the settings for a virtualmin > Edit Users > [select the above user] > Email Settings, it shows me that the inbox mail file exists in /home/jadoku.com/homes/info/Maildir. The "new mail received" time shows the creation time of the user, which I assume suggests that it's never registered an incoming mail?
  • there was a thread that suggested disabling and enabling the dovecot socket, doing that doesn't seem to have done anythign
  • config check is fine

Any suggestions on how I can sort this would be much appreciated.

Status: 
Active

Comments

Howdy -- it sounds as if you're not seeing any references to receiving emails in the logs.

We'd be happy to help troubleshoot that to determine what's causing that.

From the logs above, it looks like the domain where you're experiencing this issue is "jadoku.com", is that correct?

It looks like the A and MX records for that domain both point to the IP address "45.77.66.150", is that what you'd expect?

The problem I'm seeing is that I'm unable to access port 25 at that IP address.

What is the output of these two commands, this will show whether that port is running, and also your server's current firewall rules:

netstat -anlp | grep :25
iptables -L -n

Wow... well this is embarrassing! I spent pretty much the past 2 days trying to solve this problem, and it was literally because I hadn't opened up port 25 on the firewall! haha!

I've done that now and everything is working as it should be. Thank you for taking the time to look at this :)

Great, we're glad to hear it's working now!

Feel free to let us know if you have any additional questions.