Fedora :: Mailx Command Isn't Working?

Jan 28, 2010

I am trying to email some log files from my RHEL 5.3 server to my Outlook corporate account and nothing happens. Here is the command I use:[root@server1]# mailx -s "server info" my_id@my_corporate_domain < server_infoThe file server_info does exist and is a small log file. I checked for sendmail and seems to be running OK as follows:

[root@server1]# ps -ef | grep -i mail
root 13954 1 0 2009 ? 00:00:00 sendmail: accepting connections
smmsp 13962 1 0 2009 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

I'm not at all familiar with mail clients or mail system in Linux. Is there anything missing? I don't have to use mailx, I could use an alternative. Just please let me know how to sent a simple mail from this server to my corporate account using any tools possible (and maybe how to set it up)

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Mailx And Sendmail Not Working?

Feb 19, 2009

Im unable to send mail using mailx or sendmail. The sendmail daemon is running.

View 1 Replies View Related

OpenSUSE Network :: 11.4 - Mailx Not Working (Message Not Sent)

Apr 25, 2011

I am running a opensuse 11.4 with mailx 12.2. I am trying to sent emails via command line using mailx. I have not configured any mail server in yast. My .mailrc in my homefolder looks like this:

set smtp-use-starttls
account gmx {
set smtp=mail.gmx.net:465
set smtp-auth=login
set smtp-auth-user=my.name@gmx.de
set smtp-auth-password=mypassword
set from="My name <my.name@gmx.de>"
}

Unfortunately when I use the command
mailx -s"Test" -A gmx my.name@gmx.de [Return]
Hallo
[ctrl+d]
I am getting only the message
Unexpected EOF on SMTP connection
"/home/myname/dead.letter" 11/338
. . . message not sent.

View 9 Replies View Related

Fedora :: Inconsistent Delivery With Nail Or Mailx ?

Sep 5, 2011

I have a script that sends short reports via the mailx command which is failing a lot lately.

Syntax used is basically: mailx -s "the subject" -r somebody@somewhere.com myemail@gmail.com < textfile.txt

For what ever reason this command has become very unreliable lately. I've tested on the command line and sometimes it works but frequently fails. The -r address seems to cause problems as it always fails with a -r set to my work address. I've read several theads and tried adding a .mailrc file but couldn't get past the NSS configuration setting. (Using my mozilla x123x.default dir results in Error initializing NSS: Security library: bad database. )

The nail command behaves about the same. what would make email sending so intermittent?

I've checked the /var/log/maillog but see each mail session end with the following and no errors reported:

View 3 Replies View Related

Ubuntu :: "-r" Flag For Mailx Not Working?

Jun 22, 2010

I recently set up an email server at work on a ubuntu box, running exim4. Everything seems to be working fine, but when I try to change the "from" header in the message, its not letting me.

I wanted to send a message from the root user as "admin".

I assumed this would be easy as:

Code:
mailx -r admin recepientname

but for some reason the mailx program is claiming that "-r" is not a legitimate tag, when I try it tells me:

Code:
mail: invalid option -- r
usage: mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ...
[-- sendmail-options ...]
mail [-eIiNnv] -f [name]
mail [-eIiNnv] [-u user]

View 1 Replies View Related

Fedora :: Ls Command Not Working?

Dec 3, 2009

How can i install the ls command again?

View 6 Replies View Related

Fedora Security :: At Command Not Working?

Sep 25, 2009

I get the following error in the logs when i run 'at now -f task' as root. atd[4737]: Failure setting user credentialsI am trying to auto shutdown the PC but, it fails.I am also pasting the /etc/pam.d/atd config file which

# The PAM configuration file for the at daemon
#
#

[code]...

View 2 Replies View Related

Fedora :: Jobs Command Not Working In F14 ?

Apr 24, 2011

I tried using the jobs command in bash in F14 but nothing happens.

Code:
[root@Fedora ~]# jobs -l
[root@Fedora ~]#
Code:
[root@Fedora ~]# which jobs

[Code].....

If jobspec is given, output is restricted to information about that job. The return status is 0 unless an invalid option is encountered or an invalid jobspec is supplied.

If the -x option is supplied, jobs replaces any jobspec found in command or args with the corresponding process group ID, and executes command passing it args, returning its exit status.

Is the jobs command dropped for the ps command instead ?

View 3 Replies View Related

Red Hat / Fedora :: Running Mulitple Command Through Ssh Not Working?

Aug 19, 2010

I am trying to execute 3 commands stacked together on a remote server. The purpose of the commands are to get the oldest path name, then the filename of the oldest file in that path, and then the date/time of that file.

The command I am running is: stat -c %y $( find -L $( find -L /home/data -depth -maxdepth 6 -mindepth 6 -type d | sort -f | head -1 ) | grep txt | sort -f | head -1 ) This command works fine if I execute it on the command line of the server. However, when I try to use it in a bash script and execute it from one server on the other server using ssh, the command does not work.

Example:

oldest_file=`ssh -l root $IP "stat -c %y $( find -L $( find -L /home/data -depth -maxdepth 6 -mindepth 6 -type d | sort -f | head -1 ) | grep txt | sort -f | head -1 )"`

I don't know why the command will execute if I run it straight on the server but not through ssh. I broke it down to just the 2 Find commands and saw with verbose turned on that the path from the first (innermost) Find is not being passed to the second Find so it is not returning a filename which inevitably makes the Stat command fail.

Also, if there is an easier way to do what I am trying to accomplish without stacking these 3 commands like this, then I welcome those suggestions as well since I am a Linux newbie.

View 4 Replies View Related

Red Hat / Fedora :: LP Command - Print Landscape - Lp -ddestination -olandscape Isn't Working

Dec 3, 2010

I want to print Landscape and I would normally use Code: lp -ddestination -olandscape However this isn't working, it could be another problem (I am passing to a windows print spooler) but I would like to know if I have got the command right.

View 1 Replies View Related

Fedora :: Defined Aliases In File Not Working - No Command Found

Apr 15, 2011

Defining tcsh aliases through a .aliases file has worked perfectly for me for years and years using cygwin and older versions of mandriva. I am encountering very annoying and mysterious problems when attempting to do the same thing with a .aliases file in a fedora 64-bit VM. Strangely, if I define aliases in the file, they won't work, but if I do so on the command line, then they will.

Here's a simple example: Suppose I define an alias for "ls" in the file:
alias ls '/bin/ls'
Then source the file. This happens:
me: ls : Command not found.
me: alias ls
/bin/ls
me: /bin/ls
file1 file2 file3 etc.
me: unalias ls
me: ls
file1 file2 file3 etc.
me: alias ls '/bin/ls'
me: ls
file1 file2 file3 etc.

A second example: if I place either of these lines in my .aliases file:
alias d '/bin/ls -alF !:1'
alias d '/bin/ls -alF !*'and source the alias file, this happens:/ me: d
Bad ! arg selector. However, if I define the alias on the command line:
/ me: alias d '/bin/ls -alF !*'then the alias behaves correctly:/ me: dtotal 376
drwxr-xr-x. 10 r r 4096 Apr 14 16:05 ./
drwxrwxr-x. 6 r r 4096 Feb 21 16:15 ../
drwxr-xr-x. 3 r r 4096 Apr 14 16:05 bin.v2/
-rwxr-xr-x. 1 r r 193872 Apr 14 15:35 bjam*
-rw-r--r--. 1 r r 52804 Apr 14 17:20 bjam.my.log
drwxr-xr-x. 77 r r 4096 Nov 17 09:49 boost/
-rw-r--r--. 1 r r 989 Nov 17 04:51 boost.css

View 2 Replies View Related

Slackware :: Setup For Mail - Mailx ?

May 18, 2010

I was wondering how to setup slackware such that I can send and receive local mail using the commandline "mail" command.

