Red Hat / Fedora :: Capture The Line And Send It In An E-mail?

Mar 4, 2010

I am relatively new to using awk. I have a file with 10 identical lines. The last field in each line is a numeric. I want to check each of these lines and if the last field is greater than 500, I want to capture the line and send it in an e-mail. I know how to do this with a single line, but I don't know how to step through all 10 lines.

View 1 Replies


ADVERTISEMENT

Networking :: Send E-mail From Command Line By Using "mail" In Fedora?

Jul 13, 2010

I am trying to send e-mail from command line by using "mail" in fedora. It goes to e-mail server in the same network but it is refused by other outside this network with message: "..... Connection refused by name@yahoo.com ......

View 1 Replies View Related

Server :: Configure Mail With Postfix & Cyrus-imap - Cannot Send Mail Through Command Line

Nov 19, 2010

I'm running SUSE linux Server version 11. I want to configure mail server with postfix & cyrus-imap. For that, i have read many documents in Internet by i met issues. I'm running DNS in this server & it's ok Now I cannont send mail through command line.

[Code]....

View 9 Replies View Related

Server :: Send An E-mail With The Command Line?

Sep 12, 2010

I want to send a simple mail from my terminal

I'm using opensuse and a Know that I have postfix installed...

I don't know what I need configure first...

I know that I need a SMTP server to send e-mails write?

When I try send e-mail with the command mail I received this message :

