Re: smtp session fails when using preauthed connections
- To: mutt-users@xxxxxxxx
- Subject: Re: smtp session fails when using preauthed connections
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 4 Mar 2009 00:53:55 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=FAWq8+qhVMSOxiIDOq7+anNvyyQ=; b=B6ED GWrXMDIA8g/iLWyxAHBmEr3xH4cjrWdwxmi/a0mDUkxtRE6dRV9H1BxRQau9i2zd uqHG+1L1DjkxFxx8S/SB3/y5fpuK6zsyF45pb7qlAGAjbqLPna4X18viYKcZh6Tf KC7EWJuWVr7KBQJed/5HbdB0To7xjHXg6B0/A3o=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=Avv7ZvDNWBOff53CnB9qH9iVFgA9P+iYi2LkHSGqDoOkr/TgXeY+MlBHK75Upp7RbPSi3i0+yo5Q53DyuWPvxxHSxSrnrxLBrqpT80mQwjw65mL7M/PHp+CDjIYBlpGX65feTGMsEzcUxiR/9cWlhoFVVCbIkQ1MrOgH/AtxsTg=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090303205720.GA99915@xxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090303205720.GA99915@xxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-01-27)
-----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-----