General :: Command Line Sending Of Mail Attachments ( DB Backups)?

Dec 17, 2010

I'm am not remotely familiar with the linux operating sytem and just need a simple 'cut and paste solution' that will allow me to send .gz files as mail attachments, from the command line.Recently I moved my website to new hosting company, they are using cpanel and I have set up a couple of commands; the cpanel scheduler runs them for me as required.

1.creates an mysql dump and saves it to folder ( in root of my space )Works fine.2. delete the file created above, after 15 mins. Also works fineWhat I really want to do is email the .gz to myself before it is deleted, this is were I am stuck.This is possible ( I believe ) but it is beyond my understanding and ability to write the scipt/command that will make this happen.Please make any instructions really simple and clear as I am really new to this.on the server and this information is provided below and may be helpful to you (but I certainly to not know anything about this type of stuff)

View 7 Replies


ADVERTISEMENT

Ubuntu :: Sending Mail From Command-line?

Jan 5, 2010

I have kubuntu 9.10 and I would like to configure Ubuntu to can send mail from command line with mailx. I've saw that I need to install a MTA. But I don't know wich install and how.

I follow this tutorial:

[URL]

But when I try to send a message, in the mail.log says me:

Code:
Jan 5 10:21:33 david postfix/smtp[3795]: 41AEA41DBE: to=<pepelu@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[209.85.223.73]:25, delay=1086, d
elays=1022/0.01/32/32, dsn=4.7.0, status=deferred (host alt1.gmail-

[Code].....

View 3 Replies View Related

General :: Incoming Mail Attachments Over 1MG Fail

Feb 5, 2010

I'm running SuSE 11 with sendmail and dovecot.I'm sending and receiving mail. But as soon as someone sends me a mail with an attachment over 1mg it seems to fail. I have no problem sending big attachments.

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

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

Red Hat / Fedora :: Sympa Sending Attachments

Aug 5, 2010

I have set up a Sympa list serv server and everything is working fine for the most part. One issue that I am running into is sending files over ~580 KB in size (just a normal .txt file) are not going through. I am getting the following error. Impossible to distribute your message for list 'list-name' because of an internal server error.I have verified that my "Maximum message size (max_size)" setting in Sympa is get to 5 MB so that shouldn't be the problem. If I try sending the same .txt file after taking out a few lines, and the file size is ~530 KB, then it works just fine. Nothing is really jumping out at me in the logs either.

View 1 Replies View Related

OpenSUSE :: Sending A Command Line SMS?

Jun 21, 2011

I'm trying to send a text message from the command line to a cell phone. Right now I'm working with gnokii but it isn't panning out. I ranCode:echo "This is a test message" | gnokii --sendsms +17191234567 -r but it isn't working. The output I get is this

Code:
GNOKII Version 0.6.27

[code]....

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

Server :: EHLO Command Not Recognized On Sending Test Mail

Jul 8, 2011

Ehlo command not recognizing while sending test mail to outside network from postfix. When I am trying to test a mail within the network it is successfully happening ehlo.

View 2 Replies View Related

Ubuntu Servers :: Sending Main From The Command Line?

Mar 28, 2011

I'm installing a 10.04 server remotely - it's basically an RSYNC host for backups. I've got one minor issue - it's really more of an annoyance, but I would like to have it solved.When sending e-mails, the messages come in addressed to three destinations - when it's only supposed to be sent to one. What's worse is that the two additional addresses are based on the hostname of the machine.Let me explain: I use this command:Code:mail -s Testing email@somedomain.comI then compose the e-mail and send it. The mail arrive a few seconds later but addresed to the following:Code:from@hostname.domain.com;email@somedomain.com;hostname@hostname.domain.comThe "from@hostname.domain.com" has the actual word "from" in the address. I've installed many, many servers like this in the past and this is the first time that anything wonky with email has happened that I couldn't fix or explain. The machine is running postfix and I installed the bsd-mailx package to get the command line "mail" command (I used to install "mailx", but this seems to work just like the old package).

View 1 Replies View Related

Software :: Look For Free And Well Known Fax Command Line Tools For Receiving And Sending Faxes?

Apr 19, 2011

I am looking for free and well known fax command line tools for receiving and sending faxes I wan it to save receive faxes in pdf format with file name included with caller phone number and date of receive:

Quote:
for example:
5566545544-2011-5-11.pdf
and any other format that I want.

View 11 Replies View Related

General :: Sending Mail From Virtual Host Fails "mail For Domain.com Loops Back To Myself"

Jul 1, 2011

I have two servers relavant here: mail.domain.com (1.1.1.1) - which is the nameserver and the mail server for domain.com. www.domain.com (2.2.2.2) - which is the www subdomain for domain.com domain.com (cname www.domain.com) - an alias for www.

The zone file for domain.com lists mail.domain.com as the MX server for domain.com. 2.2.2.2 is actually being served web pages as a virtual host. It's real hostname is www.anotherdomain.com. Mail for domain.com works pretty well, in general. However, if I attempt to send mail from www.domain.com (or its alias domain.com), I get "mail for domain.com loops back to myself" in the postfix logs. On 2.2.2.2 /etc/postfix/mail.cf has mydestination = www.anotherdomain.com, localhost. How do I tell postfix on 2.2.2.2 that mail for domain.com needs to be delivered to mail.domain.com?

View 1 Replies View Related

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 :: 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

Ubuntu :: Command Line Mail Client Server?

Jan 27, 2011

I have just got myself up and running on a ubuntu 32 bit server with postfix using this guide here [URL]...at-ispconfig-3 and everything is working great ( i didnt install ispconfig )

I want to get a command line mail client running but I am having some permission issue.

sudo aptitude install heirloom-mailx
then when i type mail this happens
mail
/var/mail/jj: Permission denied

i also tried mutt etc but always get permission denied.

View 6 Replies View Related

Ubuntu :: Mail() Works In Command Line But Does Not In Browser?

Jun 18, 2011

I'm trying to configure sending mail from my site under Ubuntu 10.04 LTS.I have installed LAMP and postfix. To test mail I created the file test.php with code:

PHP Code:
$to = 'mymail@gmail.com';
$subject = 'The subject';

[code]....

View 1 Replies View Related

CentOS 5 :: Setup Mail Client From Command Line?

Aug 9, 2010

I have installed CentOS 5.5 with no GUI - how do I enable/setup the "mail" client command to be able to send email via my Exchange 2007 mail server on my LAN?

View 1 Replies View Related

Ubuntu :: Get The Mail Applet To Light Up Green By Sending Myself Mail In Lucid?

Apr 30, 2010

in Lucid ive been trying to get the mail applet to light up green by sending myself mail. Does this applet only light up when IMs r received or does this also work with evolution and if so what might i have done wrong in evolution, ive tried it with evolution open and evolution closed.

View 8 Replies View Related

Software :: POP3 Download Mail Attachments As Local Files?

Dec 23, 2010

How can mail attachments be downloaded from a POP3-supporting mail server and saved as local files? I've looked into a variety of mail clients and studied mbox, maildir and MIX but no solutions are jumping out and saying "It's me you're looking for!" (story of my life ) The requirement is for an organisation with no document management system; as a first step I want to get all their files in one place, including files that may exist only as email attachments.

View 8 Replies View Related

General :: Mail Not Sending To Internal Addresses

Sep 4, 2009

I'm using the mail command and I am able to send mail to my gmail account with out any problems. However when I send mail to deco -at- mycompany.com I nothing happens and no mail ever arrives in my mailbox. It might be worth mentioned that my centos5 is a virtual machine on the same server as the company exchange mail server.

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

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

Red Hat / Fedora :: Bash Script To Monitor Server Load / Mail From Command Line

May 4, 2010

I am attempting to write a very basic script that monitors a server's load and automatically emails an administrator upon the load reaching a certain threshold...

1.) `uptime | awk -F ' ' {'print $10'} | cut -d ',' -f1 | awk -F '.' {'print $1'}` -- the output from this command results in a decimal figure, so when that value is parsed and placed in an if statement, the value is not seen as a number. load-monitor.sh: line 9: [: 4.96: integer expression expected/How can I allow a number like "4.56" to be seen as an actual number within the if statement and be compared to 4, for instance?

2.) I am running a cPanel server on CentOS 5.4 -- when I run mail -s "SUBJECT" $EMAILADDRESS the command just hangs, and stracing the process shows it stuck on a read syscall.

3.) If I wanted to write this script in PHP, I have one primary confusion -- how can I mimic the functionality of obtaining the output from uptime via awk, etc. so that I can determine what the server load is at a given time? Which PHP function(s) would assist in that regard?

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

General :: Rsync Incremental Backups Rather Than Full Backups?

Nov 12, 2009

How do you get Rsync to do incremental backups rather than full backups? At the moment I have a script that will create a backup folder (if it doesnt already exist) then copy the source files into the backup directory with the command

rsync $VERBOSE --exclude=$TARGET/ $EXCLUDE --exclude '/Ls-wtgl1c8/**' -rt --delete $source/ $TARGET/$source/ >> $LOG_FILE

Target is where the files will be backed up to Sources is the dir(s) to be backed up Exclude files is the list of files not to backup
log file is where the output will be saved to. At the moment it only does full backups, but I would only like to do incremental, how would this be achieved? Am I missing out an option in the Rsync that is required.

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

General :: Sending Email / It Hangs When Run The Command?

May 3, 2011

I'm using Linux 11.04 and just installed the most recent version of Postfix. I'm trying to send a simple email (through a relay) but when I run the command

sendmail davea@mydomain.com FROM: fromemail@gmail.com SUBJECT: hello world this is a test email .

It just hangs there. There is nothing in /var/log/mail.log or in any of its accompanying files.

View 4 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related







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