General :: Df Output To Root's Mail Box

Mar 29, 2011

I'm trying to make a script in my /etc/cron.d directory called df. Anyways, I want to be able to have it run the df command every hour, 23 minutes past the hour. I have the first part, I just need assistance in directing it to roots mail box.

View 2 Replies


ADVERTISEMENT

General :: Script To Mail Output Of Mysql Queries?

Mar 15, 2011

I have prepared a simple script that shows the database, tables size in the Database server as :-

check the attachment for the script & output.

Now I just want to mail the output of my script to some persons e-mail-ID

Also, I want to do some calculations and provide the information of how much increase data after 1 day daily.

View 2 Replies View Related

General :: Script.sh | Mail - Completes But Doesn't Include Output?

Mar 30, 2011

I have a script that uses cp to copy data from A to B. There are some troublesome files that are constantly in use and read "Permission denied" or "Text file busy" but I'm not worried about these. Therefore my copy process always contains output.The script runs through cron and the output (automatically) goes to /var/mail/user. I tried setting it up to send me an email and it comes through, but it's completely blank. The email in /var/mail/ contains the full output.

Here is my command:
0 18 * * * /home/backup.sh | mail -s "Backup completed" jsteel@...com
(The script simply contains many "cp -r /mnt/location/a /mnt/location/b")

[code]....

View 2 Replies View Related

General :: Make A Script To Send Output Of Top Command In Mail?

Mar 4, 2010

How can i make a script to send the output of top command in mail.
i have to mail the output to another person , tell me how can i do this

View 3 Replies View Related

Fedora Installation :: Newaliases - Root's Mail Is Not Showing Up In My Local Mail Inbox ?

Jun 14, 2009

I just added my login id to /etc/aliases to forward root's local e-mail to my local e-mail account in evolution.

As always, when I make a change to /etc/aliases, I run newaliases. I now get the following, and root's mail is not showing up in my local mail Inbox:

Code:

Is this correct?

I understand my hostname (i.e., Eng-Lab-010) is not a fully qualified host name, but I never had a problem before. But it appears this not a good thing. What should I do?

View 4 Replies View Related

Debian :: Forward All Root Mail To External E-mail Account?

Jun 28, 2010

The question is pretty much the same as the subject. I have a bunch of debian servers - most of them running exim4 default installations configured as internet site using dpkg-reconfigure exim4-config. It can send mails fine from php scripts and some other applications, but I can't seem to find a way to forward all root mail to some external address. I have tried adding "root: someaddress@example.com" to /etc/aliases and run newaliases command, but it doesn't seem to work.

View 3 Replies View Related

General :: Why Grub>root Command Gives (fd0) Output

Jun 24, 2011

I am learning Linux administration and I am new in this area. Currently I am trying to find out which drive has grub.conf file. Following commands giving me correct output (hd0,0):

find /grub/stage1
find (hd0,0)/grub/grub.conf

But root command gives me output (fd0). Why?

View 3 Replies View Related

General :: Delete Mail Root In Command Line

Jul 1, 2010

I want to delete all may mail root in command line and i don't find this... the command mail + "d" work fine but i want use it in a .sh

I explain too : I use fetchmail to have mail from a gmail box, and use RIPMIME to save the attachment in a folder... these work fine, but the i want delete these mails.

View 3 Replies View Related

General :: Mail Server : Reset The Password For It Using The Password Command From The Root Login?

Jul 23, 2009

I am an absolute Linux Beginner who is being required to do a bit of admin work because the boss just fired the old linux admin. Unfortunately, one of our employees cannot remember her password to her email account and as such I need to reset it on our linux server.What I want to check is that this email account is actually a linux user account and I simply will reset the password for it using the passwd command from the root login. Is that correct?

View 1 Replies View Related

Slackware :: Crontab - Fetchmail Sends Output To Mail Spool?

Jan 6, 2010

I'm new to mail via the CLI, so bear with me. I have this line in my crontab:

Code:
*/5 * * * * fetchmail
Which does check my mail every 5 minutes fine. But I get the command-line output mailed to

[code]...

View 3 Replies View Related

Ubuntu Servers :: Use The Mail Command Line Program To Occasionally Send Log Output To Email Aliases?

Jan 27, 2011

Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.

View 2 Replies View Related

Red Hat :: No New Mail Alerts For Non-root Users?

Mar 3, 2011

I'm seeing a problem on RHEL5, whereby all users can receive mail (/var/spool/mail/<user>), but only root gets a new mail alert when logging in.

The relevant bash variables ($MAIL, $MAILCHECK) seem to be set for all users.

View 6 Replies View Related

Fedora :: Root Mail Going To My Boss / Undo It?

Jan 14, 2010

I just started a new SysAdmin job on Monday Jan 11, 2010. My predecessor left before I joined the company with NO documentation. All of the system mail (alerts, error messages, informative messages, etc.) that's going to root is being redirected to my boss. I checked .mailrc and /etc/aliases for an alias that would equate root with my boss, but couldn't find anything. My boss doesn't want to be receiving these emails. Where else can the previous SA could have done this operation. How can I sub my email address for that of my boss' to be receiving these alert messages.

View 6 Replies View Related

Red Hat :: Mail Is Readable Only By Root (dovecot And Horde)

Mar 2, 2011

I am evaluating Horde Groupware Webmail Edition. I have completed the installation as follows:

RHEL 5 workstation 2.6.18-238.1.1.el5
sendmail 8.13.8
procmail v3.22
dovecot 2.0.9
php 5.1.6

[Code]....

How can the /etc/procmailrc be used to deliver mail to the user's Maildir with the correct permissions so that the user can read their mail without a .procmailrc file of their own?

View 2 Replies View Related

Slackware :: System Mail Message To Root From Pat?

Nov 26, 2010

You know the system mail message that Pat leaves root welcoming them to Slackware and other things.here are some good things in there. I wanted to know how I could copy that so other user on the system could read it in a text file or something

View 2 Replies View Related

CentOS 5 :: Disable (You Have New Mail) Notification For Root

Sep 17, 2010

Is there a way to disable the "New Mail" notification when we are logged in via ssh? It is causing some issues while we are working on stuff on our servers.

View 1 Replies View Related

Ubuntu Security :: Deciphering Root System Mail?

Aug 10, 2010

I'm getting a lot of mail messages with not really any information (that I get anyway) but things like:

@312>
W266>
I372=

[code]...

View 3 Replies View Related

Ubuntu :: Thunderbird Sends Mail Only When Started By Root?

Dec 23, 2010

I have 2 email accounts set up in Thunderbird - one is gmail and the other was given me by our server admins few years ago. Everything works fine on windows but when I try to send something from the second account (not gmail) in ubuntu it says that password is incorrect. Ive double checked all settings and seems like everything set correct. Now the most interesting part: when I set up this account as root (gksu thunderbird and then do same as I did under my account) everything works perfect.

I found only one thread at this forum with same issue and sure it's not solved [URL]..

View 7 Replies View Related

General :: Set Nagios Directives To Only Send One E-mail Per Alert Without It Flooding Mail Boxes?

Jul 20, 2011

I have got a nagios server running on my network, The configuration seems to be okay but each time there is a service alert notification, and an e-mail is sent to the contact group, Nagios continuously sends e-mail over and over again. Do anyone know of a way to set Nagios directives to only send one e-mail per alert without it flooding mail boxes.

View 3 Replies View Related

General :: Sendmail Error / Unable To Work On WAN / Can Send Mail But Not Able To Recieve Mail?

Nov 15, 2010

I had configured sendmail on linux 5.2, Iam using public ip and my domain is registered[linuxforfreshers.info]. I am facing a issue that when I mail with the user sumit@linuxforfreshers.info then I am able to do it. But if somebody tries to send mail to the same user then it bounce backs. I had made the entry of domain in /etc/mail/local-host-name and also I put ok in /etc/mail/access.The mails are working properly with in LAN. But not able to work on WAN only I can send mail but not able to recieve mail.What else I need to do.

View 6 Replies View Related

General :: Configure Mutt Mail Client For Mail Server Other That Gmail?

Jan 9, 2011

