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 06-30-2007, 08:26 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
cmdline: Sending email without mutt and with msmtp something?


Hi,

I am fighting with mutt. I got a segmentation fault.

So, no mutt now.
I would like to send email (postfix) with command line without mutt.
Which program / config would you recommand ?
Pfff.... Its very difficult

Thanks

Figthing newbie
 
Old 06-30-2007, 12:58 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
You could do it the oldskool way and telnet to your SMTP server ;-p or you could install the mailx package (or equivalent) and just "echo hello | mail -s subject user@host".
 
Old 08-04-2007, 06:01 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Looks interesting:
http://mogrify.homelinux.org/2006/01...tt-with-gmail/

http://bbs.archlinux.org/viewtopic.php?pid=195969
http://phraktured.net/config/.procmailrc.fake

______________
Finally, the solution from the n00b !:

1/apt-get remove esmtp mutt postfix sendmail nbsmtp sendmail smtpd mailx kmail sendmail-bin postfix nbsmtp mutt smtpd procmail --purge
apt-get install postfix mutt procmail
apt-get install postfix mutt procmail kmail
apt-get install msmtp #- light SMTP client with support for server profiles
apt-get install msmtp-mta

2/get the sources and compile the nbsmtp from the tar.gz (1.00 I did)
Code:

Quote:
./configure --enable-ssl
make
make install


3/ gedit .muttrc
Code:

Quote:
set sendmail="/usr/local/bin/nbsmtp"
unset use_from




4/

Code:

.nbsmtprc
Code:
 relayhost=smtp.gmail.com 
fromaddr=surname.famillyname@gmail.com 
domain=surname.famillyname@gmail.com
 auth_user=surname.famillyname@gmail.com 
auth_pass=XXXXXXXXXXXXXXXXXXXXXXX
 auth_mech=login
 port=587 
use_tls=True
 use_starttls=True 
debug=2







5/
Is it working, let us know ? If I managed to do so, you can easily make it! lol
Great

Enjoy DEBIAN & other Distros

[SOLVED]

Last edited by frenchn00b; 08-04-2007 at 06:02 AM.
 
Old 03-02-2008, 01:11 AM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by unSpawn View Post
You could do it the oldskool way and telnet to your SMTP server ;-p or you could install the mailx package (or equivalent) and just "echo hello | mail -s subject user@host".
mailx does not work with nbsmtp
mailx just works with sendmail or postfix

the problem is that sendmail and postfix do not allow the user to define the configuration in his $home

is there alternatives for users too , without root power ?
the login to smtp server is maybe too complicated for me, n00b
 
  


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
Mutt under FilePro not sending mail! JMCHAP1 Linux - Software 0 10-11-2006 08:59 AM
Msmtp+Mutt password prompt pete1234 Linux - General 0 07-17-2006 10:24 AM
Mutt stopped sending emails without an error ille.pugil42 Linux - Software 1 06-23-2006 03:45 PM
Using mutt for two different email accounts spydrmn Linux - General 2 03-08-2005 07:16 AM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM


All times are GMT -5. The time now is 01:44 AM.

Main Menu
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