Subject: Re: Does mail/dspam play nice with postfix?
To: Quentin Garnier <cube@cubidou.net>
From: Paul Goyette <paul@whooppee.com>
List: pkgsrc-users
Date: 12/29/2007 11:47:46
On Sat, 29 Dec 2007, Quentin Garnier wrote:

> Well, I use a transport_maps entry.  What I currently have in this
> configuration (which I did almost 4 years ago now I think;  I was still
> quite the newbie with Postfix at the time, and Postfix configuration was
> slightly different in those areas) is a regex map that transforms
> spam-${USER}@my.domain.tld into ${USER}@spam.dspam and then a transport
> entry for the spam.dspam domain that gets it into dspam.
>
> It might very well be over-designed for the task, but I have a lot of
> other transformations so I think at the time it was the best way to get
> that processed at the time I wanted it.
>
> Excerpt from main.cf:
>
> canonical_maps = regex:Dspam
> transport_maps = TransportDspam
>
> Contents of "Dspam":
>
> /^spam-([[:alnum:]]+)@eve-team.com$/    ${1}@spam.dspam
> /^notspam-([[:alnum:]]+)@eve-team.com$/ ${1}@notspam.dspam
>
> Contents of "TransportDspam":
>
> spam.dspam      dspam-relearn-spam
> notspam.dspam   dspam-relearn-innocent
>
> IIRC, the need for the canonicalisation of the address that way is so I
> could use ${USER} in the master.cf entry.

Ah.  So, each user still has to forward stuff his/her personal spam-
relearning addresses;  I was sort of hoping to avoid that, and just
have each user forward stuff to 'spam@mydomain.tld' but I guess that 
just isn't going to work.

Thanks for the help.


----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
----------------------------------------------------------------------