LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-16-2011, 02:35 PM   #1
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Rep: Reputation: 0
PostFix MailServer + DynDNS + centOS


I have a centos mailserver setup with postfix with webmin. I can send email from the server but i cant receive email back. My ISP is not blocking port 25. what can i do so i can receive email. Also i heard that some mail providers block dynamic IPs what can i do so my email can go through to others like hotmail. Thank you

PS Ive been banging my head since the morning trying to figure this out and yes im a noob. So if possible please help me out.
 
Old 01-16-2011, 02:39 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Also i heard that some mail providers block dynamic IPs what can i do so my email can go through to others like hotmail. Thank you
Get a static IP

Do you have a domainname, and did you setup the MX records?

Kind regards
 
Old 01-16-2011, 02:46 PM   #3
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
yes i have a domain name and im able to set up mx records with dyndns. but i still cant receive email i think my postfix might not be configured correctly. I currently cant afford a static ip. But while i was waiting for a reply i did manage to find out about smtp relay using your isp or something. Can somebody share some insights on that. thank you
 
Old 01-16-2011, 02:51 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
i did manage to find out about smtp relay using your isp or something.
take a look at
http://www.postfix.org/BASIC_CONFIGURATION_README.html

What happens if you telnet to the server at port 25 from the server, and from the outside?
Did you forward port 25 to the server at the router?
Is the mailserver running?
Firewall?
What are the errormessages?

Kind regards

Last edited by repo; 01-16-2011 at 02:53 PM.
 
Old 01-16-2011, 02:54 PM   #5
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
I cant telnet telnet at all im thinking because it is blocked. but i did manage to ssh using port 25. Also for testing purposes i put my server on dmz so the router forwards all ports to the server. I also disabled the firewall just so i can exclude other options from giving problems.
 
Old 01-16-2011, 02:57 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
what is the output from
Code:
telnet 127.0.0.1 25
on the server

Kind regards
 
Old 01-16-2011, 03:03 PM   #7
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 cyberneticcore.home ESMTP Postfix
 
Old 01-16-2011, 03:05 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
So the mailserver is running and listening.
Try to do the same from the outside.

Kind regards
 
Old 01-16-2011, 03:07 PM   #9
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
trying 72.2**.2*.**...
Connected to **********.net,.
220 cyberneticcore.home ESMTP Postfix
 
Old 01-16-2011, 03:08 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What are the error messages when you sent a mail from the outside to your server?

Kind regards
 
Old 01-16-2011, 03:15 PM   #11
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
I didn't get any but i never received an email. i have mobileme When i send it to my mobileme email mobileme receives instantly. When i replay in mobile me to my mailserver i dont get email
 
Old 01-16-2011, 03:17 PM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
When you sent a mail, you should receive an error message when it's not delivered.
Any pointers in the logfiles from the server?

Kind regards
 
Old 01-16-2011, 03:46 PM   #13
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
i just tried installing another virtual server with ubuntu and ehcp the same problem

---------- Post added 01-16-11 at 04:46 PM ----------

how do i check logfiles
 
Old 01-16-2011, 03:48 PM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Look in the /var/log directory
In general it's maillog
Do you get errors when you sent mail from the outside to the server?

Kind regards
 
Old 01-16-2011, 03:52 PM   #15
mosesaro
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
no i have not received any errors yet on the outside server
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem getting ddclient (dyndns) to work in CentOS mia_tech Linux - General 4 01-22-2011 06:16 PM
Postfix: cant send email from my Windows pc using my postfix mailserver elvisious Linux - Software 8 08-01-2008 07:01 PM
subdomain and mailserver with dyndns JonathonReinhart Linux - Software 0 12-23-2005 01:49 AM
anybody knows which is better mailserver ? Sendmail OR Postfix ? gajaykrishnan Programming 1 08-03-2005 03:38 AM
need help with Postfix mailserver Lleb_KCir Linux - Software 1 03-31-2004 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration