Fedora :: Send An Email From A Bash Script?

Aug 16, 2009

Just recently I started using a cluster in my school to run some heavy tasks, which might require long periods to get done. The thing is that I can only send one task after the previous one has been completed (cluster use policies) and since I don't know in advance how much time each task will take, I'd like to have a way of knowing when one given task is already done (other than keep checking it).I am allowed to submit the jobs in bash scripts, so that's what I have at my disposal.

View 11 Replies


ADVERTISEMENT

General :: Bash Script To Continuously Ping Server And Send Email

May 7, 2010

I'm trying to write a script that will continuously ping a server and then send out an email when the server is down, and then when it is back up. Then, continuing with monitoring. I would like to not run this in cron, because I don't want to script to run with multiple instances.

For example,
Ping a server every minute.
-If successful, do nothing.
-If failed to ping, then send out email stating that server is down.
-Once ping is successful, then send out email stating that server is up.

I only want it to send an email once after a failure, so the end user isn't get an email every minute that it fails. Once it is successful, then send the email (one time), stating that the server is up. Then, continue to ping and if fails again, repeat the process.

View 4 Replies View Related

Red Hat / Fedora :: How Send Email Via CLI

Nov 30, 2010

i m using code for sending email through GMAIL SMTP as given below... can any one tell me that how i can send EMAIL through Centos 5 CLI mode...in graphical mode we use webbrowser but in Command line how i can use this project.

View 1 Replies View Related

General :: Command Based Email Client To Send Email Through Secure Smtp?

Jul 26, 2010

In my Windows environment, I use email client such as Microsoft Outlook to connect to our email server to send email with the following configuration:

Incoming server (POP3): 995 - (requires with SSL)
Outgoing server (SMTP): 465 - (use encrypted connection SSL)

[code]....

And the mail server requires user ID login and password.how do I setup a text command based email client in my Linux (Centos 5.1) to send out email through the existing email server above, which is in another machine? The email client has to be text command based because I need to use command line to send notification email from anothar application installed in my Linux (Centos 5.1) Since the email client will only be used to send email notification, I don't require setting up of an email server in my linux.

View 2 Replies View Related

Server :: Allow Unsubscribed Email Address To Send Email To Mailman List?

Jul 1, 2010

is there a way to allow unsubscribed email address to send emails to mailman list without having to manually set a filter for that email address?

View 1 Replies View Related

Software :: Apache Virtual Host Send Email Without Email Server?

Jun 3, 2009

Debian 5, apache 2.2 I've got Apache up and hosting multiple sites. Each site will have a php contact me page that will simply dump an email to a fixed address. What program should i be using to accomplish this? I've used nullmailer before but that assumes you have a fixed smarthost somewhere which I don't.

View 6 Replies View Related

OpenSUSE :: Sending Email Using PHP / Application Fails To Send An Email?

Feb 23, 2010

I'm attempting to send email used a textbook PHP application. The application fails to send an email.Do I need to setup an email server to get the ap to work?Right now, I'm getting email through Kontact via my web host, Yahoo mail and Google mail.

View 2 Replies View Related

Fedora :: F13 Get Postfix To Send Encrypted Email?

Sep 13, 2010

I am trying to setup a simple SMTP server to relay scanned documents from a Xerox machine to email addresses. Unfortunately the Xerox machine doesn't support TSL or SSL so sending mail over port 25 on gets blocked. I have setup postfix on a desktop running Fedora 13 and have been able to set it up to forward the mail onto the correct server (gmail for example). My question is, how do I get the server to encrypt the emails (scanned documents) when sending them over the internet?

I have tried adding:

Code:
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
But when I look at the wireshark capture of the sending I can read my test message in plain text.

View 2 Replies View Related

Red Hat / Fedora :: Shell Script For Send A EMail?

Jul 12, 2010

script for to check a logfile in frequently and the script need to send an email alert9to external email id's) incase of any new error in the log file.

View 3 Replies View Related

Fedora Servers :: Send Email From Command Line?

Mar 14, 2009

How to sending email from command line? Im just try send email look at below:

Code:
[root@fedora sniper]# echo "test" | mail -v -s test tazmanic76@hotmail.com
tazmanic76@hotmail.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.3/8.14.3; Sat, 14 Mar 2009 15:50:43 +0800
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
[Code]....

View 4 Replies View Related

Fedora :: Balsa And Gmail / Can Receive Email, But Can't Send?

Jul 12, 2010

Has anyone had success sending email with Balsa and Gmail. I can receive email, just can't send.

update. need to add the port to the server name.

View 3 Replies View Related

Fedora Networking :: Configure Sendmail To Send Email From Command Prompt To Any Domain?

Jan 21, 2010

I have an issue with sendmail. I need to configure sendmail to send email from command prompt to any domain. This is just for the notification purpose. I installed sendmail and sendmail-cf and sm-client. The following are the configuration I have done.

/etc/mail/sendmail.mc
1) dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
2) m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
3) /etc/hosts = 127.0.0.1 localhost.localdomain
/etc/hosts = 192.168.2.50 mysystem
4) /etc/hosts.allow = sendmail:ALL
[Code].....

View 1 Replies View Related

Fedora Networking :: Sendmail Doesn't Send Email For Several Days In Spite Of Being Online?

Apr 27, 2011

I have the following problem with sendmail on F14 (had the same on F13 already):

I have a network setup using bridging which is controlled through traditional ifup/ifdown (because NetworkManager can't handle bridging). My sendmail configuration differs from the Fedora default only by having a SMART_HOST relay. The queueing interval in /etc/sysconfig/sendmail is the default (1h).

When my network connection is up, sendmail normally sends email through the relay immediately. Sometimes I have to interrupt the connection for a few minutes. When my network connection is down, sendmail starts queueing email (OK this far). When the network connection comes back up, I'd expect sendmail to restart sending mail through the relay again. But sometimes, that doesn't happen. Instead, sendmail keeps queueing my mail infinitely (I have seen it happen for several days) until I finally notice that my email isn't received, and run sendmail -q by hand (by that time, my boss is already angry that I'm not responding to his email). In that state, even new mail is queued rather than forwarded by sendmail. It appears that the only way to stop that behavior is to restart the sendmail service.

View 1 Replies View Related

Server :: Email Notification - Heartbeat To Send Email When The Slave Server Becomes The Master?

May 3, 2010

Have someone used Linux heartbeat to send email when the Slave server becomes the Master? I've read I can configure the MailTo under.

But I really don't know how to do it. I basically need my primary server to send an email when it becomes inactive and all the activities are manage by the secondary node.

View 7 Replies View Related

Fedora Security :: Send An Email Using Evolution The Message Was Not Sent But Returns A Error Message?

Apr 30, 2009

Hi I am running a fedora 10 desktop. when i send an email using evolution the message was not sent but returns a error message:"Error while performing operation.DATA command failedError: 550 Viagra SPAM - Hi in Subject" and the message did not have an attachment just plain words. what might have gone wrong for i have been using this for sometime without a problem. or what security measures should be in place to remove this viagra spamAm I infected by virus on this fedora, all my updates are up to date.

View 1 Replies View Related

Ubuntu :: Send An Email To More People?

Dec 21, 2010

i need to send a list of tasks each morning from a document to my team and i wanna do this from home; the thing is that i can only access my pc via ssh and i have to type the command for each person and takes to damn long. What i want is to send the document to a list of emails using only one command or a script.

View 2 Replies View Related

General :: Cannot Send Email Via Mutt?

Mar 24, 2010

I use CentOS 5.3 and I am trying to send a simple email through mutt.My command is:echo "test" | mutt -s "test email" myemail addressI have no errors displayed but the email never goes out of the machine. Also the /var/log/maillog is empty.I can see the queued email with:sendmail -bpSo emails never go out.This PC is connected to a network which the gateway is another Linux machine which is configured to be the default gateway in my /etc/resolv.conf as nameserver.

View 2 Replies View Related

General :: How To Send Email From /usr/bin/mail

Jan 15, 2011

I use gmail for all of my emailing needs but stumbled upon linux counter at counter.li.org. Now I registered on the site and downloaded the machine-update script from the site. So I ran it and it collected the required data. But when I run ./machine-update -m as they have told, I guess no mail gets sent as I have to configure the mail program. How do I configure it so that it sends mail from my gmail address using stmp?

View 1 Replies View Related

General :: Send All Email Remain?

May 29, 2010

how do i send out all email remain in linux to gmail?OS: CentOS 5

View 4 Replies View Related

General :: Configure For Email To Send?

Apr 18, 2011

how to configure linux for email to send andplz alos guide me what will be the command for
sending? am using oracle linux version 5.5.19 enterprise edition.

View 4 Replies View Related

General :: PHP Script To Send Email In OS?

Apr 16, 2010

I want a php example script to send email in linux.I know that it could be done using mail() function but i dont know how to use it.

View 3 Replies View Related

General :: Send Email Using Postfix

Jul 24, 2010

Currently i'm figuring out how to send email notifications to users when services went down in Nagios. I know i need to install and configure Postfix, which i did already. I assume that when i configured to point it to "Satellite mail system" is the correct one instead of other things like "Internet.." etc. So the configurations is when you have installed the Postfix and there would pop a lot of questions right? Other than that, what have i missed?

Oh ya, i remember something. Hmm. I do not have any so-called real smtp server so would that be alright? I heard that installed and getting the Postfix running would be enough as it serves as a MTA (mail transfer agent). So if i do not have any smtp server, the relay host= ' ' what should i put it as?

View 5 Replies View Related

Server :: Cannot Receive/send Email?

May 2, 2011

I used this tutorial to setup to setup iSpconfig postfix courier:but i cannot send or receive email:

Code:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
B450C72116A 595 Mon May 2 17:33:50 www-data@mail.greensevenstudios.com

[code]...

View 2 Replies View Related

Ubuntu :: Email To Be Send From Only One Line?

Aug 11, 2010

I have a server ubuntu 9.10.I have 2 adsl lines, one with a static ip for incoming mail and a dynamicI have to do this to have backup.Is it possible to set the server so it will only use the line with the static ip to send email?At the moment the server uses both. It authenticates with the one supplier when it uses the other line.The problem is that when a mall comes in and has a forwarder on my server the supplier blocks it as it thinks it is spam, because it is send from another email. My IT guy is really battling to sort this out.

View 2 Replies View Related

Debian :: Mail Command Can't Send Email?

Jun 4, 2015

I ran this command from terminal.

Code: Select allmail -s "Test Subject" example@yahoo.com < /dev/null

Got error on command line:
Code: Select allsend-mail: Authorization failed (534 5.7.14 https://support.google.com/mail/answer/78754 ng13sm2265977pdb.82 - gsmtp)

ssmtp configuration file:

Code: Select allroot=ssmtpmailtesting@gmail.com
mailhub=smtp.gmail.com:587
#rewriteDomain=
hostname=mybox
UseSTARTTLS=YES
AuthUser=ssmtpmailtesting@gmail.com
AuthPass=[mypassword]
FromLineOverride=YES

View 1 Replies View Related

Debian :: How To Send Email From Localhost On Jessie

Aug 5, 2015

How can I send email from localhost on debian jessie? Which mail server/client or package to install?

1) sendmail
2) postfix
3) ssmtp
4) msmtp
5) bsd-mailx
6) exim4

Looking for configurations (example) that i should make?

View 1 Replies View Related

General :: Keep Getting Messages Saying An Email Send Has Failed

Oct 11, 2009

I keep getting emails from my 404 error handling system on my CMS saying "mail3.xps.idv.tw:25 cannot be found" with no referer. It would appear that someone is trying to use my server to relay spam to Taiwan. How do I check that my server has the right security to stop this happening?

View 1 Replies View Related

OpenSUSE :: Can't Send Nor Receive Email To Kmail?

Aug 23, 2010

I need help with my K mail I set everything up correctly but it does not send nor recieve email to my kmail. I however did recieve my email to my windows base email through charter internet but not through K mail can

View 2 Replies View Related

OpenSUSE Network :: Can't Send Or Receive Email

Dec 28, 2009

can't send or recieve E-mail. Running postfix , thunderbird squirrel mail. Thunderbird and squirrelmail connect to server but am unable to send or recieve. recieve connection refuses 111 can't open smtp stream. I seen a post mentioning port 25 : 587 for squirrellmail but I do not have exim.conf to update daemon_smtp_ports= 25 : 587 is this located in another file for suse 11.2?

View 3 Replies View Related

Ubuntu :: Access Evolution Or Send A New Email?

Jan 3, 2010

Evolution asks me for the default keyring everytime I try to access evolution or send a new email now it will not let me type anything into the password field!

View 2 Replies View Related







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