LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2011, 08:20 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
can not send email in command line with mutt


hello
this is my .muttrc file:
Quote:
set smtp_url = "smtp://dan@smtp.mydomain.com:25/"
set smtp_pass = "Pass1234"
set from = "myuserid@mydomain.com"
and .muttdebug0 for sending this command :
Quote:
echo "this is body" | mutt -d 5 -F ./.muttrc -s "mutt hello word" some_email@yahoo.com
is:
Quote:

[2011-12-28 15:15:27] Mutt/1.5.21 (2010-09-15) debugging at level 5
[2011-12-28 15:15:27] Reading configuration file '/etc/Muttrc'.
[2011-12-28 15:15:27] parse_attach_list: ldata = 0x8115fa8, *ldata = (nil)
[2011-12-28 15:15:27] parse_attach_list: added */.* [9]
[2011-12-28 15:15:27] parse_attach_list: ldata = 0x8115fac, *ldata = (nil)
[2011-12-28 15:15:27] parse_attach_list: added text/x-vcard [7]
[2011-12-28 15:15:27] parse_attach_list: added application/pgp.* [2]
[2011-12-28 15:15:27] parse_attach_list: ldata = 0x8115fac, *ldata = 0x91e1c00
[2011-12-28 15:15:27] parse_attach_list: skipping text/x-vcard
[2011-12-28 15:15:27] parse_attach_list: skipping application/pgp.*
[2011-12-28 15:15:27] parse_attach_list: added application/x-pkcs7-.* [2]
[2011-12-28 15:15:27] parse_attach_list: ldata = 0x8115fb0, *ldata = (nil)
[2011-12-28 15:15:27] parse_attach_list: added text/plain [7]
[2011-12-28 15:15:27] parse_attach_list: ldata = 0x8115fac, *ldata = 0x91e1c00
[2011-12-28 15:15:27] parse_attach_list: skipping text/x-vcard
[2011-12-28 15:15:27] parse_attach_list: skipping application/pgp.*
[2011-12-28 15:15:27] parse_attach_list: skipping application/x-pkcs7-.*
[2011-12-28 15:15:27] parse_attach_list: added message/external-body [4]
[2011-12-28 15:15:27] parse_attach_list: ldata = 0x8115fb4, *ldata = (nil)
[2011-12-28 15:15:27] parse_attach_list: added message/external-body [4]
[2011-12-28 15:15:27] Reading configuration file '/usr/lib/mutt/source-muttrc.d|'.
[2011-12-28 15:15:27] Reading configuration file '/etc/Muttrc.d/charset.rc'.
[2011-12-28 15:15:27] Reading configuration file '/etc/Muttrc.d/colors.rc'.
[2011-12-28 15:15:27] Reading configuration file '/etc/Muttrc.d/compressed-folders.rc'.
[2011-12-28 15:15:27] Reading configuration file '/etc/Muttrc.d/gpg.rc'.
[2011-12-28 15:15:27] Reading configuration file '/etc/Muttrc.d/smime.rc'.
[2011-12-28 15:15:27] Reading configuration file './.muttrc'.
[2011-12-28 15:15:27] parse_alias: Second token is '<myuserid@mydomain.com>'.
[2011-12-28 15:15:27] parse_alias: myuserid@mydomain.com
[2011-12-28 15:15:27] ../send.c:1214: mutt_mktemp returns "/tmp/mutt-dan-PC-0-31862-519854062681555099".
[2011-12-28 15:15:27] ../sendlib.c:2692: mutt_mktemp returns "/tmp/mutt-dan-PC-0-31862-108698785156386135".
[2011-12-28 15:15:27] mwoh: buf[Subject: salam dan] is short enough
[2011-12-28 15:15:27] ../send.c:988: mutt_mktemp returns "/tmp/mutt-dan-PC-0-31862-10501834501991277319".
[2011-12-28 15:15:27] mwoh: buf[Subject: salam dan] is short enough
[2011-12-28 15:15:28] Connected to smtp.mydomain.com:25 on fd=4
[2011-12-28 15:15:31] 4< 220-vitesse.nineservers.net ESMTP Exim 4.69 #1 Wed, 28 Dec 2011 06:45:22 -0500
[2011-12-28 15:15:31] 4< 220-We do not authorize the use of this system to transport unsolicited,
[2011-12-28 15:15:31] 4< 220 and/or bulk e-mail.
[2011-12-28 15:15:31] 4> EHLO dan-PC
[2011-12-28 15:15:32] 4< 250-vitesse.nineservers.net Hello dan-PC [95.25.57.233]
[2011-12-28 15:15:32] 4< 250-SIZE 52428800
[2011-12-28 15:15:32] 4< 250-PIPELINING
[2011-12-28 15:15:32] 4< 250-AUTH PLAIN LOGIN
[2011-12-28 15:15:32] 4< 250-STARTTLS
[2011-12-28 15:15:32] 4< 250 HELP
[2011-12-28 15:15:32] 4> STARTTLS
[2011-12-28 15:15:32] 4< 220 TLS go ahead
what does this part means:
Quote:
[2011-12-28 15:15:31] 4< 220-vitesse.nineservers.net ESMTP Exim 4.69 #1 Wed, 28 Dec 2011 06:45:22 -0500
[2011-12-28 15:15:31] 4< 220-We do not authorize the use of this system to transport unsolicited,
[2011-12-28 15:15:31] 4< 220 and/or bulk e-mail.
and just to inform you my user name is not dan it is dan@mydomain.com I mean I do not use dan with password to log in to my mail server I have to use compelte form, dan@mydomain.com, with password but I don't know how to include it in this format:
Quote:
set smtp_url = "smtp://dan@smtp.mydomain.com:25/"
instead of dan.
 
Old 12-28-2011, 01:01 PM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
If you just want to send email from CLI then try first using
Code:
echo "hello world" | mail -s "Subject" recipient@domain.net
what does it do ?
 
Old 12-31-2011, 12:29 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
it works but it shows sender From: root wich should be from recipient@domain.net and where is mail configuration file like mutt and now what should I do for mutt to work?
 
Old 12-31-2011, 12:39 AM   #4
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
As I see it is working with ssmtp configuration file and it can not send attach file like mutt which is necessary for me .
Any way why mutt does not working???????
 
Old 12-31-2011, 03:51 AM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I'm not familiar with mutt,

I'd suggest you try sendEmail (D/L link or use the RPM link to install) script which you put somewhere in the path (like /usr/bin/ ) and send attachments with it.
I use it and it works flawless for sending emails from CLI with attachments.

good luck

Last edited by lithos; 12-31-2011 at 03:57 AM.
 
Old 12-31-2011, 04:43 AM   #6
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
I want mutt to get to work

Thanks for your suggestion but I want mutt to get to work not getting around the problem.
 
Old 12-31-2011, 01:12 PM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by golden_boy615 View Post
Thanks for your suggestion but I want mutt to get to work not getting around the problem.
I'm sorry about that (but I don't have solution and don't know mutt).

good luck
 
  


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
[SOLVED] How to send email from command line? dbrazeau Linux - Newbie 18 03-09-2011 11:21 AM
Send email from command line markotitel Linux - Newbie 4 10-26-2009 08:41 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:21 AM.

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