Code:
mail -s "meeting reminder" -c professorgenival@hotmail.com micromerces@gmail.com
mailq:
Code:
(host mx4.hotmail.com [65.55.92.168] refuse to talk to me: 421 cannot conect to SMTP server.

I was reading about fetchmail But I can't understand....

View 4 Replies View Related

Debian :: Any Program To Send Mail From Command Line?

Sep 9, 2010

Is there an easy to use program that I can use to send mail from the command line? I want to be able to create a batch script to send mail from different text files. What I'm looking for is something like:
mailapp mailserveraddress destinationmailaddress mymailaddress filetosend

View 11 Replies View Related

General :: Failing To Send Mail From Command Line?

Mar 16, 2010

I am using Ubuntu 9.10 and when I tried to send mail from the command line I get: /usr/lib/sendmail: Permission denied. any takers on this.

View 6 Replies View Related

Debian Configuration :: Can't Send Email From Command Line Using Mail

Mar 17, 2010

I'm running a desktop-less version of Debian via Sun VirtualBox. The reason I'm doing this is because I don't have enough graphics or RAM power to have a desktop environment running on top of my current desktop; also, I want to learn Linux through the command prompt. I'm running the AMD64 version of Debian; I'm not sure if that's relevant.

My main goal is to be able to email useful files from the virtual Debian to my main computer, so that I can save them for later if I ever decide to do a "real" installation of Debian on this computer. I realize now that there's probably some "easy" way to do this by reading the virtual machine's hard drive, but at this point, my curiosity wants to see this issue resolved. I started off wanting to find a command-line program to send my email with, and one was built-in. The syntax ~$ sudo mail -s "Subject" email@yahoo.com "This is a test email."

C^D
Cc:C^D ~$

is what I found. I tried it, and (unsurprisingly), it failed. I then learned that the mail command calls exim4, or something along those lines, so I needed to configure exim4. Soon thereafter, I learned that Yahoo's SMTP wasn't public, but Google's was. So, I found this web page which described how to configure exim4 to allow for email to be sent to a Gmail account. I made one, and followed the page word-for-word.

I sudo-mailled a test email to my Gmail account, and nothing happened. I waited a bit longer, and still, nothing happened. Finally, I started looking around, and found out about the exim4 logs in /var/log/exim4. In my mainlog, I think that it's telling me that Google denied my connection: <date><time><random numbers and letters> == **********.gmail.com R=send_via_gmail t=gmail_smtp defer (111): Connection refused

So, now, I'm just stuck. I don't know what I did wrong, I checked my exim4.conf.template twice for spelling errors, but I don't think I made any. At this point, I can only hope that someone else has had a similar problem, or knows what I'm doing wrong (or haven't done yet).

View 14 Replies View Related

General :: Send Gpg Encrypted Mail Automatically From The Command Line?

Sep 14, 2010

How can I send gpg encrypted mail automatically from the linux command line?

I'm a little stumped on this one, I've tried using mutt but it doesn't encrypt mail unless it's used interactively.

Does anyone know if you can use the build in mail command to do this some how?

View 1 Replies View Related

Ubuntu :: Command Line Mail Taking Too Long To Send; Unable To Qualify Own Domain Name?

Feb 5, 2010

I'm having a problem with my mail. When I send mail, it takes a long time for the send to complete.In the below, datestamp is just a simple script to put in a no-white-space date/time stamp.

Code:
$ datestamp ; mail woodnt; datestamp
02-05-10@193844

[code]....

View 9 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 / Fedora :: How To Send Mail Via Console

Nov 12, 2010

We have RHEL linux 5.3 server.I need to send mail from console to my mail. we have proxy server in our net work. How to send mail from my server using SMTP 25 port.any configuration for sendmail client?

View 1 Replies View Related

Fedora Servers :: Can't Get Php Form To Send Mail

May 7, 2009

home web server (running on port 21333). i'm running fedora 10 w/ LAMP and I can't get my php contact form on my website to send out mail. it looks like it sends but it doesn't (and I know the form works because it's the same one from my hosted web server). I've tried everything I can think of, disabled selinux, added apache to trusted mail users, changed the port to 2025 in case comcast blocks 25 (at least i think i did), added the port to the iptables and i have no idea where to go from here.

View 4 Replies View Related

Fedora Servers :: Can Send But No Receive Mail?

Jun 24, 2009

I have Linux mail server, It always encounter this problem, when i shut down or restart the server. You cannot receive mail but you can send..i use the following services:

iptables -F
service iptables restart
service sendmail restart

[code]...

View 5 Replies View Related

Fedora Servers :: User Are Not Able To Send Mail?

Jul 12, 2011

my user are not able to send mail, in my mail server this error is showing ,

[root@aloha ~]# service MailScanner restart
Shutting down MailScanner daemons:
MailScanner: [ OK ]
incoming sendmail: [ OK ]

[Code]....

Im using fedora 7 , i dono which all services has started .

View 1 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

Ubuntu Networking :: Evolution Mail / Send Mail Saving To Current PC But Not To The Other PC?

Apr 20, 2010

I use Evolution mail and use 2 PCs When I send mail it saves it to my current PC but not to the other PC so instead i want it to save the sent to the email server i'm using.

View 3 Replies View Related

Ubuntu :: Can't Send From Own Mail Server With Mail Client (Thunderbird Or Evolution)?

Jun 1, 2011

I have set up postfix and dovecot as per the Ubuntu anual and appear to have a functioning mail server.Using the sendmail command I can send mail and I receive mail in ~/Maildir. Using Thunderbird I can read any mails received but I can't send any mail from Thunderbird. I have tried with both STARTTLS and SSL/TLS and whilst I get the prompt for a password I keep getting the message my password for my server is wrong.I have ports 25, 465, 587 and 993. Is that all the right ports?When I ping my domain name it resolves to my router name whereas I believe it should resolve to my IP. Could there be a problem with my host file? I've had a play but to no avail.Here's the error in mail.log.

Code:
westwood@westwood-desktop:/etc$ tailf /var/log/mail.log
Jun 1 19:00:33 westwood-desktop postfix/smtpd[2376]: warning: localhost.localdomain[127.0.0.1]: SASL LOGIN

[code]....

View 2 Replies View Related

Programming :: Basic PHP Mail Function \ Say 'and If 'email' Is Not Equal To 0 Then Send The Mail?

Sep 9, 2010

this is my code at the moment

PHP Code: <?php
if (isset($_REQUEST['email'])) && $_REQUEST['email']!='0'{
$to = "chrisathisemail";

[code]....

View 5 Replies View Related

Server :: Send Mail From Unix Mail Command To Yahoo-id With Attachment?

Feb 15, 2010

i want to send mail from unix mail command to my yahoo-id with attachment, but i want to receive it as attachment.

View 1 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

Fedora Networking :: Automatically Send E-mail Containing IP Address?

Dec 2, 2009

I have several computers at work running Fedora 12. From time to time I need to remotely connect to them, usually via ssh. Each computer is assigned an IP number automatically upon startup, however due to circumstances beyond my control they are not recognized by host name by the domain server. Therefore I require the IP addresses in order to connect rather than the host names. I have no way at present to rectify this situation.

When there is a reboot, I am not always guaranteed that the IP address will be the same as before, although in practice this is usually the case. If the IP address is changed and I am logging on remotely, I am unable to connect! I can't know the number until I am again physically sitting at the computer.

As a solution, I would like each computer to e-mail me its IP address each time it boots. My first attempt was to run a script at the end of /etc/rc.d/rc.local that runs ifconfig and places the output into a file. This file is then sent to my address using sendmail. The script works fine, but I note that the output from ifconfig at this boot stage does not contain an IP address! Obviously, it is being assigned later on in the startup process. Either that or the command ifconfig does not work the same at this stage as it does once I am logged in. I require somebody with more expertise than I to comment on that.

Finally then, my question is, at what point in the startup process is an IP address assigned and the output from ifconfig would contain this address? Is there a more appropriate place rather than rc.local in which I should run my script? Is there a more appropriate command rather than ifconfig that ought to be used instead?

---------- Post added at 05:41 PM CST ---------- Previous post was at 05:30 PM CST ----------

Let me show you my attempted solution in more detail in case you're interested. The script is called .SendIP.bash and is located in my home directory. Here's what it looks like (with some censoring to protect me from public ridicule):

#!/bin/sh
# This script will send ifconfig information to my e-mail account.
# This allows me to have the latest IP address assigned to this computer.
cd /home/MyUserName
hostname > .IPmessage
date >> .IPmessage
ifconfig eth0 >> .IPmessage
sendmail -f$HOSTNAME MyAddress@MyCompany.com < .IPmessage

As I stated above, the output from ifconfig does not contain the IP address when my script is called from rc.local.

View 10 Replies View Related

Fedora Servers :: Can't Send My Outgoing Mail Using Port 587 / Why Is So?

Dec 10, 2009

I have installed a sendmail server on fedora 10
I try to configure my sendmail server as a mail server to send outgoing email using port 587( because port 25 is blocked). after finishing configuring my sendmail server, i checked out my sendmail server using telnet localhost 587, and it worked fine as below code...

I have tried two different ways for user name: name, or name@mail.mydomian.com, but not working at all, the two results are the same.
PS: I have test port 587 and can use port 587 and Kmail to send outgoing mail using other external relay server

is my wrong configuration for sendmail server or kmail?

View 9 Replies View Related

Fedora :: How To Send Mail From Localhost To Gmail Or Yahoo?

Dec 4, 2010

can any one please tell me that how to send mail from localhost to gmail or yahoo or some other server,i think it is some mail relay server problem but dont know how to get over it.i am using fedora 13.and i had setup dovecot,sendmail and squirrelmail properly.and configured them. i have no problem to send mail from my local host to me back.my squirrel mail and mutt works fine.bt only problem is that they cant send any mail on other servers.

View 4 Replies View Related

Ubuntu Servers :: Can't Send Mail Using PostFix - Only Receive Mail

Jun 30, 2011

I set up my mail server using the guide here: [URL] I am able to receive mail, I can send mail locally, but I can't send to external addresses. This is in my mail.log: Quote: Jun 30 14:40:43 Server postfix/smtp[10725]: 2FD9322015BF: to=<myemail@gmail.com>, relay=none, delay=1634, delays=1484/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.65.27]:25: Connection timed out)

This is my main.cf:

[Code]...

View 6 Replies View Related

Networking :: Send Mail - Internet Mail Server Seems Not Working At All

Mar 30, 2011

i have an server which have my site on it, server have an public ip and site works fine..the thing that i done to enable mail server is :

1.select sendmail option as mail server(in joomla).
2.install and configure sendmail in server (which ubuntu installed on it )

**if i use my website locally mail server works fine i can send message and receive , but when i use web site from Internet mail server seems not working at all

View 1 Replies View Related

Software :: Debian Mail Server Won't Send Or Receive Mail

Apr 22, 2010

i basically had this system installed for our mail system.The setup is as follows:

1. Operating system installed is Debian ver. 5.0.3

2. Roundcube is installed as a webmail(if its right for me to say that)

3. The server is hosted right here at our offices

4.The server uses relay system to send mail i.e. relays all our mails to our ISP

That all i can say about the configurations becuase thats as much as i understand it.The problem now is that we are not able to send or recieve emails from both internal and external.I tried to send mail to a collegue in the office who is on our local LAN,Roundcube says sent successfully but the person does not recieve the mail.i tried to send to my yahoo address but nothing.I dont know where these mails have been trapped.

View 5 Replies View Related

Software :: Exim - Send A Mail Message Of The Form Mail

May 4, 2010

I am trying to do something really simple with Exim. I have two machine connected together via a hub. They can ping each other. They each are running openSuse 11.2 and have Exim installed. On each machine from the command line in start Exim as a daemon by typing: sudo /usr/sbin/exim -bd -d and each machine runs through some output and sits there "Listening". Then on either machine I try to send a mail message of the form mail

(or mailx) <user>@<other node>
some text
EOT

and absolutly nothing happens! I must be doing something wrong or daft which is very basic, but I have searched all over and cannot get it to work.

View 2 Replies View Related

Programming :: Use Javamail For A Project To Send Mail Rather Than Using 'mail' Or 'mailx'

Nov 30, 2010

Was told that I need to use Javamail for a project to send mail rather than using "mail" or "mailx". Has anyone here done this?Any pointers or sites you've used and can recommend?

View 1 Replies View Related

CentOS 5 Server :: Cent OS 5.4. - Send A Mail With Mail In Console

Apr 21, 2010

i'm trying to send a mail with "mail" on my cent os console , but without success. In Suse it's quite simple with "mail": mail -r sendersaddress@domain -s "subject" targetaddress@domain </tmp/filewithcontent

View 6 Replies View Related







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