Thanks for the help.

should also be corrected in the file sender_canonical?

/@gmail.com/ nore...@kiusys.com

/@gmail.cl/ nore...@kiusys.com

/@hotmail.com/ nore...@kiusys.com

/@outlook.com/ nore...@kiusys.com

/@satena.com/ nore...@kiusys.com

/@mayair.com/ nore...@kiusys.com

/@gmail.co/ nore...@kiusys.com

/@octopus.com.co/ nore...@kiusys.com

/@taccolombia.com/ nore...@kiusys.com

/@turpialairlines.com/ nore...@kiusys.com

/@.*/ nore...@kiusys.com

Regards!!

On Tue, Apr 19, 2022 at 11:31 AM Wietse Venema <wie...@porcupine.org> wrote:

> Wietse Venema:
> > SysAdmin EM:
> > > Hi!!
> > >
> > > I am using the prepend option as follows:
> > >
> > > / From: (.*@mydomain.com)/ PREPEND Reply to: $1
> > >
> > > When the mail arrives I see that it does this way:
> > >
> > > Reply-to: "nore...@equair.com.ec" <<no-re...@kiusys.com
> > >
> > > I see an additional symbol added (<)
> >
> > The '<' was already present in the From: header.
> >
> > > any help?
> >
> > If you must do this, why not copy the entire From: value?
> >
> >     /^From:(.+@example\.com\b.+) Reply-To:$1
>
>
> Correction for missing '/' at te end of the pattern:
>
>     /^From:(.+@example\.com\b.+)/ Reply-To:$1
>
> > Note: the \b matches a word boundary, and the \. matches . instead
> > of every character.
> >
> > Test your patterns agains the following:
> >
> >     postmap -q 'From: First Last <u...@example.com>' pcre:/path/to/file
> >     postmap -q 'From: u...@example.com (First Last)' pcre:/path/to/file
> >
> >       Wietse
> >
> >
>

Reply via email to