Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Aug 26, 2009 5:03 pm 
Offline
Senior Newbie

Joined: Wed Aug 26, 2009 4:55 pm
Posts: 12
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!


Top
   
 Post subject:
PostPosted: Wed Aug 26, 2009 5:08 pm 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
Is Postfix running and listening on port 25 on the public interface?

Code:
$ telnet mazecore.com 25
Trying 97.107.136.144...
telnet: Unable to connect to remote host: Connection refused


If you're on Debian, Ubuntu or Gentoo, use /etc/init.d/postfix start (I don't remember the command line for other distros).


Top
   
 Post subject:
PostPosted: Wed Aug 26, 2009 5:13 pm 
Offline
Senior Newbie

Joined: Wed Aug 26, 2009 4:55 pm
Posts: 12
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?


Top
   
 Post subject:
PostPosted: Wed Aug 26, 2009 5:57 pm 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
Yes. SMTP is for both sending and receiving e-mails.


Top
   
 Post subject:
PostPosted: Wed Aug 26, 2009 6:28 pm 
Offline
Senior Newbie

Joined: Wed Aug 26, 2009 4:55 pm
Posts: 12
It's listening localhost only:
localhost:smtp

How can I change to *:smtp ?


Top
   
 Post subject:
PostPosted: Wed Aug 26, 2009 6:35 pm 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
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).


Last edited by NeonNero on Thu Aug 27, 2009 5:44 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu Aug 27, 2009 5:33 am 
Offline
Senior Newbie

Joined: Wed Aug 26, 2009 4:55 pm
Posts: 12
Thank you very much. It's receiving now!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group