Thanks Jason!

It's working well. And, as you've said, "Sendmail is only listening on the loopback interface".

Just one more thing... May I add a remote address in /root/.forward and still save a copy of the mail in the root mail accoout?

Jason Dixon wrote:
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.


--


****************************************************************
*   Luciano Rabelo (Boozy)   /\           ReggaeMon            *
*  http://www.rabelo.eti.br  /\    Essa Galera eh o que ha!    *
*    [EMAIL PROTECTED]     /\  http://www.reggaemon.cjb.net  *
*       UIN - 2507903        /\   [EMAIL PROTECTED]    *
****************************************************************


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

Reply via email to