LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-04-2009, 01:02 PM   #16
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34

Quote:
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 :
Code:
[root@asterisk ~]# cat .msmtprc 
# Set default values for all following accounts.
defaults
tls on
logfile ~/.msmtp.log

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

I followed the guide :
http://msmtp.sourceforge.net/doc/mutt+msmtp.txt


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

Code:
May 04 20:37:06 host=uit.telenet.be tls=off auth=off from=jonas.kellens@telenet.be recipients=jonas.kellens@telenet.be 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
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
My file looks like this:

# config options: http://msmtp.sourceforge.net/doc/msm...iguration-file
defaults
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
host smtp.gmail.com
port 587
user username@gmail.com
password password
from username@gmail.com
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.
 
  


Reply



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

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

All times are GMT -5. The time now is 02:47 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