Hello
Thank you for the response... And now I know about not editing the queue
.
We did try using the virtual_aliases_maps at the start of trying to solve
the issue. However I could not figure out how to add this address [ I
tried many ways using '\' before many of the spaces and other characters...
] :
(host smtp.fantinibakery.com[10.1.10.14] said: 550 5.1.1 <CDR =${
FROM_DID}@fantinibakery.com>: Recipient address
rejected: User unknown in local recipient table (in reply to RCPT TO
command))
"CDR =${FROM_DID}"@
fantinibakery.com
Next time will try more ways of adding the address to virtual.
On Fri, Jun 27, 2014 at 12:01 AM, Noel Jones <[email protected]> wrote:
> On 6/25/2014 5:10 PM, Robert Fantini wrote:
> > Hello
> >
> > due to a bug in some other software we have mail occasionally get
> > stuck in the queue.
> >
> > I've tried editing /var/spool/postfix/defer/1/176CD2193E to fix
> > the address, but after running 'postfix flush' , that files reverts
> > to its original recipient. I could not find another file to edit..
> > This is a centos system, version 5 I think.
> >
> > So is there a way to change the recipient?
> >
> >
> >
> > Version : 2.6.6
> > Release : 2.2.el6_1
> >
> >
> > best regards. rob
> >
> >
>
>
> Please don't ever edit the queue file directly for any reason. That
> is not supported and can give unpredictable results.
>
> To rewrite a bad recipient, use a virtual_alias_maps entry, then
> requeue the bad message with "postsuper -r QUEUEID". The domain does
> *not* need to be defined in virtual_alias_domains.
>
>
> # main.cf
> virtual_alias_maps = hash:/etc/postfix/virtual_aliases
>
> # virtual_aliases
> [email protected] [email protected]
>
> # postmap virtual_aliases
>
> (and if you changed main.cf)
> # postfix reload
>
> # postsuper -r QUEUEID
>
>
>
>
> -- Noel Jones
>