打开:ejaberred.cfgide
修改下面这两行 ,其中 register_from 为新加入this
%% To disable in-band registration, replace 'allow' with 'deny'. {access, register, [{allow, admin}]}. {access, register_from, [{allow, admin}]}.
修改mod_register 模块 为:spa
{mod_register, [ %% %% After successful registration, the user receives %% a message with this subject and body. %% %% {welcome_message, {"Welcome!", %% "Hi.\nWelcome to this XMPP server."}}, %% %% When a user registers, send a notification to %% these XMPP accounts. %% %%{registration_watchers, ["admin1@example.org"]}, {access_from, register_from} ]},