On Sun, 20 Mar 2005 17:26:13 -0500, P Jones <deerfieldtech@xxxxxxxxx> wrote: > On Sun, 20 Mar 2005 22:17:02 +0100, Alexander Dalloz <ad+lists@xxxxxxxxx> wrote: > > Am So, den 20.03.2005 schrieb P Jones um 22:05: > > > > > I'd like to have a remote FC1 machine email me every day with the > > > logwatch email. This would serve two purposes, first, obviously, I'd > > > be able to read the logwatch report without logging into the remote > > > server, but more importantly, the server is on a dynamic IP DSL line, > > > and since ssh is how I log in, I need to know what the IP is, and it > > > would come in the email's headers (I think). > > > > > > Also, are there any security issues with sending the email? Is there a > > > better way to do what I'd like to do? > > > > > -P > > > > On the dynamic IP server edit /etc/mail/sendmail.mc and set the > > SMART_HOST" to the ISP's MTA and restart sendmail. In /etc/aliases set > > the root alias and run newaliases. > > > > Alexander > > > > Alexander; > > Thank-you for the info. One more sendmail question, and I've seen the > answer to this somewhere before but I just can't google it now, is > this; how do I send a test message through sendmail from the command > line? > > Another short question; on this same server the logwatch email never > got through to root. There were errors in Mail log like this, every > day: "Mar 20 04:08:16 some-server sendmail[6996]: j2K9730f006996: > SYSERR(root): savemail: cannot save rejected email anywhere" . To this > day I have not solved that problem, and I'm pretty sure I haven't > previously done anything to sendmail.mc. > > Thanks again, > > -P I love to be able to answer my own questions. First, the answer to the first one, how to send a test message from the command line; [me@home]#date | sendmail -v nobody@xxxxxxxxxxxxxx Found that one here: http://www.sendmail.org/~ca/email/doesnt.html After making the changes that Alexander suggested above, sendmail still wouldn't send out. I was getting 550 5.0.0 Access denied errors in the terminal. This error has to do with tcpwrappers and the line that I previously added to hosts.allow file to secure sshd, which was: #local network ALL: 192.168.0. I changed this to: #local network ALL: 127.0.0.1 192.168.0. and now sendmail can send out. If I've done anything wrong, please jump in! -P