OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Changing sender address of messages in the "deferred" queue

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Fri May 05 2006 - 09:12:15 CDT


On Fri, May 05, 2006 at 09:52:46AM +0200, Kenneth Kalmer wrote:

> Guys
>
> Apologies for the double posting. This is about postfix for the
> readers in GLUG...
>
> I've got a bunch of messages lying in my deferred queue that keep on
> getting rejected because of the hostname not being set correctly. I
> changed the hostname of the box, and the hostname settings in main.cf
> but the messages in the deferred queue (obviously) didn't change. I
> tried to do a simple "sed" to replace all instances of
> "localhost.localdomain" to the real domain name, only to have my
> messages move to the corrupt queue...
>
> I need these messages to requeue under a different sender domain... Is
> this possible and how?

It is too late now that you have corrupted the messages. Otherwise the
solution is add appropriate mappings to canonical_maps + "postsuper -r
ALL deferred".

--
        Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
     system/email administrator to architect and sustain the Unix email
     environment. If you are interested, please drop me a note.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.