|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Anders Norrbring (lists
norrbring.se)
Date: Mon Jan 28 2008 - 06:53:17 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mouss skrev:
> Anders Norrbring wrote:
>> Hi!
>> I'm facing a major remodel of my systems due to a very restrictive ISP.
>> They've suddenly announced that they'll block all traffic on port 25,
>> which will have a huge impact on my 30-domain, 400 mail account
>> systems...
>>
>> Anyway, what I'm looking at trying to do, is to have a mail-forwarding
>> system (like ZoneEdit or similar) that forward all mail to one account
>> at the ISP server, and then have my Postfix server poll that for mail,
>> and in my end, sort everything up to the correct recipients.
>>
>> Is it at all possible? A mail-forward from a ZoneEdit server can look
>> like this:
>>
>> Received: from mail6.zoneedit.com (mail6.zoneedit.com [66.240.226.247])
>> by mail.the-server.net (Postfix) with ESMTP id 7B8F314333
>> for <mailpool
norrbring.se>; Mon, 28 Jan 2008 08:32:28 +0100 (CET)
>>
>> Received: from web25613.mail.ukl.yahoo.com
>> (web25613.mail.ukl.yahoo.com [217.12.10.47])
>> by mail6.zoneedit.com (Postfix) with SMTP id 5DA7329640
>> for <anders.norrbring
testdomain.se>; Mon, 28 Jan 2008 02:32:25
>> -0500 (EST)
>> Received: (qmail 85406 invoked by uid 60001); 28 Jan 2008 07:32:24 -0000
>>
>> The original recipient here is 'anders.norrbring
testdomain.se' and
>> the mail-forward sends it to 'mailpool
norrbring.se'.
>>
>> The challenge is to poll the 'mailpool
norrbring.se' for all mail, and
>> then have my local system sort everything out.
>>
>> Can it be done? If so, how can I do it?
>
> To poll mail you need something like getmail or fetchmail. but I'm not
> sure any of these can be configured to use the 2d Received header... you
> can probably modify getmail (written in python) to do that.
>
>
> if at loss, you can deliver to a single mailbox and have
> procmail/maildrop parse the headers and forward to the recipient, but
> this is not simple, because you need to be careful which headers to
> parse (you must not do this for internal mail for example... etc). The
> problem should really be solved as near the source as possible.
>
> Also, see if you can use address extensions (mailpool+id
example.com,
> where id maps to a single user... etc). This may be easier.
>
>
Thanks..
But I'm really not sure if I was helped by that.. Hehe.. To poll in the
mail I'd likely use fetchmail which comes with my SUSE distribution, so
that is the easy part..
It's the rest, the actual processing, that leaves me stumped.
Anders.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]