I need to forward all email from an existing account to another account (same domain) that I recently established through Simple Control Panel on our CentOS server. All I see when editing the details of an already-existing account is the ability to change the desk quota for that particular account.
I'm comfortable accomplishing this without Simple Control Panel if necessary.
-
To forward all new mails from one to another you have to add on the virtual_alias the follow:
from@domain.com to@domain.comThen you must run:
postmap /etc/postfix/turbopanel/virtualNow to move all the current files from one mailbox to another we will need to find out some more information from your main.cf
Jonathan Sampson : I tried doing this, but got the error: `bash: postmap: command not found`. Is this something I need to download and install?Prix : run `whereis postmap` it comes with postfix afaikJonathan Sampson : I found it within `/usr/sbin/`, but when I try to run the command `postmap /etc/postfix/turbopanel/virtual_alias` from that directory, I get the same error - `bash: postmap: command not found`.Prix : if you are using ssh, do u login with root or user then root ? if second option after you have logged in with the user do `su -` to change into root, after that `/usr/sbin/postmap /etc/postfix/turbopanel/virtual_alias`Jonathan Sampson : I am in as `su root` already.Prix : only `su -` or `su - root`Prix : To explain a little why, `su root` gives you root permissions but it does not change the PATH variable and current working directory. so you can't execute files in /usr/sbin folder. Hence why you do `su -` or `su - root`Jonathan Sampson : When I login, I provide my normal account details. I then run the command `su root`, and insert the root password.Prix : that could be one of the reasons why the command does not work for you like i said on the above comment so please use `su - root` or `su -`From Prix
0 comments:
Post a Comment