Networking Forums

Networking Forums > Computer Networking > Linux Networking > send mail

Reply
 
 
MaDuNiX
Guest
Posts: n/a

 
      09-10-2003, 08:06 AM
I've been using `mail` to send mail to local users. now I want `mail` to be
used to send email to the outside world as well.
mail -s"message subject" user\@isp.com < message_to_be_included
When i try it, it doesn't work and it gave an error not sending , no
relaying allowed relaying denied ... etc

On my box I setup a DNS for Intranet usage (fake Host fake FQDN)
its called linux.sdc and qmail server using private IP

The idea:
I am installing now on the same Box netsaint
I want to notify admins via public emails
such as (E-Mail Removed), (E-Mail Removed) ... etc

My DNS configuration was build for Intranet usage to get
up qmail as inranet SMTP server.

The box can ping the outside world.
When I try to send email to out side world through my ISP
however does not work . Because I am running a fake domain
its called linux.sdc


Does anybody have any suggestions of what I should
look for? in my DNS configuration and qmail
Do I need to give more info to help determine the problem?

Thank you!



 
Reply With Quote
 
 
 
 
Alan Connor
Guest
Posts: n/a

 
      09-10-2003, 07:49 PM
On Wed, 10 Sep 2003 10:06:44 +0200, MaDuNiX <(E-Mail Removed)> wrote:
>
>
> I've been using `mail` to send mail to local users. now I want `mail` to be
> used to send email to the outside world as well.
> mail -s"message subject" user\@isp.com < message_to_be_included
> When i try it, it doesn't work and it gave an error not sending , no
> relaying allowed relaying denied ... etc



mail address subject .....

Alan C


--

take control of your mailbox ----- elrav1 ----- http://tinyurl.com/l55a


 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      09-11-2003, 02:04 PM
On Wed, 10 Sep 2003 10:06:44 +0200, MaDuNiX
<(E-Mail Removed)> wrote:
> I've been using `mail` to send mail to local users. now I want `mail` to be
> used to send email to the outside world as well.
> mail -s"message subject" user\@isp.com < message_to_be_included
> When i try it, it doesn't work and it gave an error not sending , no
> relaying allowed relaying denied ... etc
>

Set up your mail server to use your ISP as a smarthost.


--
Commander Spiral Pyjama Pseudo-Rhinocerous Feline Thingamajig Bill Marcum
(the First)
Ozy and Millie Name Generator http://heifong.phase.org/omname.php
 
Reply With Quote
 
dkoleary@attbi.com
Guest
Posts: n/a

 
      09-11-2003, 06:28 PM
Alan Connor <(E-Mail Removed)> wrote:
> On Wed, 10 Sep 2003 10:06:44 +0200, MaDuNiX <(E-Mail Removed)> wrote:


> mail address subject .....



Wrong gain, Alan. The OP has the correct syntax for everything except
the address

> I've been using `mail` to send mail to local users. now I want `mail` to be
> used to send email to the outside world as well.
> mail -s"message subject" user\@isp.com < message_to_be_included


(E-Mail Removed); don't need to escape the @ unless you're working in perl.
If that's the case, I would suggest getting it working manually before
trying to automate.

As for the issues: Many, hopefully, most ISPs won't relay if your domain
doesn't resolve. That's one method that's used to reduce spam. That
doesn't sound like it's hit you yet but it would a little later down the
trail.

The second issue is that an smtp server is refusing to relay your email.
I would imagine that this is your smtp daemon doing this. Unfortunately,
I'm not familiar with qmail so I can't give you the specific syntax.

What you need to do is set up your qmail server to allow relaying for
all IPs in your private IP range. If you've only got a couple of
systems, hard code them into the relay. If you're planning this
for a small office, then use the entire IP range, but make sure
your firewall rules (you do have a firewall, don't you?) block any/all
IPs coming from the outside with an inside IP address.

The second thing you need to do is set qmail to masquerade your domain.
This will change your linux.sdc to isp.com for any emails leaving your
little net.

A third thing you can do is set up name translation so names coming in
for (E-Mail Removed) are translated to (E-Mail Removed) then. That will
allow users on the net to respond to emails sent from your private network

With sendmail, yuou can verify where the issue is coming from with
something like the following:

sendmail -v (E-Mail Removed) << eof
Subject: Test 1

This is a test of the emergency broadcasting system.
eof

That would run the sendmail in verbose mode showing you all the
traffic between your smtp server and the remote one. That would
verify where the relaying error is coming from. I would imagine
that qmail has something similar but I don't know what it is.

HTH;

Doug O'Leary

--------
Senior UNIX Admin
O'Leary Computer Enterprises
(E-Mail Removed) (w) 630-904-6098 (c) 630-248-2749
resume: http://home.attbi.com/~dkoleary/resume.html
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Send Mail! Don Wireless Networks 2 11-01-2006 04:48 PM
Can't send mail if connected through MN-500 Chris Broadband Hardware 5 11-18-2004 06:44 AM
Can't send mail when connected through MN-100 Chris Broadband Hardware 1 09-10-2004 02:10 PM
SMTP service not send mail pttk Broadband Hardware 10 07-08-2004 04:46 PM
Can't send mail.... GH Wireless Internet 2 02-10-2004 03:46 PM



1 2 3 4 5 6 7 8 9 10 11