LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-15-2004, 06:36 PM   #1
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Question how to send logs (etc.) to email address???


what do i need to do in order to make a slackware box able to send text files to a yahoo.com address??

when i do a:

cat example.log | mail -s "example subject" example@yahoo.com

no error is displayed, but the message never arrives at example@yahoo.com

=(


Last edited by win32sux; 08-16-2004 at 06:21 PM.
 
Old 08-16-2004, 08:04 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
bump...

=(
 
Old 08-16-2004, 08:31 PM   #3
WMD
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware, Debian
Posts: 484

Rep: Reputation: 30
Do you have Mail set up to send via your ISP's mail servers?
 
Old 08-16-2004, 10:09 PM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by WMD
Do you have Mail set up to send via your ISP's mail servers?
nope... any tips on how to do that??

is mail the simplest tool for sending log files from a slackware server? i'm confused about mail, mailx, and nail...

i looked in the book for some mail configuration but no luck... it mentions mailx and the description sounds like what i need:

Quote:
mailx(1) is a command line driven mail client. It is very primitive and offers pretty much nothing in the way of user interfaces. However, mailx is handy for times when you need to quickly mail something, scripting a bulk mailer, or something similar.
so i'm gonna do some googling for mailx info and i'm gonna read "man mailx" to see if i can figure it out...
 
Old 08-17-2004, 12:06 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Once you get mail up so your box will actually send out emails.. you should look into a tool called logwatch.. very good tool that breaks down your logs so its easier to read, see what's going on, etc and it emails them to whatever address you specify.

www.logwatch.org
 
Old 08-17-2004, 07:39 AM   #6
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
do you have sendmail running?
 
Old 08-17-2004, 01:54 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
I may be off here, but when I set up my mail server I seem to remember yahoo.com not liking residential DNS addresses for mail servers. You need to configure your mail server with "smart hosts" (or maybe it's "smart relay hosts"). That's one way to have your mail set up to send through your ISP's mail server, as WMD suggested.
 
Old 08-26-2004, 12:48 PM   #8
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Talking

hello guys. i was able to get the

cat example.log | mail -s "example subject" example@yahoo.com

to work by starting the sendmail daemon (*blush*)... i had it disabled as i hadn't needed it before... as soon as i started sendmail, my system was able to send email to yahoo from itself without needing to connect to an external mail server...

i know sendmail has a really bad security reputation, but i'm only using it to send mail and the box is completely firewalled, so i think it should be fine... what do you guys think??

i'm gonna install logwatch now (thanks for the tip)... from what i've been reading, it's very nice...

once again, thanks everyone!!

=)


Last edited by win32sux; 08-26-2004 at 12:51 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 07:16 PM
send mail to external email address hamish Linux - Networking 8 12-10-2004 09:17 AM
Creating A Second Email Address For Email Account On Sendmail treedstang Linux - Software 1 04-27-2004 10:31 PM
Allowing an IP to send email using my email server... culprit Linux - Networking 7 09-09-2003 12:24 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration