Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2004 15:21:10 +0100
From:      cpghost@cordula.ws
To:        Matthias Buelow <mkb@mukappabeta.de>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: migrating from thunderbird to mutt?
Message-ID:  <20041220142110.GA845@bsdbox.farid-hajji.net>
In-Reply-To: <41C62755.2030705@mukappabeta.de>
References:  <41C4FA1C.4090006@nbritton.org> <41C62755.2030705@mukappabeta.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 20, 2004 at 02:13:57AM +0100, Matthias Buelow wrote:
> Nikolas Britton wrote:
> >Can mutt handle um like 5+ email address and have them all separated and 
> >be able to send from diffrent email accounts?
> 
> No.
> 
> >If I remember right mutt is just a mail reader, so how do I get mail to 
> >and sent from mutt?
> 
> By setting up your MTA (sendmail, postfix, qmail).  Alternatively, you 
> can use mutt with pop3 or imap4 but its support for these protocols is 
> primitive at best.  And then you'd still have to configure sendmail for 
> outgoing mail.

You can also install /usr/ports/mail/esmtp and use this to send
mails via an smtp server of your choice.

Setting this up with mutt is pretty easy:

1. in your ~/.muttrc, add:

set sendmail="/usr/local/bin/esmtp"
set envelope_from="yes"

Now mutt will use esmtp (instead of sendmail) to deliver outgoing mails.

2. in your ~/.esmtprc configure your identities:

identity = someone@somewhere.com
    hostname = "stmp.somewhere.com:25"
    username = ""
    password = ""

identity = someoneelse@example.com
    hostname = "1.2.3.4:25"
    username = "secret@example.com"
    password = "somepassword"

identiy = internal@example.org
    hostname = "127.0.0.1:25"
    username = ""
    password = ""

esmtp will contact the appropriate SMTP server on your behalf
and will use the correct credentials to connect (if required).

3. Now fire up mutt, and compose an E-mail with 'm'.
After you've finished typing your mail, change the sending
address (From header) with 'ESC f' to match one of your
identities. For example, using someoneelse@example.com
will direct esmtp to send mail via the server 1.2.3.4 using
the specified credentials. Then send the message with 'y'

4. The other way around is also possible. You can access multiple
IMAP mailboxes from within mutt like this:

type 'c' to change (open) to a new mailbox. Enter the IMAP URL of
your mailbox like this:

imap://someone@somewhere.com@imapserver.somewhere.com/

(defaults to INBOX)

imap://someoneelse@example.com@imap.example.com/INBOX.Spambox

Cheers,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041220142110.GA845>