Re: How can I change the FROM address for my users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Arthur,
On Monday, October 02, 2006, Arthur wrote:
> A big company (BigCo.com) bought the smaller company (SmallCo.com) for
> which I work.  My SmallCo.com mail server has about 500 users.  When my
> SmallCo.com users send email through the SquirrelMail web client now, I
> would like the "from address" for the outgoing mail to be
> user@xxxxxxxxxx  How can I change this for one user?

> If I can change this for one user, I can probably write a script to
> change all my other users.  Note that the usernames do not map exactly;
> that is, JoeSmith@xxxxxxxxxxx might map to smithj@xxxxxxxxx while
> JaneSmith@xxxxxxxxxxx might map to smithja@xxxxxxxxxx  I can deal with
> the mapping myself.  But I do not know how to set this for even one
> user.

Are you using file preferences, or database preferences?  If file
preferences, you can use a simple perl one liner...

  perl -pi -w -e 's/smallco/bigco/ig;' *.pref

This will replace all occurances of smallco with bigco
(case-insensitive).  This would need to be executed from the prefs
folder (see $data_dir in config/config.php).  Make a backup first
obviously.  If you're using database prefs, it might take a little
more work.

- --
Jonathan Angliss
<jon@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFFKxJaK4PoFPj9H3MRAs5QAJ9x9j1pZm0gMSDOF+EBkjFsVxV0MACeMfQA
6Mg38R2XydWzOZfZ5aodkw4=
=N4Kl
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux