Question

Open smtp, imap and pop3 through iptables

  • Posted September 17, 2013

I have zpanel installed on ubuntu and i have set up iptables as DO instructed. I can send emails but not receive, so i believe it is down to a port not being open in iptables.

Can someone please tell me how to open SMTP, POP3 and IMAP in iptables?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Port 25 isn’t open on your droplet – did you install a firewall/do you have an MTA running?

Had look round and cant find the logs

@kamal Just tried it now and nope nothing. I have tried two email address on the same domain and nothing. <br> <br>Where would i find those logs?

@cameron: Try now, does it work? Also check zPanel’s mail logs and see if there are any issues

I know i am maybe rushing things. I have left it one hour and it still appears not to be receiving emails in webmail ? Could it be the pop3 or imap port also?

Thank you. Hopefully it will work :) <br>

The MX records only handle incoming mail so I believe that’s your issue.

Thank you. I have now done that i shall wait a couple hours. <br> <br>It was actually that i can send emails through webmail but i am not receiving them. <br> <br>Would the MX record affect incoming records too?

Add an A record: <br> <br><pre>Name: mail <br>Hostname/Value: 1.2.3.4 (your droplet’s IP address)</pre> <br>Then add an MX record: <br> <br><pre>Priority: 5 <br>Hostname: mail</pre> <br> <br>Wait a couple of hours until the DNS recrods propagate and try sending an email again.

I have been doing research and i think i need to set up MX records? <br>Can someone please tell me how to and what i should put in as mx records for my zpanel ?