multidrop fetchmail

30 Apr

multidrop fetchmail

You should probably have the following in /etc/aliases:
root: robert
postmaster: robert
music: robert

And something like this in your .fetchmailrc:
set postmaster=”postmaster@localhost”
server pop3.demon.co.uk
aka list.of.domains.involved
user bdt-home there is * here

(I forget the exact syntax, the ‘set postmaster’ is optional given the
aliases, and the aka might not be applicable – if you have only mail for
the domain bdt-home.demon.co.uk arriving in the remote pop3 mailbox, you
don’t need that line.)

The above is ‘multidrop’ mode – mail is sent to the local MTA (sendmail) as
though anyone in the ‘aka’ list was a valid user-part on the local
host. That way, sendmail’s and its delivery agent decide whether mail goes
to a user (I chose ‘robert’ above as an example – you might have several
folks involved that way), or to what it thinks is a user but is really an
alias (‘music’), or just falls off the end and goes to postmaster (ie
yourself anyway).

There’s also a single-drop mode, something like this:

set postmaster “piglet”

poll glutinous.custard.org with proto POP3 user “piglet”
pass n0t0ny0urne11y

and my approach:

zsh, straw 12:02AM tim % alias mdl
mdl=’fetchmail -m “procmail -d tim”‘
zsh, straw 12:38AM tim %

where *all* mail downloaded winds up going to /var/spool/mail/tim. That’s a
bit crude but it’s still workable.

~Tim