LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mail server is unable to receive mails from gmail and yahoo (https://www.linuxquestions.org/questions/linux-server-73/mail-server-is-unable-to-receive-mails-from-gmail-and-yahoo-906515/)

deep27ak 10-05-2011 05:29 AM

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...

repo 10-05-2011 05:36 AM

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

deep27ak 10-05-2011 05:45 AM

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??

TenTenths 10-05-2011 06:01 AM

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.

deep27ak 10-05-2011 06:11 AM

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?

repo 10-05-2011 06:15 AM

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

TenTenths 10-05-2011 06:17 AM

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.

bryanmuts2000 10-05-2011 06:43 AM

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.

deep27ak 10-05-2011 06:52 AM

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

bryanmuts2000 10-05-2011 09:20 AM

I am no expert but I think TenTenths advice should work.

repo 10-05-2011 09:31 AM

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

bryanmuts2000 10-05-2011 09:38 AM

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

Repo forgot to say this one won't work.

lithos 10-05-2011 09:47 AM

Quote:

Originally Posted by deep27ak (Post 4490528)
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.

deepak_message 10-06-2011 01:56 PM

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,

deep27ak 10-06-2011 10:56 PM

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


All times are GMT -5. The time now is 03:05 PM.