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

Re: smtp session fails when using preauthed connections



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, March  4 at 05:57 AM, quoth Kouichiro Iwao:
>I have problem sending email with mutt built-in smtp function.
>I am using mutt 1.5.19 on freebsd machine and I store emails
>in ~/Maildir directory.  I set muttrc file like below.
>
>set tunnel="/usr/local/bin/imapd ~/Maildir"
>set folder="imap://localhost/"
>set spoolfile="imap://localhost/INBOX"
>set record="+INBOX/Sent"
>set postponed="+INBOX/Drafts"
>set smtp_url="smtps://smtp.club.kyutech.ac.jp:465/"
>set send_charset="iso-2022-jp"
>
>I want to access mailbox via preauth imap and want to send email via
>remote smtp server with mutt embeded smtp client. But when sending
>email, mutt puts error message "SMTP session failed: * PREAUTH Ready.".
>
>Any ideas to avoid this problem?

What's going on is that mutt is using $tunnel for SMTP as well as for 
IMAP. This is precisely the sort of thing that the account-hook was 
created for. Try this:

account-hook imap://localhost/ 'set tunnel="/usr/local/bin/imapd ~Maildir"'
account-hook smtps://smtp.club.kyutech.ac.jp:465/ 'unset tunnel'

~Kyle
- -- 
You cannot reason a person out of a position he did not reason himself 
into in the first place.
                                                      -- Jonathan Swift
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkmuJYMACgkQBkIOoMqOI17OWACg4oYk8GVKE9aNQiN09Q4nzQa7
T20AoPQ0C4iT3twHrrCqPLvbAKm7PkLc
=o/PI
-----END PGP SIGNATURE-----