LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-10-2009, 08:05 AM   #1
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 166

Rep: Reputation: 18
Send email from command line


Hi,
I have truble sending mail from one of my home servers, it has no gnome Centos 5.2 is installed INIT 3 default run level.

i tried mutt, msmtp but cannot send email. What steps are neded to do this.

I need just sending option. it It is for learning purpose, I want to send some conf files to email for backup purpose.

Thanks
 
Old 09-10-2009, 08:11 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
What have you tried?
Error messages?
Do you have a MTA installed and setup?
 
Old 09-16-2009, 05:52 PM   #3
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 166

Original Poster
Rep: Reputation: 18
Im sorry for delay, here is log
Quote:
server postfix/smtp[26269]: C94FFF10321: to=<titelskibreg@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[209.85.129.27]:25, delay=27852, delays=27790/0.02/32/30, dsn=4.7.0, status=deferred (host alt1.gmail-smtp-in.l.google.com[209.85.129.27] said: 421-4.7.0 [89.216.177.156] Our system has detected an unusual amount of 421-4.7.0 unsolicited mail originating from your IP address. To protect our 421-4.7.0 users from spam, mail sent from your IP address has been temporarily 421-4.7.0 blocked. Please visit http://www.google.com/mail/help/bulk_mail.html 421 4.7.0 to review our Bulk Email Senders Guidelines.
I see what is says but cannot make it work
 
Old 09-16-2009, 06:09 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
mail sent from your IP address has been temporarily 421-4.7.0 blocked. Please visit http://www.google.com/mail/help/bulk_mail.html 421 4.7.0 to review our Bulk Email Senders Guidelines.
Did you visit
http://www.google.com/mail/help/bulk_mail.html
Seems to me you need tp wait untill they unblock you
Quote:
Our system has detected an unusual amount of 421-4.7.0 unsolicited mail originating from your IP address.
Investigate your network for this problem
 
Old 10-26-2009, 09:41 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
Code:
cat .muttrc 

set sendmail="/usr/bin/msmtp"
unset use_from



cat .msmtprc 


account default
host smtp.gmail.com
port 587
from XXXXXXXXX@gmail.com
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on
user XXXXXXXXX@gmail.com
password XXXXXXXXXXX
logfile ~/.msmtp.log


cd /tmp
apt-get -f -y --allow-unauthenticated      install msmtp
apt-get -f -y --allow-unauthenticated      install  mutt 
apt-get -f -y --allow-unauthenticated      install  libssl 
apt-get -f -y --allow-unauthenticated      install  openssl libssl0.9.7
apt-get -f -y --allow-unauthenticated      install  sendmail-bin
cd /tmp

then run mutt

xterm -e mutt

then chmod og= .msmtprc

then
echo "dfsdsfdf" | mutt -s "gonna make my first test, Linux is the best" me@gmail.com

Last edited by frenchn00b; 10-26-2009 at 09:43 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send email with attachments from the command line km4hr Linux - Software 1 09-18-2007 11:10 AM
send email from command line djionel82 Programming 6 11-29-2005 01:12 AM
send email with mutt on command line naijaguy Linux - General 1 12-29-2004 07:33 PM
trying to send internet email from a command line...is it possible rutman Linux - Newbie 8 06-26-2004 03:19 AM
Can Pine send an email without from the command line without.. rutman Linux - Newbie 2 06-11-2004 05:34 PM


All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration