postfix:以编程方式添加用户

发布于 2024-09-17 19:19:19 字数 996 浏览 7 评论 0原文

我两个月前就问过这个问题,但没有得到任何答案。事实上,我因为提出了一个几乎没有引起兴趣的问题而获得了风滚草徽章。

然而,这似乎是一个简单的问题,有明确的答案,我真的需要能够做到这一点。

如果仍然没有答案,如果有人对任何其他可能对我有帮助的论坛有任何想法,我将不胜感激。我尝试询问 Godaddy,但我想我没有在他们身上花足够的钱来获得这种级别的支持。

谢谢,这是问题:

我正在使用 godaddy 虚拟专用 服务器和默认电子邮件服务器 与它捆绑在一起的是 postfix。 甚至还有一种方法可以添加域和 通过 godaddy 的用户帐户 控制面板。

我试图准确地找出(1) 他们正在做什么来创造 通过控制面板创建新帐户, 然后(2)如何通过 Linux shell 脚本。

我从未使用过 postfix,并且有过 试图涉过那个男人 页面和其他文档。它 出现当用户帐户 与一个域相关联,那么 用户帐户是“虚拟的”。迄今为止 我发现当我使用 godaddy控制面板添加新的 电子邮件帐户,它添加了一个条目 /etc/postfix/turbopanel/virtual_alias.conf 然后,该条目似乎也得到了 致力于二进制 virtual_alias.db 在同一个 目录。

我已手动复制该过程 添加新的电子邮件地址 virtual_alias 文件然后运行 邮政地图 /etc/postfix/turbopanel/virtual_alias 进入 virtual_alias.db 文件。这可行,但是 缺少一些步骤:我不能 向添加的用户发送电子邮件,以及 用户没有出现在 Godaddy 控制面板。

我认为没有新的 Linux 帐户 需要为虚拟创建 别名。通过以下方式创建的帐户 控制面板没有 /etc/passwd 中的相关条目。

非常感谢任何帮助。

杰里米

I asked this question two months ago and got nary an answer. In fact I earned the tumbleweed badge for asking a question that garnered so little interest.

However, this seems like a straightforward question with a definitive answer and I really need to be able to do this.

If there's still no answers I'd sure appreciate if anyone has any ideas about any other forums that might help me out. I tried asking godaddy but I guess I don't spend enough money with them for this level of support.

Thanks and here's the question:

I'm using a godaddy virtual dedicated
server, and the default email server
that comes bundled with it is postfix.
There is even a way to add domains and
user accounts through the godaddy
control panel.

I am trying to figure out (1) exactly
what it is they are doing to create
new accounts via the control panel,
and then (2) how to do that via a
Linux shell script.

I have never used postfix and have
been trying to wade through the man
pages and other documentation. It
appears that when the user accounts
are associated with a domain, then the
user accounts are "virtual". So far
I've discovered that when I use the
godaddy control panel to add a new
email account, it adds an entry into
/etc/postfix/turbopanel/virtual_alias.
Then, that entry also seems to get
committed to the binary
virtual_alias.db in the same
directory.

I have manually replicated the process
of adding a new email address to the
virtual_alias file and then running
postmap
/etc/postfix/turbopanel/virtual_alias
to get the entry into the
virtual_alias.db file. This works, but
some steps are missing: I am not able
to send email to the added user, and
the user doesn't show up in the
godaddy control panel.

I don't think a new Linux account
needs to be created for the virtual
alias. The accounts created via the
control panel DO NOT have an
associated entry in /etc/passwd.

Any help is much appreciated.

Jeremy

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

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

发布评论

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

评论(1

吃兔兔 2024-09-24 19:19:19

您想为这些虚拟用户创建虚拟邮箱或转发器吗?

请参阅文档
virtual_mailbox_maps = 哈希:/etc/postfix/vmailbox
/etc/postfix/vmailbox

蒂姆
//

Did you want to create virtual mailboxes or forwarders for these virtual users?

see doc on
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
/etc/postfix/vmailbox

Tim
//

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