migrating from thunderbird to mutt?

cpghost at cordula.ws cpghost at cordula.ws
Mon Dec 20 06:21:09 PST 2004


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 at somewhere.com
    hostname = "stmp.somewhere.com:25"
    username = ""
    password = ""

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

identiy = internal at 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 at 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/


More information about the freebsd-questions mailing list