PDA

View Full Version : aliases/.redirect solutions



jalal
09-11-2003, 04:50 AM
After my account was transferred, all my email aliases/redirects had disappeared, and with the slow speed of the Site Manager, it would have taken a few hours to enter them all by that method. Here is a quicker way.

My old ~/.redirect file had been renamed to ~/.redirect.bak.

The new mail information is stored in /etc/mail.

Open up the /etc/mail/aliases file in your favorite editor (why don't we have 'vim' on Westhost2?) and add all the old redirect names into this file. If you are comfortable with *nix and vi, then you can do something like:
$ cat ~/.redirect.bak >> /etc/mail/aliases
and then edit the results. The necessary changes should be clear from the examples that are in there already (near the end).

Also, edit the file /etc/mail/.alias_type, each line has the form:
boris:Email
to make it an email alias.

There is one other file that needs to be changed, but I'm not sure of the purpose, that is /etc/mail/virtusertable. Again, the format should be clear when the file is opened.

Then run the command:
$ newaliases

and the aliases should appear in the control panel.

HTH someone. It saved me a couple of hours.

Tim

torrin
09-11-2003, 09:10 AM
Open up the /etc/mail/aliases file in your favorite editor (why don't we have 'vim' on Westhost2?)

We lost vim (http://www.vim.org/)!? That's the first thing I'll be installing back. :cry:

lobstershell
09-17-2003, 05:51 PM
Does anyone know how to properly implement the virtusertable to do things like bounce specific users with the
error:nouser error? newaliases won't rebuild and makemap errors out because it wasn't compiled with dbm access.

The .redirect file used to use
user_unknown, btw.

jalal
09-18-2003, 01:05 AM
We lost vim (http://www.vim.org/)!? That's the first thing I'll be installing back. :cry:

Let me know if you manage... vim has a few lib dependencies that make it a little more complicated.


8)

FZ
09-18-2003, 07:58 AM
lobstershell,

Did you not try the method I explained in reply to your question?

http://forums.westhost.com/phpBB2/viewtopic.php?p=4763#4763

It isn't as complicated as it looks if you do exactly what I explain. I know it is not a substitute for properly functionality, but it is a short-term solution.

torrin
09-18-2003, 09:39 AM
Let me know if you manage... vim has a few lib dependencies that make it a little more complicated.

Alright, as soon as I'm upgraded to Westhost 2.0, I'll give it a try and see. I've downloaded and compiled vim (http://www.vim.org) on Solaris before so I don't think it will be too difficult, but we will see.

For some strange reason, the people over at sun (http://www.sun.com) thinks that we can get by with vim 3.0. I wonder if that had anything to do with Bill Joy (http://www.sun.com/aboutsun/media/ceo/mgt_joy.html) working for them. For those who don't know Bill Joy wrote the original vi (http://www.theregister.co.uk/content/4/32780.html) back in the 70s.

kathy
09-24-2003, 11:01 PM
Hello All,

Maybe someone can help me. I have been unable to add new aliases, though I was able to do so a few days ago. Now I get the following message:

Command add on alias failed. Server failed
to perform operation due to a run time error.

I tried to follow the directions for editing the 3 files in the etc/mail folder, but all that happened is that the aliases appeared in the list but don't work Any ideas? Maybe there is another file that has to be edited (I edited aliases, virtusertable, and alias_type.

Thanks in advance for any help you can offer.

jalal
09-25-2003, 12:23 AM
Hi Kathy

Did you edit them on the server? Or download, edit and upload? If the latter, then make sure (if you're using Win or Mac) that the line endings haven't got messed up.