Re: fetchmail and multiple users in one POP3 box
Steve George <steve@blah.dircon.co.uk> wrote:
> Hi,
>
> I currently have mail for a domain which is sent to my ISP's POP3
> server.
> I'd like to have multiple users on the domain be delivered to
> different users
> on my system but the documentation on fetchmail seems to be saying
> that this
> is a bad idea. Is anyone doing this?
>
> Basically I need fetchmail to look at the username in front of the @
> symbol
> and then deliver the mail tothe correct user, for example:
> a@domain.org is john here
> b@domain.org is bert here
Hi, Steve.
I do just that on my system. I have two users, gsmh and scott (Scott's
email name is sah1). I use fetchmail, which hands the mail onto exim for
delivery, so exim gets the mail to the right account. My email address
with my IP is anything@scgf.clara.co.uk, so my IP username is
effectively scgf:
My .fetchmailrc looks like this:
poll pop.clara.net
protocol pop3
username scgf is gsmh an this system
password xxxxxxx
Then I have a .forward file which begins:
# Exim filter <<== do not edit or remove this line!
if error_message then finish endif
logfile $home/eximfilter.log
if $header_to: contains "sah1"
then deliver scott
elif $h_x-mailing-list matches "^<debian-(.*)@lists\\.debian\\.org>"
then seen save $home/Mail/Debian
I (gsmh) am the only user who collects mail so the system works very
smoothly.
--
Phillip Deackes
Debian Linux
Reply to: