LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cmdline: Sending email without mutt and with msmtp something? (http://www.linuxquestions.org/questions/linux-newbie-8/cmdline-sending-email-without-mutt-and-with-msmtp-something-565599/)

frenchn00b 06-30-2007 08:26 AM

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

unSpawn 06-30-2007 12:58 PM

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".

frenchn00b 08-04-2007 06:01 AM

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]

frenchn00b 03-02-2008 01:11 AM

Quote:

Originally Posted by unSpawn (Post 2806009)
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


All times are GMT -5. The time now is 04:55 AM.