I am trying to configure mutt to send email via command line . It works fine when I configure it for gmail as follows:Quote:

# SENDING MAIL
set copy=yes
set smtp_url = "smtp://mymail@smtp.gmail.com:587/"

[code]...

View 14 Replies View Related

General :: Debian Mail Server As A User Send A Mail With Attachment Maximum Wight Is 5 Mb

Jun 8, 2011

How to configure a Debian mail server as a user send a mail with attachment maximum wight is 5 Mb.

View 3 Replies View Related

General :: Split Mail Received In Local Mail Box Into Different Files?

Oct 30, 2010

How can I split my local mail box into an individual files for each mail. The senario of mine is I fetch some emails from a mail server into my local linux box with fetchmail command but I want each fetched mail in a different indivitual file for easy file processing and manipulation for example sending those email through sms and so on

View 1 Replies View Related

General :: Debian E-mail Client Download E-mail Messages

Aug 7, 2011

I need help in setting up the native e-mail client included in Debian Squeeze. My ultimate goal is to have the Debian e-mail client download e-mail messages and process attachments automatically.

View 14 Replies View Related

Server :: Move To Maildir, Users Mail Owned By Root Now?

Jun 4, 2010

I recently made the migration from mbox to maildir.I use postfix, spamassassin, dovecot for imap and procmail for delivery.I made the changes for Maildir to postfix main.cf, dovecot's dovecot.conf and procmail's procmailrc.All good, working well.Just noticed though, that mail marked as spam and filtered by procmail to be put in the users ~/Maildir/.spam/new folder are owned by root. Not allowing the users to even see it (600 perms)

So postfix sends all mail to Procmail:
mailbox_command = procmail -a "$EXTENSION"
But not all mail is effected, only mail picked up by this receipe in the /etc/procmailrc:

[code]...

View 2 Replies View Related

General :: Extract A Single Mail From The Mail Path?

Mar 10, 2011

I just want to know is it possible to extract a single mail from the mail path i.e. /var/mail/root.

for ex. i am having this mail in /var/mail/root.

From root@localhost.localdomain Thu Mar 10 21:47:47 2011
Return-Path: <root@localhost.localdomain>
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p2AGHlx4004190
for <root@localhost.localdomain>; Thu, 10 Mar 2011 21:47:47 +0530
[Code]....

how to extract only this mail from /var/mail/root

View 2 Replies View Related

General :: Receive Mail Fine But Cannot Send Mail

Feb 25, 2011

I have configured fetchmail, sendmail/postfix and mutt to act as a relay to receive mail. I can receive mail fine but I cannot send mail. Its working fine on my one box but on the one acting as a nat I am having issues. This is my mail log from the nat box.

Feb 25 03:42:25 TrunkmonkeyNat sendmail[4382]: p1P8gPfd004382: from=root, size=52, class=0, nrcpts=1, msgid=<201102250842.p1P8gPfd004382@localhost.localdomain>, relay=root@localhost
Feb 25 03:42:25 TrunkmonkeyNat sendmail[4383]: p1P8gPgn004383: from=<root@localhost.localdomain>, size=353, class=0, nrcpts=1, msgid=<201102250842.p1P8gPfd004382@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
[Code]....

View 116 Replies View Related

Debian Configuration :: Send Mail From System Commandline As Root User?

Jul 26, 2011

I tried to send mail from my debian system commandline as root user But i did not get the mail in the destination email inbox No errors was shown

View 1 Replies View Related

Fedora Servers :: Way To Continue To Use SELinux / Forward Root's E-mail To Outside Account?

Dec 23, 2009

I have installed Fedora Core 11 with SELinux enforcing.It appears (via log files) that if I use a .forward file in the home directory for root that SELinux prevents the use of this mechanism for forwarding e-mail.Is there a way to continue to use SELinux and be able to forward root's e-mail to an outside account?

View 3 Replies View Related

OpenSUSE Network :: Postfix Send Root Mail To External Account?

Aug 19, 2010

I want postfix to send me the root mail to an external account, but I never do it and I don't know how to do it, anyone can explain me how to do it?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved