Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-04-2009, 01:02 PM   #16
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 646

Original Poster
Rep: Reputation: 33

Originally Posted by penguiniator View Post
You can use nail and msmtp together. nail as the client and msmtp for pop access to your isp. Nail supports attachments.
I have configured msmtp like this :
[root@asterisk ~]# cat .msmtprc 
# Set default values for all following accounts.
tls on
logfile ~/.msmtp.log

# The SMTP server of the provider.
account default
auth on
user my_username
password my_password
tls on
I have configured mutt like this :
[root@asterisk ~]# cat .muttrc 
# use msmtp
set sendmail="/usr/local/bin/msmtp"
This is the error I get :
[root@asterisk ~]# mutt -s "test LOG" -a /var/log/asterisk/verbose < /dev/null
Error sending message, child exited 78 ().
Segmentation fault
I have no ~/.msmtp.log...

I followed the guide :

I have modified some things and now I am able to send mail to my external account :

May 04 20:37:06 tls=off auth=off mailsize=460276 smtpstatus=250 smtpmsg='250 2.0.0 Message accepted for delivery (nWeL1b0064HBdq606WeLUa)' exitcode=EX_OK
Although I have set the sender to 'jonas', sender in mail stays 'root'...

Last edited by jonaskellens; 05-04-2009 at 01:42 PM.
Old 05-04-2009, 02:03 PM   #17
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
My file looks like this:

# config options:
logfile /tmp/msmtp.log

# isp account
account isp
auth off
host smtp.mail.server.url
port 25
user username
from email@address
password password

# gmail account
account gmail
auth on
port 587
password password
tls on
tls_trust_file /home/USER/etc/.certs/ThawtePremiumServerCA.crt

# set default account to use (from above)
account default : isp

You may need to add the "from" line to get the messages to show the correct sender.


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
Shell scripting: Print output to logfile, error to logfile & screen stefanlasiewski Programming 18 05-22-2008 12:47 PM
need help with mutt or mail rhea Linux - Software 3 02-03-2006 11:37 PM
Writing shell script with mail < logfile humbletech99 Programming 2 11-22-2005 08:20 AM
Mutt and IMAP new mail/mark read mail checks(plzzz help) rmanocha Linux - Software 0 09-15-2004 02:05 PM
setting up mutt mail jkilbourne Linux - Newbie 0 01-29-2002 12:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

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