LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-30-2009, 05:15 PM   #1
kingkashif
Member
 
Registered: May 2009
Posts: 94

Rep: Reputation: 16
Dovecot IMAP can not receive email. Urgent help please :(


Hello there,

Well i have setup my new server with sendmail and dovecot.

I am able to send messages to outside internet e.g hotmail,yahoo etc but when i reply to my message there at yahoo says "message sent" but here on my server i don't receive any messages.

In dovecot settings..

protocols = imap imaps
disable_plaintext_auth = no
maildir_copy_with_hardlinks = yes

i can do
telnet domain.com 143 successfully from outside LAN

i only can't do
telnet domain.com 25 from outside LAN
But i guess 25 is for sending messages. Receiving messages are done by 143 which is open and working.

i have also included my domain name at /etc/mail/local-host-names

I am using sendmail as an mta.

I don't know what is the problem. I swear i have got a headache because of this.
Please help me guys.
 
Old 07-30-2009, 06:28 PM   #2
kingkashif
Member
 
Registered: May 2009
Posts: 94

Original Poster
Rep: Reputation: 16
Anyone ?
 
Old 07-30-2009, 06:32 PM   #3
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
First, do not bump your message.

Second, there isn't enough information to troubleshoot this in your request. It could be anything from a firewall, to a DNS issue. It could be that your MX record is sending the mail to a completely different IP.

Can you email out?
If you ping mail.yourdomain.com, what IP does it resolve to?
Are you behind a router? Firewall?

These are the places I would start.
 
Old 07-30-2009, 06:50 PM   #4
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
In order for your mail server to receive mail from outside, you do need TCP port 25 open (I'm assuming here that your domain's primary MX record points to this server). IMAP, POP, etc. are just for fetching mail that has already been delivered. I agree that you need to give more information for us to help in any case.
 
Old 07-31-2009, 02:24 AM   #5
kingkashif
Member
 
Registered: May 2009
Posts: 94

Original Poster
Rep: Reputation: 16
Sorry for insufficient information.

the MX record of my domain resolves correctly to server's
ip.

I have turned off firewall completely.
I have set SELinux to permissive mode.


Yeah i am behind a router. But will that be causing problem ?? Because when i "telnet domain.com 143" then
it is done successfully.

You really think tcp port 25 helps in receiving emails ?
Because i can send emails successfully to outside world.
 
Old 07-31-2009, 04:25 AM   #6
kingkashif
Member
 
Registered: May 2009
Posts: 94

Original Poster
Rep: Reputation: 16
Ok guys the problem has been solved.

I asked my teacher.(the one who has taught me linux).

http://www.linkedin.com/in/sohaileo <-- This is him
He has sloved me this problem.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


############### This is his reply #####################

All emails are sent or received on a server is through port 25. Imap or POP is developed to retrieve emails from server to client. For example Server A and Server B should have port 25 to send and recieved email between them.

To retrieve email from Server A or Server B, let suppose you use webmail or outlook .... for that imap or pop should be running because it authenticates and retrieve emails for the particular user.

First do this

# netstat -antp
if sendmail is listening on only 127.0.0.1 then you need
to tell senmail to listen on your Ethernet ip aswell
by adding this line to /etc/mail/sendmail.mc

DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.3,Name=MTA')dnl
where Addr equals to ip of your Enternet.

After this you'll be able to "telnet domain.com 25" if your router is not blocking access to port 25.

Once this is done. You're good to go. [and i was ]
else google.com for more knowledge.
#########################################################


So everyone this is for your knowledge if you come across
this same problem.

If you've any question to me then http://kingkashif.com

Last edited by kingkashif; 07-31-2009 at 04:31 AM.
 
  


Reply



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
Postfix-dovecot cannot receive mail coad Linux - Server 3 06-03-2009 11:59 PM
Postfix Dovecot send receive issues areamike Linux - Server 9 04-09-2009 07:19 AM
Unable to receive mails through dovecot farrukhndm Linux - Server 2 01-19-2009 02:01 AM
Difference between Dovecot IMAP and Cyrus IMAP sever ? rajdeepbhattacharya Linux - Newbie 3 06-18-2008 03:20 AM
IMAP - Local network problem with email receive lanczer Linux - Security 1 02-22-2006 07:41 PM

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

All times are GMT -5. The time now is 11:23 PM.

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