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