<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 2:44 PM, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com" target="_blank">vadud3@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">How do I can change the <a href="http://foo.com" target="_blank">foo.com</a> to <a href="http://bar.com" target="_blank">bar.com</a> for every users email address in RT ?<br>


<br>
<a href="http://foo.com" target="_blank">foo.com</a> is invalid and need to be replaced by <a href="http://bar.com" target="_blank">bar.com</a> to avoid error like this<br>I had a suggestion from <a href="mailto:ktm@rice.edu">ktm@rice.edu</a> to patch<br>


local/lib/RT/User_Local.pm to allow <a href="http://foo.com" target="_blank">foo.com</a> as well. However since<br>
there should not be<br>
any <a href="http://foo.com" target="_blank">foo.com</a> (compnay is bought and moved to <a href="http://bar.com" target="_blank">bar.com</a>) I think I like to<br>
attempt to just change the email address since it works fine<br>
when I do it manually for a user. I just want to do it for all <a href="http://foo.com" target="_blank">foo.com</a><br>
users through script or database?<br></blockquote><div><br></div><div><br></div><div style>Should I use  RT::Extension::MergeUsers ? I have 4820 enabled users and another 80 disabled users with </div><div style>email domain <a href="http://foo.com">foo.com</a>. I need to move them to <a href="http://bar.com">bar.com</a>. <a href="http://foo.com">foo.com</a> is not valid anymore and causing </div>

<div style>issues like this for old accounts like '<a href="mailto:john.doe@foo.com">john.doe@foo.com</a>' when trying to create new tickets from '<a href="mailto:john.doe@bar.com">john.doe@bar.com</a>'</div>

<div style><br></div><div style><br></div><div style><div>[Wed Apr 10 22:05:02 2013] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Comments: Autocreated on ticket submission, Disabled: , EmailAddress:</div>

<div> <a href="mailto:john.doe@bar.com">john.doe@bar.com</a>, Name: jdoe, Password: , Privileged: , RealName: John Doe (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:651)</div><div>[Wed Apr 10 22:05:02 2013] [crit]: User creation failed in mailgateway: Name in use (/opt/rt3/bin/../lib/RT/Interface/Email.pm:244)</div>

<div>[Wed Apr 10 22:05:02 2013] [warning]: Couldn't load user '<a href="mailto:john.doe@bar.com">john.doe@bar.com</a>'.giving up (/opt/rt3/bin/../lib/RT/Interface/Email.pm:806)</div><div>[Wed Apr 10 22:05:02 2013] [crit]: User  '<a href="mailto:john.doe@bar.com">john.doe@bar.com</a>' could not be loaded in the mail gateway (/opt/rt3/bin/../lib/RT/Interface/Email.pm:244)</div>

<div>[Wed Apr 10 22:05:02 2013] [error]: RT could not load a valid user, and RT's configuration does not allow</div><div>for the creation of a new user for this email (<a href="mailto:john.doe@bar.com">john.doe@bar.com</a>).</div>

<div><br></div><div>You might need to grant 'Everyone' the right 'CreateTicket' for the  <== this is always there for last 10 yrs</div><div>queue help. (/opt/rt3/bin/../lib/RT/Interface/Email.pm:244)</div>

<div>[Wed Apr 10 22:05:02 2013] [error]: RT could not load a valid user, and RT's configuration does not allow</div><div>for the creation of a new user for your email. (/opt/rt3/bin/../lib/RT/Interface/Email.pm:244)</div>

<div>[Wed Apr 10 22:05:03 2013] [error]: Could not record email: Could not load a valid user (/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:75)</div><div><br></div></div><div style><br></div><div style><br></div></div>

-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu</a><br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br><br>

</div></div>