<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">First of all thanks to everybody<div><br></div><div>I feel the need to clarify the configuration.</div><div><br></div><div>from the command line msmtp works, this means that ~.msmtrc is configured properly</div><div><br></div><div>I removed the mailcmd line from voicemail.conf , renamed sendmail to sendmail.orig and created a link to msmtp called sendmail in /usr/sbin/</div><div><div>lrwxr-xr-x &nbsp; &nbsp;1 root &nbsp; wheel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20 May 14 07:28 sendmail -> /opt/local/bin/msmtp</div><div><br></div></div><div>the command:</div><div><div>echo "hello." | sendmail --debug --account=sbcglobal <a href="mailto:--from=myaddress@sbcglobal.net">--from=myaddress@sbcglobal.net</a> <a href="mailto:roberto.milani@sbcglobal.net">roberto.milani@sbcglobal.net</a></div><div>sends the email</div><div><br></div><div>I do have voicemail configured in voicemail.conf with valid email addresses, voicemails work fine</div><div><br></div><div>this is the my tmp</div><div><br></div><div><div>lrwxr-xr-x@ &nbsp;1 root &nbsp; &nbsp; &nbsp;admin &nbsp; &nbsp; &nbsp; &nbsp;11 Nov 15 06:54 tmp -> private/tmp</div><div><br></div><div>and I have no emails</div><div><br></div><div>no error messages, no logs, nothing</div><div>any idea on how to debug this?</div><div><br></div></div></div><div><br></div><div><br></div><div><br></div><div><br><div><div>On May 14, 2008, at 9:01 PM, Jose Flores Galicia wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">That's right.<br>msmtp behave different depending on the user that invokes de command.<br>I suppose you are running asterisk like root or asterisk user so the config file must be /root/.msmtprc or /home/asterisk/.msmtprc.<br> Also, as david notice, in the voicemail.conf line<br>>mailcmd=/opt/local/bin/msmtp -t ; --from blah<br>all that comes after ; are ignored when parsed by asterisk.<br><br>I suggest you to configure a default account on your "System configuration file" for msmtp, you can found the path to the file if you make "msmtp --version" from command line.<br> <br>This is how my configuration file looks like:<br><br>#Config file for msmpt<br>#Default values for all accounts<br>defaults<br>logfile /var/log/msmtp.log<br><br># Main Account<br>account aspinet<br>host <a href="http://mail.megamailservers.com">mail.megamailservers.com</a><br> from <a href="mailto:someone@mail.com">someone@mail.com</a><br>auth MD5<br>user <a href="mailto:someone@mail.com">someone@mail.com</a><br>password mostseecretpassword<br><br># Set a default account<br>account default : aspinet<br> <br><br>Adn in voicemail.conf<br>add<br>mailcmd=/usr/bin/msmtp -t<br><br>Also you can try to configure sendmail for smtp relay with your ISP<br>This doc was very useful when I try it.<br><a href="http://cri.ch/linux/docs/sk0009.html">http://cri.ch/linux/docs/sk0009.html</a><br> <br>Regards<br><br><div class="gmail_quote">2008/5/14 Tilghman Lesher &lt;<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d">On Wednesday 14 May 2008 17:19:09 Roberto Milani wrote:<br> > I do have a mail transport agent configured<br> ><br> > It is msmtp and it is working just fine I tested it on the command<br> > line and I receive the test email<br> ><br> > I have a link from sendmail pointing to msmtp.<br> > but it never get called.<br> <br> </div>I've noted that the times that you've tested this, you've used<br> msmtp on the command line. &nbsp;Some commands behave differently<br> if you call them with a different name. &nbsp;For example, if sh is linked to<br> bash and you call it, bash drops some of its features to more closely<br> match sh. &nbsp;Could it be that msmtp acts the same way, and you need<br> to test that behavior (calling it as sendmail)?<br> <br> --<br> <font color="#888888">Tilghman<br> </font><div><div></div><div class="Wj3C7c"><br> _______________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br> </div></div></blockquote></div><br><br clear="all"><br>-- <br>Jose Flores Galicia<br>&lt;&lt;<a href="mailto:FloJoSe@gmail.com">FloJoSe@gmail.com</a>>><br>BriefCode &amp;&amp; Code Based Training _______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></div></body></html>