On Thu, 2003-08-07 at 10:31, Luciano Rabelo wrote:
> This machine is a router between my house's LAN and the ISP. I want to 
> send a mail from the command line using mail. For example:
> 
> mail test -s [EMAIL PROTECTED]
> 
> Forwarding all mail from the system to another external email account 
> with the file /root/.forward is very interesting too.
> 
> I need sendmail running? What is the best and easiest way to do this?

Are you trying to script something?  Maybe email you system updates or
IP changes?  Well, assuming you like the .forward idea, here's what I'd
do:

1) Add your remote email to /root/.forward.
2) Have whatever you're trying to send yourself simply mail to "root". 
The redirect will handle the rest, and it simplifies future email
changes.
3) If you have a static IP, you'll want to make sure that you have
reverse DNS in place and your system represents itself properly via
Sendmail.
4) If (3) is not possible, say you're running off a dynamic IP or just
don't have administration over the reverse DNS, you'll need to use an
email account that won't bounce "loose" mailservers.  In my case, I have
to use my yahoo.com account.  My main email server will bounce
everything from my cable connection at home.

If you get this far, and you're still having problems sending mail,
respond back to the list with the appropriate error messages from
/var/log/maillog.

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to