<<< Date Index >>>     <<< Thread Index >>>

Re: Mutt + SSL



On Mon, 2009-04-13 at 08:57 -0500, Kyle Wheeler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Monday, April 13 at 12:42 PM, quoth Arthur Dent:
> >I have these entries in my .muttrc
> >
> >set folder="imaps://192.168.123.101:12345"
> >set spoolfile="imaps://mark@xxxxxxxxxxxxxxx:12345"
> >set imap_user = "mark"
> >set imap_pass = "mypass"
> >
> >The problem comes when I come to send mail with mutt. I now get the
> >message:
> >"Could not connect to 192.168.123.101 (Connection refused)"
> >
> >and no mail is sent.
> 
> You haven't told us how you configured mutt to *send* mail? Are you 
> using $smtp_url? $sendmail?
> 

Yes - sorry, this dawned on me only after I sent the previous email. I
was so focussed on the fact that I had just installed the SSL
certificate that I was convinced that that must be the problem.

I send mail through two different smtp servers. I have the following
in .muttrc: (mind the line-wrap)

##########################################################
# MAIL SENDING
##########################################################

#set sendmail= /usr/bin/msmtp
#set sendmail=/usr/sbin/sendmail
# (No longer used)

#Send Mail Through MyISP:
#set smtp_url=smtp://smtp.myisp.co.uk

#Send Mail Through GMail:
set
smtp_url='smtp://mygmailname:mygmailpassword@xxxxxxxxxxxxxxxxxxx:587/'

###########################################################

###########################################################
# Send Hooks
###########################################################

# This one ensures that all mail to the Mutt-users mailing list is sent
by "MT Lists"
send-hook '~C @mutt.org' 'my_hdr From: Arthur Dent
<mt.list@xxxxxxxxxxxxxx>'
send-hook '~C @mutt.org' 'set pgp_sign_as=FDE78872'
send-hook '~C @mutt.org' 'set smtp_url=smtp://smtp.myisp.co.uk'

# + Other similar send hooks using one or other of the two smtp servers

Thanks for your help so far, much appreciated...

Mark