Re: mutt / OS X / smtp ??

2011-04-03 Thread Brandon Sandrowicz
On Sun, Apr 03, 2011 at 02:11:13PM +0300, thierry stephan wrote:
> Le 03/04/11 13:57, Mark Foxwell a écrit :
> >On 03/04/11 07:08, thierry stephan wrote:
> >>Mutt is working well, except to send emails !!!
> >>I try with :
> >>
> >>- smtp_url
> >>- set sendmail
> >
> >I use msmtp to send mails from mutt, albeit under linux.
> >
> >All I have set in my muttrc for sending is:
> >
> >set sendmail  = "/usr/bin/msmtp -a fastfre...@archlinux.org.uk"
> >
> >nothing else to do with smtp is set - msmtp handles everything else.
> >
> >
> >p.s. you might want to change your smtp password after posting it here!
> >
> >
> >Mark
> >
> 
> As I say, if working as standalone version, with command line, msmtp
> is working well, so I suppose that my .msmtprc is ok.
> The only thing I don't understand well, is the fact that mutt
> doesn't want to send emails ...
> 
> Thx

One possibility:

You don't have your password set automatically for your msmtp setup.
Whatever the $sendmail command is in mutt, it can't accept user
input. So if you are hoping that msmtp will prompt you for your
password so that you don't have to put it in the config file, that
won't work with mutt.

-- 
Brandon


Re: mutt / OS X / smtp ??

2011-04-03 Thread Dennis Preiser
On Sun, Apr 03, 2011 at 09:08:08AM +0300, thierry stephan wrote:
> Mutt is working well, except to send emails !!!
> I try with :
> 
> - smtp_url
> - set sendmail

mutt 1.5.21 on MacOSX 10.6.7 here with no problems. I use:

| set smtp_url="smtps://m...@example.com@smtp.example.com:465"
| set smtp_pass="pass"

If you set both, smtp_url and sendmail in your .muttrc, smtp_url
overrides sendmail.

| 3.263. smtp_url
| 
| Type: string
| Default: (empty)
| 
| [...]
| 
| Setting this variable overrides the value of the $sendmail variable.

Setting a not working smtp_url prevents mutt from sending mail,
regardless of a working sendmail command in your .muttrc.

Dennis


Re: mutt / OS X / smtp ??

2011-04-03 Thread thierry stephan
As I say, if working as standalone version, with command line, msmtp is 
working well, so I suppose that my .msmtprc is ok.
The only thing I don't understand well, is the fact that mutt doesn't 
want to send emails ...


Thx

Le 03/04/11 13:57, Mark Foxwell a écrit :

On 03/04/11 07:08, thierry stephan wrote:

Mutt is working well, except to send emails !!!
I try with :

- smtp_url
- set sendmail


I use msmtp to send mails from mutt, albeit under linux.

All I have set in my muttrc for sending is:

set sendmail  = "/usr/bin/msmtp -a fastfre...@archlinux.org.uk"

nothing else to do with smtp is set - msmtp handles everything else.


p.s. you might want to change your smtp password after posting it here!


Mark





Re: mutt / OS X / smtp ??

2011-04-03 Thread Mark Foxwell
On 03/04/11 07:08, thierry stephan wrote:
> Mutt is working well, except to send emails !!!
> I try with :
> 
> - smtp_url
> - set sendmail

I use msmtp to send mails from mutt, albeit under linux.

All I have set in my muttrc for sending is:

set sendmail  = "/usr/bin/msmtp -a fastfre...@archlinux.org.uk"

nothing else to do with smtp is set - msmtp handles everything else.


p.s. you might want to change your smtp password after posting it here!


Mark



pgpmige0sVtdu.pgp
Description: PGP signature


mutt / OS X / smtp ??

2011-04-03 Thread thierry stephan

Dear all,

I had the crazy idea to use mutt under Mac OS X 10.6.7.
I install mutt-devel through the macports version 1.5.21 with 
"/opt/local/bin/port install mutt-devel +sasl +smtp +gdbm +imap +ssl"


I am running my own emails server with OpenBSD 4.8 / Postfix / Imap / 
STARTTLS ...


Mutt is working well, except to send emails !!!
I try with :

- smtp_url
- set sendmail

-> set sendmail="/usr/local/bin/msmtp --host=eyes.maelenn.org -f 
lenai...@yahoo.fr"


set sendmail="/usr/local/bin/msmtp"

set smtp_url="smtp://t...@maelenn.org@eyes.maelenn.org:587/"
set smtp_pass="irinax6"

=> msmtp is working well ... If I try to make it running alone ...
echo "teste smtp ligne de commande" | /usr/local/bin/msmtp -a toto 
m...@yahoo.fr


=> echo "test" |/sw/bin/mutt -s "etste mail" m...@yahoo.fr
Connexion SSL utilisant TLSv1/SSLv3 (DHE-RSA-AES256-SHA)

What ever the config is (set sendmail or smtp_url) I am able to send 
emails if I am using this two config ...


It seems that mutt doesn't take into concideration all of my .muttrc ...

Any ideas ?

Thx for your support.