| Linode Forum https://forum.linode.com/ |
|
| Do not receive emails from outside https://forum.linode.com/viewtopic.php?f=11&t=4555 |
Page 1 of 1 |
| Author: | snowhall [ Wed Aug 26, 2009 5:03 pm ] |
| Post subject: | Do not receive emails from outside |
Hello, I have problem with email server. I'm ok with web server but new to email server. I have installed Postfix + Cyrus-imapd and SquirrelMail Have created one email account. I send email from PHP script to support@mazecore.com (same server) and receive this email in SquirrelMail and can download to my Mail client. But when I send email from google account or other email server it won't arrive to my server. I added MX record to this domain and opened all ports. Record type: MX Record Host: mazecore.com Record Answer: mazecore.com. (with dot at end) TTL: 300 Priority (MX only): 100 Any ideas on what's wrong? Thanks! |
|
| Author: | NeonNero [ Wed Aug 26, 2009 5:08 pm ] |
| Post subject: | |
Is Postfix running and listening on port 25 on the public interface? Code: $ telnet mazecore.com 25 If you're on Debian, Ubuntu or Gentoo, use /etc/init.d/postfix start (I don't remember the command line for other distros). |
|
| Author: | snowhall [ Wed Aug 26, 2009 5:13 pm ] |
| Post subject: | |
Postfix is running. I'm sending emails and can connect to port 25 from my server (because it's allow to this IP) It's open only for selected IP address because 25 is only for sending email. Should I open this port to everyone? |
|
| Author: | saman007uk [ Wed Aug 26, 2009 5:57 pm ] |
| Post subject: | |
Yes. SMTP is for both sending and receiving e-mails. |
|
| Author: | snowhall [ Wed Aug 26, 2009 6:28 pm ] |
| Post subject: | |
It's listening localhost only: localhost:smtp How can I change to *:smtp ? |
|
| Author: | NeonNero [ Wed Aug 26, 2009 6:35 pm ] |
| Post subject: | |
snowhall wrote: Postfix is running. I'm sending emails and can connect to port 25 from my server (because it's allow to this IP) It's open only for selected IP address because 25 is only for sending email. Should I open this port to everyone? Yes, because Gmail is trying to send an e-mail to your server, and it's not on that select list of IP addresses you have. Keep port 25 open for all, but restrict your configuration so you don't end up becoming an open relay. The permit_mynetworks and reject_unauth_destination parameters for the configuration option smtpd_recipient_restrictions do the trick for you (they are usually the default for Postfix, as I gather). The mynetworks option can then be used to just allow certain IP addresses and/or network segments to send e-mail to anyone via your server. snowhall wrote: It's listening localhost only:
localhost:smtp How can I change to *:smtp ? Do you have the smtp_bind_address option set to anything in main.cf? If you do, set it to blank or 0.0.0.0 to let Postfix use all interfaces/IPs on your server (localhost, public IP(s) and, if used, private IP). |
|
| Author: | snowhall [ Thu Aug 27, 2009 5:33 am ] |
| Post subject: | |
Thank you very much. It's receiving now! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|