Marco Leeflang <[EMAIL PROTECTED]> writes:

> I setup qmail with several virtual domains and it works great for
> several months.
> every time the linux-box connect to my isp, the isp try to deliver mail
> waiting in the popbox.
> qmail deliver this mail to the users in the virtual domains.
> right now i want to force retreiving mail from my isp by using
> fetchmail.
> 
> i can retreive the mail from my isp but all mail is delivered to
> root@localhost, thats not wat i want.

I have a similar setup and my ISP adds a ``X-Envelope-To'' header to
the emails.  This allows me to direct the email locally.  fetchmail
(with mda option) gets the mail from the pop server and delivers it to
procmail which then redirects it locally according to the
``X-Envelope-To'' header.

Here are extracts from my config files:

/etc/fetchmail.conf:
defaults fetchall forcecr 
mda "procmail "
poll my.isps.net protocol pop3
        username "me"
        password "topsecret"

/etc/procmailrc:
:0
* ^X-Envelope-To:.*(root|master)@xix\.com
! [EMAIL PROTECTED]

:0
* ^.*From:.*egreetings\.com
/dev/null

:0
* ^X-Envelope-To:.*user1@xix\.com
! [EMAIL PROTECTED]

:0
* ^X-Envelope-To:.*(mob|.*bartz|manfred.*)@xix\.com
! [EMAIL PROTECTED]


HTH
-- 
Manfred Bartz  <[EMAIL PROTECTED]>  PGP_ID=0xF172019B

Reply via email to