在网站内创建、删除和使用电子邮件帐户!是否可以?

发布于 2024-08-12 21:53:21 字数 323 浏览 2 评论 0原文

我正在为一个网站(在共享主机中)开发一个管理面板(在 php 中),让管理员管理员工的个人信息! 使用此面板应该可以为员工创建或删除电子邮件帐户,如果员工登录管理面板,他/她应该能够访问他/她的电子邮件帐户!

我曾想过在网站上安装 Horde WebMail,让员工使用他们的电子邮件帐户......但是我如何将登录凭据传递给 Horde?

您建议如何创建和删除部落可以读取的电子邮件帐户? 任何其他建议将不胜感激!

提前致谢!!!


编辑: 或者是否有比 Horde 更好的替代方案来至少完成从网站内的电子邮件帐户访问?

I'm developing an administration panel (in php), for a website (in a shared host), to let the administrator to manage the personal infos of the employees!
With this panel should be possible to create or delete an e-mail account for an employee and if the employee logs in the admin panel, he/she should be able to access to his/her e-mail account!

I had thought to install Horde WebMail on the website to let the employees use their e-mail accounts ... but how can I pass the login credentials to Horde?

And what you suggest to create and delete the e-mails account that can be read by Horde?
Any other suggestion is greatly appreciated!

Thanks in advance!!!


EDIT: Or are there better alternatives to Horde to accomplish, at least, the e-mail account access from within the web site?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

痴意少年 2024-08-19 21:53:21

首先,部落似乎是一个客户。请参阅其网站上的功能页面:

IMAP 和 POP3 网络邮件客户端

这意味着将用户的登录信息传递给 Horde 是不够的。我的猜测是,您还必须直接在邮件服务器上创建一个新帐户。一些邮件服务器可以将登录信息存储在 MySQL 或 PostgreSQL 等数据库中。如果这适合您的邮件服务器,您只需在正确的表中添加新用户即可。这称为虚拟用户。

就像您对邮件服务器所做的那样,您只需在部落数据库中添加一条包含正确信息的新记录即可。

这应该只适用于 SQL 语句。如果您想添加一点安全性,请将这两个语句包装在一个事务中。

因此,您可以执行以下操作:

  1. 开始事务
  2. 使用邮件服务器的用户登录名和密码向 Hordes 数据库添加一条新记录
  3. 将一条新记录添加到您的邮件服务器数据库(登录名、密码等)
  4. 提交您的数据(结束)交易)

希望这有一点帮助!

First, Horde seems to be a client. See feature page on their website:

IMAP and POP3 webmail client

This means that it's not enough to pass over the logins of your users to Horde. My guess is that you also have to create a new account directly at your mail server. Some mail servers can store login information in databases like MySQL or PostgreSQL. If this is right for your mail server you just have to add a new user in the correct table. This is called virtual users.

And like you did with your mail server you just add a new record in the database of Horde with the correct information.

This should only take to SQL statements. And if you want to add a little bit of security you wrap these both statements in a transaction.

So you would do something like this:

  1. Begin transaction
  2. Add a new record to Hordes database with the users login name and password for the mail server
  3. Add a new record to your mail servers database (login name, password etc.)
  4. Commit your data (end transaction)

Hope this helps a bit!

笔落惊风雨 2024-08-19 21:53:21

虽然这可能更像是一个懒人的解决方案 - 更不用说违背本网站的整个概念 - 但您是否考虑过仅使用 Google Apps(免费版本):

http://www.google.com/apps/intl/en/group/index.html

While this might be more of a lazy man's solution - not to mention against the whole notion of this website - but have you given any thought to just using Google Apps (free version):

http://www.google.com/apps/intl/en/group/index.html

心的憧憬 2024-08-19 21:53:21

电子邮件帐户是在邮件服务器级别创建的。部落无法完成这部分(仅是客户端)。您将需要直接访问邮件服务器的设置。对于默认的 Linux 服务器设置(sendmail),我认为这是相当标准化的。您可以通过查看 Webmin 来了解如何执行此操作,它可以在 *nix 上执行此操作系统。不过我认为主要是用 Perl 实现的。

还有其他控制面板软件,如 Confixx 和 Plesk,但我认为它们不是开源风格的。我不知道基于 PHP 的开源托管控制面板,也许其他人知道。

您将需要详尽的权限,可能还需要配置 Web 服务器的权限,才能从 PHP 执行这些操作。这是您无法在共享托管平台上运行的。

E-Mail accounts are created on the mail-server level. Horde can not do this part (It's a client only). You will need to access the mail server's settings directly. For a default Linux server setup (sendmail), I think this is pretty standardized. You may be able to gain insight on how to do this by looking into Webmin which can do this on *nix systems. However it's mainly in Perl I think.

Then there is other control panel software like Confixx and Plesk but I think they do not come in an Open Source flavour. I do not know of a PHP based Open Source hosting control panel, maybe somebody else does.

You will need exhaustive permissions, and probably the rights to configure the Webserver, to do these things from PHP. This is nothing you will be able to run on a shared hosting platform.

红衣飘飘貌似仙 2024-08-19 21:53:21

SquirrelMail 有一些与您的邮件服务器集成的插件,允许您创建、维护和删除您的电子邮件用户。它可以完全处理您想要的事情,包括允许雇主管理其员工,而您可以将自己指定为可以管理所有用户的更高级别的管理员,等。请参阅:Vadmin

SquirrelMail has some plugins that integrate with your mail server that allow you to create, maintain, and delete your email users. It can handle exactly what you want, including allowing the employer to manage only their employees, while you can assign yourself as an administrator of a higher level that can manage ALL users, etc. See: Vadmin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文