I tried sending a sample mail this way:

And it looks like the message was sent, but when I then go check:

it says there is no mail.

Do I need to have sendmail running for just local mail calls?

View 5 Replies View Related

General :: Mailx Doesn't Send Mail

Mar 1, 2010

I'm having issues sending mail on a Debian (Lenny) box using mailx.

root@deity:/# mail root
Subject: Hai
Hi, root!

[Code].....

Does anyone have an idea what might be causing this?

View 2 Replies View Related

Ubuntu :: Sending Attached Files With Mailx?

Jan 5, 2010

Formerly it was possible to send attached files using the "-a" option eg. mailx -a /home/yan/textfile [URL]. (I think -a stood for "attached". At the time the "-a" option figured as an option for sending attached files.Now it is an option for sending headers. how one can now send attached files using mailx?

View 1 Replies View Related

General :: Control Sendmail Or Mailx From A File?

Oct 14, 2010

I need to control sendmail or mailx from a file. The file will have the receprent as the first line, Subject: has the second line, etc. From what I can find with Google the only why to define the target and subject is on the command line? Does any one know of a way to make a mailer use the data in a file? The file would look like this:

Code:

[code].....

View 2 Replies View Related

General :: Mailx Script Using Unspecified Recipients

Mar 1, 2010

Red Hat.
bash script.

I know there are several posts to do with mail and mailx, but nothing obvious in terms of my problem. Below is a small excerpt from the script that runs, but seems to have developed a problem.

###### Email Parameters ######
RECIPIENTS="name1@domain"
SUBJECT="${HOSTNAME} Subject Line"

[Code].....

The email is sent, but with numerous recipients, rather than the one specified in the RECIPIENTS variable, and because most of these aren't valid, getting a dead.letter. I've put in some debugging to check values of recipient and subject, and they show as expected.

View 4 Replies View Related

General :: Sending Mail With Mailx Version 12.1

Jul 2, 2010

GNU/linux kernel 2.6, Slackware 12.0.

I ran mail (aka mailx) and opened an account foo. If I remain inside the program, the command 'account foo' prints the account data. Good. But if I exit the program, and rerun it, then the command 'account' has no output which is to say I have no account.

View 1 Replies View Related

Slackware :: Instruct Mailx To Use Postfix Instead Of Sendmail?

Jun 22, 2011

im just wondering is it possible to instruct mailx to use postfix instead of sendmail while have sendmail and postfix installed? like system-switch-mail way in other distros. basically i would like to be able to use mailx when i uninstall sendmail and keep postfix only installed, so i dont get msg after i press . to send email from mailx

Code:
/usr/sbin/sendmail: No such file or directory

View 7 Replies View Related

CentOS 5 :: Set Mailx To Use External Smtp Server?

Jan 14, 2011

In Red hat i used the nail command to send mail using an external smtp server without sendmail or other mail services active. My question is: In Centos 5 nail is not present but is present mailx in version 8.1.1-44.2.2

Is there a way to set mailx to use external smtp server ? because in many forum i get the string mailx -S smtp= etc.etc. but in my case the -S parameter generate mailx: invalid option -- S antoher question is there a an official repository to download rpm nail for centos ?

View 3 Replies View Related

OpenSUSE Network :: Using Mailx To Send Mail To Gmail?

Oct 11, 2009

I have a couple of servers that are scripted to send cron script output logs to my email address (a Gmail address). Mailx is what I am using, but I didn't have to configure anything; I installed it, and it just worked with the following command: mailx -s "SUBJECT" -r FROMMYADDRESS TOMYADDRESS < FILETOCATANDSEND

This occurs every Saturday and Sunday at noon after my backup scripts run.
I noticed yesterday that I did not receive these logs, so I logged into the machine, started 'mail' and saw messages like this: This is the mail system at host media.deagle.lan.

[Code]....

View 9 Replies View Related

OpenSUSE Network :: Mailx Creates Unwanted Attachment

Sep 9, 2010

I run in a script a mailx command like this:cat logfile | mailx -s'the logfile' to-me@..This works most of the time, but in some cases mailx automagically turns logfile into an attachment called 'attachment.bin'.I think this may be because 'logfile' contains a few control characters or escape codes?How can I tell mailx to be less intelligent and treat it as an ASCII text file?

View 3 Replies View Related

Ubuntu :: Bash Script For Sending Email Using Mailx?

May 8, 2010

I'm trying to send an email using mailx, in a bash script, but I can't get it to work. In the terminal I can, and this is how I do it:

Code:
$ mailx johndoe@gmail.com
Message^D

Within seconds of doing this, I get sent an email. The problem is with the bash script I'm trying to make. Among other things, I tried this:

Code:
#!/bin/bash mailx johndoe@gmail.com < "Message" I honestly don't know what I'm supposed to do, and I've Googled a bunch of things too, and didn't have too much luck. Is there anyone who could help me out?

Edit: Figured it out. This is what I did, and it works for me:

Code:
#!/bin/bash
echo "Message" | mail -s "Subject" "johndoe@gmail.com"

View 8 Replies View Related

General :: Mailx Cmd - How To Ignore The Machine Name Getting Appended To The Receiver Mailaddr

Mar 12, 2011

I am facing some problem with the mailx commmand. When i run the mailx command from the command line it sends it to the correct mail address which i mention.

#cat mailbody | mailx -s "Test" sampleaddr@abc.com

But when i run the same command from a perl script, it appends the machine name (hostname.abc.com) to the mail address, and the mail address (sampleaddr@abc.com - which i entered) becomes invalid [URL] - found in the maillog), failing to reach the receiver. I am running it from the csh shell. how to avoid this addition.

