First of all thanks to everybody

I feel the need to clarify the configuration.

from the command line msmtp works, this means that ~.msmtrc is configured properly

I removed the mailcmd line from voicemail.conf , renamed sendmail to sendmail.orig and created a link to msmtp called sendmail in /usr/sbin/ lrwxr-xr-x 1 root wheel 20 May 14 07:28 sendmail - > /opt/local/bin/msmtp

the command:
echo "hello." | sendmail --debug --account=sbcglobal [EMAIL PROTECTED] [EMAIL PROTECTED]
sends the email

I do have voicemail configured in voicemail.conf with valid email addresses, voicemails work fine

this is the my tmp

lrwxr-xr-x@  1 root      admin        11 Nov 15 06:54 tmp -> private/tmp

and I have no emails

no error messages, no logs, nothing
any idea on how to debug this?





On May 14, 2008, at 9:01 PM, Jose Flores Galicia wrote:

That's right.
msmtp behave different depending on the user that invokes de command.
I suppose you are running asterisk like root or asterisk user so the config file must be /root/.msmtprc or /home/asterisk/.msmtprc.
Also, as david notice, in the voicemail.conf line
>mailcmd=/opt/local/bin/msmtp -t ; --from blah
all that comes after ; are ignored when parsed by asterisk.

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.

This is how my configuration file looks like:

#Config file for msmpt
#Default values for all accounts
defaults
logfile /var/log/msmtp.log

# Main Account
account aspinet
host mail.megamailservers.com
from [EMAIL PROTECTED]
auth MD5
user [EMAIL PROTECTED]
password mostseecretpassword

# Set a default account
account default : aspinet


Adn in voicemail.conf
add
mailcmd=/usr/bin/msmtp -t

Also you can try to configure sendmail for smtp relay with your ISP
This doc was very useful when I try it.
http://cri.ch/linux/docs/sk0009.html

Regards

2008/5/14 Tilghman Lesher <[EMAIL PROTECTED]>:
On Wednesday 14 May 2008 17:19:09 Roberto Milani wrote:
> I do have a mail transport agent configured
>
> It is msmtp and it is working just fine I tested it on the command
> line and I receive the test email
>
> I have a link from sendmail pointing to msmtp.
> but it never get called.

I've noted that the times that you've tested this, you've used
msmtp on the command line.  Some commands behave differently
if you call them with a different name. For example, if sh is linked to
bash and you call it, bash drops some of its features to more closely
match sh.  Could it be that msmtp acts the same way, and you need
to test that behavior (calling it as sendmail)?

--
Tilghman

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
Jose Flores Galicia
<<[EMAIL PROTECTED]>>
BriefCode && Code Based Training _______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to