|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alex Miller (postfix
bannerclub.com)Date: Tue Jun 26 2001 - 15:05:38 CDT
On Tuesday 26 June 2001 15:25, Michael Tokarev wrote:
> Alex Miller wrote:
> > This is from way back but I am still stuck.
>
> []
>
> > FYI: The current virtual settings are:
> >
> > vmail.cybergood.net dummyvalue
> > alex
vmail.cybergood.net alex
> > webmaster
vmail.cybergood.net alex
> > astronomy
vmail.cybergood.net spam
> >
vmail.cybergood.net cybergood
> >
> > where alex, cybergood, and spam are linux user accounts
> >
> > If I recieve mail to, let's say,
> > astronomy-newsgroup
vmail.cybergood.net with
> > the subject "Hot teenage babes", it is routed to
> > the user account cybergood, but all I can see from
> > the "To" field is "hotnewsletter". The information
> > that the email address used was
> > astronomy-newsgroup
vmail.cybergood.net is lost
> > and therefore I cannot filter against it's continued use
> > because I am unaware of the full envelope.
>
> I don't remember the details, but this issue is rather simple.
> For your provided example, try e.g. this:
>
> main.cf:
> virtual_maps = pcre:/some/where/virtual
> recipient_delimiter = -
ok, does that mean that my current virtual maps
must be changed?
old
main.cf:
virtual_maps = hash:/etc/postfix/virtual
new
main.cf:
virtual_maps = pcre:/etc/postfix/virtual
and if so, what do I do instead of postmap virtual
every time I edit the virtual table?
>
> /some/where/virtual:
> /^vmail\.cybergood\.net$/ dummyvalue
> /^(.*)
vmail\.cybergood\.net cybergood-$1
So
/etc/postfix/virtual
/^vmail\.cybergood\.net$/ dummyvalue
/^(.*)
vmail\.cybergood\.net cybergood-$1
Does this translate to:
Process strings with vmail.cybergood.net
Replace anything
vmail.cybergood.net with cybergood-anything
I'm just trying to understand it before I go ahead.
>
> and watch Delivered-To: header. With your example
> it will be
> Delivered-To: cybergood-astronomy-newsgroup
$myorigin
> (with appropriate value for $myorigin!).
> Easily to parse and set up filters.
> With some more similar tweaks you may do other things as well.
>
> Regards,
> Michael.
Thanks Micheal,
Alex
> -
> To unsubscribe, send mail to majordomo
postfix.org with content
> (not subject): unsubscribe postfix-users
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]