View 2 Replies View Related

Ubuntu Networking :: Wireless Suddenly Stopped Working AND Rfkill Command Not Working

Jul 13, 2011

When originally installing 11.04 I had problems getting my Ralink 5390 wireless card to work.

Today my computer froze completely and I had to turn it off via the power switch. When I turned it back on, wireless was no longer recognized! My iPod can connect to the network just fine, so it must be an Ubuntu problem. There are no problems with my ethernet connection either.

I researched this and found several threads about blocking and unblocking wireless devices using the rfkill command. Well, unfortunately for me the rfkill command doesn't work. When I type sudo rfkill list or sudo rfkill unblock all, nothing happens; it just returns me to my bash prompt. I even tried uninstalling and reinstalling rfkill...nothing.

View 1 Replies View Related

Software :: Command Line Cd Command Not Working Right

May 4, 2010

Using netbook asus 1005ha with lucid beta 1 with most of updates on learning to use the CLI and headaches cd command does not seem to reconise directories here is a sample

Code:

yeh i know read the f#####g manual i am but any help would be greatly accepted tried sudo with same commands same problem did have a problem on my debian system that was to do with paths this is not the same on a different footnote anyone thinking of upgrading to lucid sit tight on 9.10 there are still to many issues that need ironing out for a system that is your main system.

View 6 Replies View Related

General :: Apache Command And Terminal / Command With Apache Through Web Browser And It Is Not Working?

Aug 18, 2009

I want to run a linux command with apache through web browser and that's is not working. and it's working properly when I execute this command through terminal, where is the problem?

NOTE: apache have the privileges to execute the command

View 7 Replies View Related

CentOS 5 :: Error "DSN: Service Unavailable" In The Maillog When Trying To Use Mailx

Feb 21, 2009

I get this error in the maillog when trying to use mailx. (DSN: Service Unavailable)

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

Ubuntu :: Dd Command Not Working?

May 28, 2010

iam trying to copy the nand image from my wm6 phone using the program"WM5torage"when i run this command:dd if=/dev/sdb of=winmobile.img bs=512 i get the: dd: opening `/dev/sdb': Permission deniedive tried sdb1 through sdb5 and get the same error.here is some more info:

Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]...

View 4 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related







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