LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2004, 01:03 PM   #1
anigug
LQ Newbie
 
Registered: Aug 2004
Location: buenos aires/argentina
Distribution: UnitedLinux
Posts: 2

Rep: Reputation: 0
I CAN NOT SEND MAIL to users in the internet from the windows box.


Dear GURUS:

The Problem:
I CAN NOT SEND MAIL to users in the internet from the windows box.

Current Configuration:

LAN composed of one Linux machine, one Unix box and one Windows box.

Linux server with the following services:
Squid server (OK)
Samba server (OK)
MAIL server (not so good already ...)(postfix and fetchmail)
Apache server (OK)
Local DNS server (seems to be OK ... more or less)

Unix box with some services:
MySQL server (OK)
http server (OK)
... other stuff (not important)

Windows box, no service of course.
I need that the user can browse web (local and external) and be capable of mail transactions,
both local and external using
Explorer and (...) Outlook (sorry, but I'm not alone in the LAN)

Conectivity and general idea of the installation:

A little weird, I recognize, but this is it:

LAN has a hub
(network: 192.168.10) (and domain is mylab.ani -not exactly an FQDN, but something in the like)
(each machine has only one card and one valid IP number, of course)

To the internet, the Linux machine has a modem. Dial-up manually (for the moment, by cron in the future) The connection is performed against a "free" service. I'm not registered there,
so it isn't my ISP. Instead, that service let me go to where my "ISP" is (a friend who generously gives me DNS for my web page www dot mydomain dot com dot ar
and my mail service which is mail dot mydomain dot com dot ar )

Once there, I can retrieve my mail, which is stored at my Linux, and from there, the idea is to deliver mail in my LAN.
The Linux ppp service stores the DNS of the free service thanks to wvdial (/etc/ppp)
And works fine.(I don't (yet) test dial-in. Hope not to find problems there.)

At the Windows machine I am able (currently) to:
* navigate the internet (Squid OK)
* share directories and files (Samba OK)
* see web pages from both http servers (both Apache OK)
* send mail to a local user (a user in the Linux box)
* receive mail from a local user (from the Linux box and from the Unix box as well)
* receive all the mails arrived at my mail box (from anywhere)
* reply mails originated at machines in the LAN.

At the Linux machine (my local MAIL server and local DNS server, among other services)

I can query the mail server (the "isp" server: mail.myexample.com.ar) so I download all the mail arrived, and from one single file (/var/mail/username) I can pick the mails using outlook, provided
that I issued a "fetchmail -f /etc/somefilerc" (by hand, for the moment)

Of course I can receive all the mail (if I should use the Linux as workstation, which is not the idea).

And of course I can send mail to anywhere from the Linux (this one for instance).

As already stated, the Problem is:
I CAN NOT SEND MAIL to users in the internet from the windows box.

That is, whenever I need to send a mail to somedomain.external I get the (not funny) outlook report:
etc etc the message could not be sent ... ... SMTP, ...
"554 <you@whatever.example>: Recipient address rejected: Relay access denied", ...
(554 comes from Postfix).

Seems (???) to be a relay problem ?
Is it my local DNS ?
Should my DNS reflect in some way the ISP's DNS ?

Should I attach (to you)
main.cf
master.cf
virtual
files under /named (DNS files)
any other ?

Thank you
 
Old 08-13-2004, 02:18 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
I don't use postfix, so I can't be extremely specific about it. It would seem that the basic installation of postfix only allows email relaying from the local host (127.0.0.1). Relaying is the term given when a mail server acts as a middle-man when receiving mail. The mail is not addressed to an account on the mail server, meaning the mail server has to send it somewhere else. Check your postfix configuration and search for "relay" or something similar (maybe even 127.0.0.1). Then change it to allow relaying for your local subnet. Again, I don't use postfix, so I can't tell you exact settings or files. Maybe someone else will come along and add that info.

I would advise against using unrestricted relaying. Take the time to learn how to specify your network, or you risk your machine being exploited as an "open relay". Spammers would love you, and users would hate you.
 
Old 08-13-2004, 04:11 PM   #3
anigug
LQ Newbie
 
Registered: Aug 2004
Location: buenos aires/argentina
Distribution: UnitedLinux
Posts: 2

Original Poster
Rep: Reputation: 0
Hey Dark Helmet it's me again !

Ok, I'm working on it ... and I'm gonna tell what's up as soon as it'll be working.
But for now, let me share this feeling of the moment ...
the fact (simple fact) of receiving a response SO SOON !!!
Makes me feel really well.
Means that I'm not alone ...
Listen I'm here in Argentina, away from where the action is...
working alone... for YEARS, whithout having a helping hand EVER.
Now I know I'm not alone any more.
There are people who I can ask for help.
That's not few.
That's A LOT.
Really, I mean, I'm very happy to know that, somewhere, out there, someone can be willing (if not succesfull anynway) willing to give a hand... "I don't know exactly, but lokk here or there..." that's just fine !
OK, Do't wanna waste resources (your time, specially) writing this ... but really Thank YOU.
For the willigness.
For the quickness.

AND OF COURSE:
UNIX FOR EVER !!!!!!!!!!!!!!
YEAHHHHHHH.
 
Old 08-13-2004, 04:22 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
You're very, very welcome

I actually had to suffer through this myself, but with qmail. It doesn't allow relaying in its default configuration. So I had a feeling it's the same problem. I'm just glad I could lend a hand (if this solves the problem of course).
 
  


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
Postfix - disallow some users to send internet mail dtournas Linux - Software 2 08-21-2009 09:10 PM
can send and recieve local mail, but not mail from internet Caine101022 Linux - Software 2 09-09-2005 02:35 PM
Sendmail: How can I avoid some users send mail to outside domains? lordphantom82 Linux - Software 0 11-16-2004 08:23 PM
how to allow send email just to users of my linux box ? jfmendez27 Linux - Software 2 11-13-2003 10:28 AM
Send Mail error with Internet mail Douglazb Red Hat 6 11-10-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 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