MUTT - fetchmail? procmail? or only need sendmail?

Sven Pfeifer sven at yagonna.de
Mon Aug 2 23:42:15 PDT 2004


Hi,

Srot BULL <pwd8jmr22w at me.point.ne.jp> wrote:
> Hi,
> 
> I hope that you guys are in the mood to help me out here.
> 
> The Short version:
> I just want to use mutt as my MUA.

OK, so far.

> The Long version:
> I just want to use mutt as my MUA.
> I have diffirent email accounts (all POP Accounts) and I want all emails 
> delivered in different mailboxes that I have created and have mutt read 
> them.

ThatŽs exactly what I do here.

> I went to the mutt homepage and read about mutt not being able to filter 
> emails. It mentioned about fetchmail and procmail. I did some reading 
> but somehow...i give-up maybe because I have been comtemplating and been 
> doing some reading in mutt for days now. I have finally finished my 
> muttrc but, I still use mutt only for testing (i am presently using 
> thunderbird as you can see).
> Now, what would you guys do if you have different POP mail accounts and 
> want them delivered in specific folders.
> Do I really have to use fetchmail to retrieve my emails

Yes, you have to.

First of all I use fetchmail to get all my mail from the different
locations. Here you can find a sample ~/.fetchmailrc

---8<--
### location #1 ###
poll mailserver.location1.com
proto POP3
user username_on_first_remote_server
password password_for_user_on_first_remote_server
is local_username

### location #2 ###
poll mailout.location2.net
proto POP3
user username_on_second_remote_server
password password_for_user_on_second_remote_server
is local_username
-->8---

> and have procmail delivered them to my folders

Why not, procmail does itŽs job very well.

HereŽs the way, I configured procmail (just a sample) in 
~/.procmailrc.

---8<--
###~~~~~~~~~~~~~~~~###
### my first email ###
###________________###
:0:
* ^To:.*my-first-email at location1.com
in/my-first-email

###~~~~~~~~~~~~~~~~~###
### my second email ###
###_________________###
:0:
* ^To:.*my-second-email at location1.com
in/my-second-email
--->8--

> and then have sendmail deliver all 
> my outgoing emails?

No, here you can use another MTA (e.g. Postfix, Exim, etc.).
But for mutt itŽs necesary, that there is a local MTA listening
on port 25. I prefere Postfix, but if you like Sendmail, there
should be no problem.

> Can't sendmail do this all?

No, Sendmail is just a MTA. There is no way to fetch mails
from POP-accounts.

> If you have combinations that you can share please do.

In order te let Mutt know of all these mailboxes, I use 
the option "mailboxes" in my ~/.muttrc.

---8<--
mailboxes ! \			# local mailbox (/var/mail/$USERNAME)
        =in/my-first-email \
        =in/my-second-email
-->8---

> Thanks and hope to hear from anybody...
> 
> Srot BULL

HTH

	Sven

-- 
Why You Can't Find Your System Administrator:
  is pulling a blue snake out of a IBM 3850 (?) DASD in the machine room to give to the CS museum. --Russell Street russells at ccu1.auckland.ac.nz]
-----------------------------------------------------[rand. sig. #135]


More information about the freebsd-chat mailing list