I intend to use mutt
to send automated emails via cron
or at
with attachments to my gmail address when particular events happen on my Ubuntu server. Currently, mutt
cannot send email to external email addresses, I believe this is because I need to setup a Mail Transfer Agent. How do I go about selecting a suitable MTA and how do I set it up to perform what I need it to do?
conorgriffin's questions
I'm running Ubuntu Server and I'm looking for an efficient way of performing nightly backups of particular directories using cron. However, since the computer isn't always on, I'd like it to just run when the computer is on and to keep the last 5 backups. Would I need to use a bash script of some kind to achieve this?
Is it possible to email attachments from the command line?
If possible, I'd like something as simple as:
mail -a myfile.txt -t [email protected] -s "Here's my file"
Occasionally my Ubuntu 10.04 PC won't boot properly. It gets past Grub and then stops at a blank screen and blinking cursor. From what I've read, this blinking cursor screen is presented by Ubuntu itself and not Grub, so I assume the boot process gets halted for some reason. Has anyone any guidance on how to diagnose this issue or what the cause is likely to be? Normally I need to press the reset button to reboot the PC and often it will reboot fine. The fact that it is intermittent is what confuses me.
Any pointers on diagnosing the problem would be much appreciated.
It's been a while, mainly because my server has been up for a long time. It looks like I've captured a recurrence of this issue, I copied the messages
file and the dmesg
file and had a look where processing seems to have stopped and found the messages below. I'm going to do some research on Google etc. but figured I'd put it up here in case anyone can help and wants to earn themselves some points. I should mention that the ondemand governor failed
message happens on successful boots but the other two don't appear to.
Oct 11 23:17:21 linux kernel: [ 98.905370] ondemand governor failed, too long transition latency of HW, fallback to performance governor
Oct 11 23:21:48 linux kernel: Kernel logging (proc) stopped.
Oct 11 23:21:48 linux rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="697" x-info="http://www.rsyslog.com"] exiting on signal 15.
I found a few vague references to rolling over of logfiles at boot time being the cause.