Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-29-2005, 06:05 AM
|
#1
|
Member
Registered: Jun 2005
Posts: 37
Rep:
|
sendmail server unable to receive external mail
Hi,
I've set up sendmail server with the domain name, say
linux4u.com.
and I edit the sendmail.mc file
dnl # define(`UUCP_MAILER_MAX', `2000000')dnl
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl # FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`linux4u.com')dnl
MASQUERADE_AS(`linux4u.com')dnl
and "m4"
I can receive mail from root to user@linux4u.com.
and send mail to my external mailbox e.g gmail.
However, I cannot receive email sending from external mailbox.
e.g. gmail to user@linux4u.com
Why? kindly advise.
|
|
|
06-29-2005, 11:01 AM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
It's a long while since I used sendmail but:
The address you are using i.e smtp.linux4u.com resolves to your external ip address?
You have port 25 open in your firewall ?
Your firewall is routing traffic sent to port 25 to the local address 127.0.0.1 as it looks as though sendmail is only listening on 127.0.0.1 and not your external ip address.
|
|
|
06-29-2005, 08:36 PM
|
#3
|
Member
Registered: Jun 2005
Posts: 37
Original Poster
Rep:
|
Hi,
Thanks you.
yap... you are right, this is because of firewall protection.
However, I'm no the firewall guy. Someone have "force" the ip address
to point to correct one.... this is what I heard.
Please correct me if I wrong.
I expected, the mail should able to deliver .... and take time to route.
As until now I didn't receive any "Mail Delivery Subsystem" from
mailer-daemon@gmail.com.
Thank you again.
Regards,
|
|
|
06-29-2005, 08:49 PM
|
#4
|
Member
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825
Rep:
|
it depends on how your mail server connects to the internet. in most cases, it will be on a local network behind a firewall and connect to the outside world through a gateway (in my case a simple linksys router). your external IP address will then point to that gateway, and anyone requesting to open a connection on port 25 with your IP address will be talking to the gateway and not your mail server (which is actually 192.169.1.120 or whatever). so you need to set up port forwarding for port 25. in my case it was as simple as logging into my router and entering a couple numbers. it depends on how your network is set up.
|
|
|
06-29-2005, 09:49 PM
|
#5
|
Member
Registered: Jun 2005
Posts: 37
Original Poster
Rep:
|
Hi,
Thanks again.
Your explanation always right. There have a linksys router.
And someone have been configure it. A bundle of external mails
coming to my account, which send by yesterday.
However, I no sure how to do it...willing to learn it.
And I check from the linux machince with "nslookup" for user@acha.com
example:
nslookup acha.com
Non-authoritative answer:
Name: acha.com
Address: 202.71.138.147
It seem the domain name able to find.
rgds,
|
|
|
06-30-2005, 04:12 PM
|
#6
|
Member
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825
Rep:
|
ok, so you need to know 2 things. the internal ip addresses of your gateway and your mail server. routers are normally 192.168.1.1, so that should be easy. open up a browser like firefox or IE explorer and put that in the url bar and hit enter. it should ask you for a user name and password, which you should enter. then you want to look for a tab called "forwarding". on my router i first have to click on "advanced" and then "forwarding". then i tell it to forward port 25 to 192.168.1.65, which is my mail server. save the changes and exit. you should be all set.
|
|
|
06-30-2005, 10:56 PM
|
#7
|
Member
Registered: Jun 2005
Posts: 37
Original Poster
Rep:
|
Hi,
Thanks you my friend
I manage to do it.
|
|
|
07-01-2005, 03:15 AM
|
#8
|
Member
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825
Rep:
|
|
|
|
All times are GMT -5. The time now is 03:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|