how to send emails after logrotation.

15 pts.
Tags:
Logrotation
Send/Receive
Hi There..!!! I have some queries here related to the logrotation as, 1] Do i configure the logrotation to send emails without having any mail server. 2] I have basic configuration of rsyslog and logroataion on my server. Can any one provide me the advanced configuration sample file over here. So i can enable or configure the necessary options within rsyslog and logrotation file. 3] Currently i have sendmail server installed by default. With the help of that i m trying to configure logrotaion to send emails to some emiail user of another domain(on another mail server) but it doesn't  work with that. So please guid eme in this regards.  
ASKED: August 25, 2009  6:07 AM
UPDATED: August 25, 2009  12:50 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

Try this to send mail from the command line if you’re having trouble SENDING emails after logrotation:
$ mail foo@bar.org
Subject: My Subject
Blah blah blah…
This is the body of my email
End the message with Ctrl&D or
with a full stop by itself like
.
EOT

Your mail should now have been sent.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Manojb
    this is a very common question and the answer is good. [url=http://www.usadapter.com/Laptop-HP-Adapter/HP-Pavilion-DV5t-AC-Adapter.html]HP Pavilion DV5t AC Adapter[/url]
    0 pointsBadges:
    report
  • Manojb
    Hi, I know the procedure to send email from command line but my question is some different. Please read my post carefully I am able to send emails through command line but the auto generated mails by logrotation are are not getting delivered to the specific emailuser(ID). For example i have a email address and email server for the corresponding email user as. 1] test@test.com (on which the auto generated(*CRON*) mails will be delivered after logrotation). 2] The sender email address is test@testmachine.com. The above info will help you to understand the problem, in case if you need any further please let me know. Still I am unable to get auto generated emails(*CRON*) of logrotation.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following