LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-09-2008, 01:25 AM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
How to setup to email logs with the mail command?


Hi
This is my situation, I set up logrotate to send emails to my email address, myemailaddress@gmail.com.

logrotate.conf uses the "mail" command to send mail here is a quote from the man pages:
Quote:
--mail <command>
Tells logrotate which command to use when mailing logs. This command should accept two arguments: 1) the subject of the message, and 2) the recipient. The command must then read a message on standard input and mail it to the recipient. The default mail command is /bin/mail -s.
Now here is the kicker, I assume that I have to configure "mail" for smtp.gmail.com, and my port number and secure tsl. How do I set that up?

Thanks a bunch

Last edited by okos; 03-09-2008 at 01:26 AM.
 
Old 03-10-2008, 03:31 PM   #2
mpier
Member
 
Registered: Jan 2008
Location: Poland
Distribution: Slackware, Arch
Posts: 38

Rep: Reputation: 17
Hi,
did you try google search, or man mail? Simple .mailrc:
Code:
account gmail {
set smtp-use-starttls
set ssl-verify=ignore
set smtp=smtp.gmail.com:587
#set smtp-auth=login
set smtp-auth-user=name@gmail.com
set smtp-auth-password=pass
set from=name@gmail.com
}
 
Old 03-10-2008, 06:31 PM   #3
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by mpier View Post
Hi,
did you try google search, or man mail? Simple .mailrc:[
Thanks a bunch for the reply
Ill try what you stated.

I did not do a search on, "man mail"; however, I did google different orders of , mail, mailx, setup, configure...
The sites I found did not quite answer my question.

Thanks again
okos
 
  


Reply



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
mail command + changing senders email address aeby Linux - Server 5 04-18-2010 05:43 PM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 06:37 AM
Cannot send email using "mail" command. Madone_SL_5.5 Linux - Software 6 11-18-2006 03:22 PM
setup email client for internal and external mail access shadoxity Linux - Software 15 04-21-2005 08:17 AM
how do i setup thgunderbird to receive local mail (logs etc) rosscopeeko Linux - Software 0 04-14-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration