LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-24-2005, 07:20 PM   #1
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Rep: Reputation: 0
Can't retrieve email


Does anyone know how to retrieve incoming email from the outside (internet)?
I CAN send and retrieve email in local without any problem. It also works fine when I try to send to the outside but I can NOT retrieve any new incoming email from ppl of the Internet. For some reason, I don't get any of them...


I'm using sendmail with these options in my sendmail.mc :

define(`SMART_HOST',`smtp.my_isp.com')
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')

Any ideas?
 
Old 07-24-2005, 08:48 PM   #2
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
I am no expert and my lead you astray with this, but the address is pointing to your loop back device not your ISP orNIC. I would try you ISP's or mail servers ip address in there. Just a guess though
 
Old 07-25-2005, 09:04 AM   #3
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I've tried that but it doesn't change anything. I put the ip address of my isp instead of loopback but I still got the same problem.

Does anyone know how to retrieve external emails pointing to your own domain name??
 
Old 07-25-2005, 09:13 AM   #4
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
You need an mx entry in a dns server. Are you in control of the dns server for your domain or is it your isp? If it's your isp you will have to ask them to setup the dns records. (Also, aikidoist72 is right, you need to make your server listen on the external interface, not loopback.)
 
Old 07-25-2005, 09:57 AM   #5
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I'm using a free dynamic DNS ZoneEdit
In my setup I got the line:

MailServer(MX)

mail.mydomain.com -> mydomain.com
 
Old 07-25-2005, 10:12 AM   #6
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Get a computer outside of your network. (Outside of your isp's network preferably.) Check what dig your.domain.com mx returns. (Should be your current IP). See if you can telnet to port 25 on that IP. If that works try sending a mail over that telnet session and watch your logs. If that works try an email client on the remote host.
 
Old 07-25-2005, 10:51 AM   #7
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I can't telnet mydomain.com 25 while using an outside connection

Here's the result when I typed the dig command

;; QUESTION SECTION:
;mydomain.com. IN A

;; ANSWER SECTION:
mydomain.com. 300 IN A 142.12.12.1
;; AUTHORITY SECTION:
mydomain.com. 7200 IN NS ns10.zoneedit.com.
mydomain.com. 7200 IN NS ns6.zoneedit.com.
 
Old 07-25-2005, 11:00 AM   #8
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
So, is that your ip that dig returns?

If you can't connect to port 25 and you are sure it's not because of the firewall settings on your server, then it's probably your isp blocking port 25 to not have their user's setting up mail servers.
 
Old 07-25-2005, 11:09 AM   #9
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I'm using my isp smtp server to send out email and it works fine.

my problem is I cannot receive any external emails from the outside users send to me using my domain name
 
Old 07-25-2005, 11:38 AM   #10
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by Bond007
I'm using my isp smtp server to send out email and it works fine.

my problem is I cannot receive any external emails from the outside users send to me using my domain name
uhmm, yeah, you said that in the first post already.

By receiving you mean having a remote mail server directly contact your server, right? Not receiving as in getting the mail from a pop or imap server. I've been assuming you mean the former in which case a remote server needs to contact you on port 25. If that doesn't work it's the first thing you need to straighten out.
 
Old 07-25-2005, 02:06 PM   #11
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah. Let's say I run my own mail server which is sendmail with a domain name

ex: me@mydomain.com
I want to send out email to me@yahoo.com It works fine cuz I'm using my isp smtp server
However, if I try to do the opposite which is from : me@yahoo.com send to me@mydomain.com
it doesn't work. I can't receive any incoming email.

here's what I got from yahoo.com:

Hi. This is the qmail-send program at yahoo.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<me@mydomain.com>:
Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
I'm not going to try again; this message has been in the queue too
long.


Is that possible my isp blocks both port 110 and 25 not letting me run own mail server??
 
Old 07-25-2005, 02:26 PM   #12
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by Bond007
<me@mydomain.com>:
Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
I'm not going to try again; this message has been in the queue too
long.
That's because the yahoo server cannot contact port 25 on mail.mydomain.com.

Quote:
Is that possible my isp blocks both port 110 and 25 not letting me run own mail server??
port 110 (pop3) doen't come into play here. Two mail servers talk on port 25. And yes, it's very much possible that your isp blocks port 25. If you have a normal cable or dsl connection you are paying for getting connected to the outside world. It's not a hosting contract. Most ISPs even have it in their terms of services that customers may not run a server off their conection.
 
Old 07-25-2005, 02:55 PM   #13
Bond007
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Original Poster
Rep: Reputation: 0
In case my isp blocks port 25. Is there any way to run your own mailserver forwarding to another port?


Quote:
Originally posted by demian
That's because the yahoo server cannot contact port 25 on mail.mydomain.com.


port 110 (pop3) doen't come into play here. Two mail servers talk on port 25. And yes, it's very much possible that your isp blocks port 25. If you have a normal cable or dsl connection you are paying for getting connected to the outside world. It's not a hosting contract. Most ISPs even have it in their terms of services that customers may not run a server off their conection.
 
Old 07-25-2005, 03:17 PM   #14
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
If you run an smtp server on a non-standard port remote servers will not be able to connect. The only way around this is to have a computer outside of your isp's network accepting the mail for your domain on port 25 and forwarding it to whatever port you can use. There are sites out there that offer such a service. However, you will breach your contract with your isp by doing this. They block this port for a reason.

VPS hosting (and even dedicated servers) have become rather cheap. Maybe that's an option to consider.
 
Old 11-10-2005, 03:26 PM   #15
RLIN
LQ Newbie
 
Registered: Oct 2004
Posts: 19

Rep: Reputation: 0
just a thought

Probably firewall stops you from getting any mail outside of your machine.

If you have KDE or GNOME,
System setting -> Security Level ->trusted services ->check Mail (SMTP)

This solved my problem.
 
  


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
how to retrieve a sent e-mail? kpachopoulos General 3 03-27-2006 03:26 PM
How to retrieve bytes sent AzidStar Linux - Networking 5 03-01-2005 04:25 AM
Retrieve internet email using Thunderbird? GT_Onizuka Linux - Software 1 06-29-2004 12:24 AM
How to retrieve email from cron scripts ? wallywood Linux - General 1 03-05-2004 04:34 PM
How to retrieve MX record... karthikavk Linux - Newbie 1 12-06-2001 08:51 PM


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