默认的postfixextman 后台用户root@extmail.org密码遗忘怎么办,解决办法:

如果是刚安装,extman 后台的用户名/密码为:root@extmail.org/extmail*123*

如果是使用一段时间了,而且忘记了后台密码,并不推荐初始化数据,这样会丢失掉用户数据

这里推荐使用一种方法:

就是从数据库里面去更改manager的密码,更改密码之前要查看密码的加密方式

mysql> use extmail

select * from manager;

root@extmail.org    | $1$kRPBB1$..yHtwzaWnZxXC9A2Qkg/1          | admin      | root | Super User          | my question | my answer |                0 | 2007-02-14 15:10:04 |0000-00-00 |      1 |

是加密的,不是明文的方式,查看mysql的加密方式从webman.cf配置文件中查看

Cat /usr/local/apache/htdocs/extman/webman.cf

sys_crypt_type:crypt|cleartext|plain|md5|md5crypt|plain-md5|ldap-md5|sha|sha1

SYS_CRYPT_TYPE = md5crypt
加密方式是md5crypt,所以,你在更改密码时,也是需要先进行md5crypt加密

Md5 加密的话,就通过grub shell进行就好了

终端下直接输入grub

grub

Probing devices to guess BIOS drives. Thismay take a long time.



  GNU GRUB  version 0.97  (640K lower / 3072K upper memory)


[Minimal BASH-like line editing is supported. For the first word, TAB

 lists possible command completions. Anywhere else TAB lists the possible

 completions of a device/filename.]

grub>md5crypt (加密的方式)

md5crypt

加密的密码

Password: biao_123

Encrypted: $1$MFZBB1$mPWIIchjs5PMyZ26PQ2bR/

加密过后,现在就在数据库里面更改后台管理的密码

登录到mysql库,

执行SQL语句

update manager set password="$1$MFZBB1$mPWIIchjs5PMyZ26PQ2bR/"(加密的密码) whereusername='root@extmail.org';

flush privileges;

现在就可以通过后台URL,使用root@extmail.org/biao_123登录了

登录后台之后,发现会提示你Connectionrefused

只需要启动一个服务就好,是在你extman下的一个cmdserver程序

/usr/local/apache/htdocs/extman/daemon/cmdserver–daemon 就可以解决这个问题了