LinuxQuestions.org
Review your favorite Linux distribution.
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, 07:05 AM   #1
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 181

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, 07:11 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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

Original Poster
Rep: Reputation: 18
Im sorry for delay, here is log
Quote:
server postfix/smtp[26269]: C94FFF10321: to=<removed>, relay=alt1.gmail-smtp-in.l.google.com[removed]:25, delay=27852, delays=27790/0.02/32/30, dsn=4.7.0, status=deferred (host alt1.gmail-smtp-in.l.google.com[removed] said: 421-4.7.0 [removed] 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

Last edited by rtmistler; 07-24-2018 at 04:41 AM.
 
Old 09-16-2009, 05:09 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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, 08:41 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
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 08: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 10:10 AM
send email from command line djionel82 Programming 6 11-29-2005 12:12 AM
send email with mutt on command line naijaguy Linux - General 1 12-29-2004 06:33 PM
trying to send internet email from a command line...is it possible rutman Linux - Newbie 8 06-26-2004 02:19 AM
Can Pine send an email without from the command line without.. rutman Linux - Newbie 2 06-11-2004 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 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
Open Source Consulting | Domain Registration