LinuxQuestions.org
Review your favorite Linux distribution.
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 10-05-2011, 05:29 AM   #1
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
mail server is unable to receive mails from gmail and yahoo


I have created a DNS server with a domain name example.com

and also a mail server with sendmail and dovecot

well i am able to send mails from my linux machines to gmail and yahoo but when I try to do the same from my gmail account, it returns back with a error.



Is it because the domain name which I am using is not registered on internet?

All I want is when I send mails from my gmail account I should receive mails on my linux machine with mail server id deepak@example.com


Any kind of help will be highly appreciated...
 
Old 10-05-2011, 05:36 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Is it because the domain name which I am using is not registered on internet?
How can gmail know where to sent the mail to?

Kind regards
 
Old 10-05-2011, 05:45 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Well the smtp server I am using is smtp.gmail.com

So i guess this is the reason I am able to send mails to gmail or other domains


isn't there any option where we can use relative imap server of gmail to recieve mails from gmail??
 
Old 10-05-2011, 06:01 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,863

Rep: Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151
You could enable POP3 on your GMAIL account and then use a scheduled fetchmail on your server to retrieve e-mail messages to your linux machine.
 
Old 10-05-2011, 06:11 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Thanks for the reply TenTenths,

how am I going to enable pop3 in my gmail account? I didn't get you

and can you help me with the configuration of fetchmail?

but are you sure it won't return with the same error of domain names?
as I said my domain name is example.com which is not registered and a self created domain name.

As I have worked with dovecot and postfix for pop3 and imap but they don't seem to be working

isn't there any way to use imap server of gmail.com?
 
Old 10-05-2011, 06:15 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
as I said my domain name is example.com which is not registered and a self created domain name.
So you want to sent email from gmail/yahoo to a domain name that doesn't exist?
How do you think this could work?

Kind regards
 
Old 10-05-2011, 06:17 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,863

Rep: Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151Reputation: 1151
In your GMAIL account click on the options (It's the gear-wheel in the top right corner) and select Mail Settings. There a tab "Forwarding and POP/IMAP" that will let you set your account up for access with these protocols from anywhere on the internet. There are also links with more information on those pages that show how to configure common clients to access through POP/IMAP

You'll also want to check your incoming mail server on your linux machine so that it knows which local mailbox to route the incoming mail into.

Then go find a nice fetchmail tutorial and configure your linux server accordingly.
 
Old 10-05-2011, 06:43 AM   #8
bryanmuts2000
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
What Repo is saying is you CAN NOT send mail to an unregistered domain.

What Tentenths is suggesting you dom is use fetchmail to get e-mail from your gmail POP/IMAP enabled account. Effectively this means 1. your domain example.com is not receiving any e-mail and will not until registered. 2. The e-mail you will be receiving will simply be e-mails in your gmail account (on registered gmail domain) be transfered to your server.
 
Old 10-05-2011, 06:52 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Well thanks repo, bryanmuts2000 and tentenths for replying:

I just wanted some suggestion whether this is possible or not since if I am able to send mails through an unregistered domain using smtp.gmail.com


then I thought there might be any option to use imap server of gmail to receive mails.

Well I guess my search continues
 
Old 10-05-2011, 09:20 AM   #10
bryanmuts2000
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
I am no expert but I think TenTenths advice should work.
 
Old 10-05-2011, 09:31 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Well I guess my search continues
What do you want?
Do you want to sent mail to deepak@example.com from your gmail/yahoo account?
Or do you want to download the mails on your gmail/yahoo account to your computer?
If you want to use the imap from gmail
https://mail.google.com/support/bin/...y?answer=75725

Kind regards

Last edited by repo; 10-05-2011 at 09:32 AM.
 
Old 10-05-2011, 09:38 AM   #12
bryanmuts2000
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
"Do you want to sent mail to deepak@example.com from your gmail/yahoo account?"

Repo forgot to say this one won't work.
 
Old 10-05-2011, 09:47 AM   #13
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by deep27ak View Post
I just wanted some suggestion whether this is possible or not since if I am able to send mails through an unregistered domain using smtp.gmail.com


then I thought there might be any option to use imap server of gmail to receive mails.

Well I guess my search continues
Your search may have ended because like "bryanmuts2000" and all are saying:
Quote:
What Repo is saying is you CAN NOT send mail to an unregistered domain.
It doesn't matter you can send email from your server to gmail. The domain gmail.com IS REGISTERED and known in the internet DNS servers, yours example.com IS NOT, so gmail does not know where to find your server to deliver your email.
 
Old 10-06-2011, 01:56 PM   #14
deepak_message
Member
 
Registered: Oct 2007
Posts: 172

Rep: Reputation: 17
The first thing is , your domain has not name server designed. and second is not yet registered.
so, while sending mail from internet(gmail, yahoo, etc), the mail domain should be available in the internet zone.
when you are sending mail from your unregistered domain to gmail , the mail received in the gmail inbox because you machine connected with internet and gmail name server is available in interne.

I hope you understand. please reply if any concern .

thanks,
 
Old 10-06-2011, 10:56 PM   #15
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
thanks to all guys


This is what I wanted suggestions...

well even I know that when a domain is not registered over internet then practically I am not supposed to receive mails on my server but that is what I was trying to find out is there any chance or not.

Well thank you all for your suggestions....but I am working on something related to this and ill surely update if I reach to some positive conclusions

Thanks again
 
  


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
Unable to receive mails sent by Nagios on Remedy Server ritika.laddha Linux - Server 5 10-30-2009 11:45 PM
ASUS EEE Laptop: Unable to get into either Yahoo! Mail or Gmail technonot Linux - Newbie 4 02-26-2009 10:17 AM
Ubuntu server with postfix. My mail goes to Spam in Gmail and Yahoo Mail. Ideeas? bob808 Linux - Server 4 02-07-2009 04:11 PM
Mail server can't receive mails satimis Linux - Server 5 01-19-2007 03:45 AM
mail server: just send mails out, but not receive hamish Linux - Software 4 02-27-2005 11:06 AM

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

All times are GMT -5. The time now is 05:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration