网络邮件可以在没有SMTP服务器的情况下工作吗? [英] Can webmail work without an SMTP server?

查看:446
本文介绍了网络邮件可以在没有SMTP服务器的情况下工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果它很密。我使用Mailchimp满足我的所有电子邮件需求,却不知道其背后的机制如何工作。

Sorry if this is dense. I use Mailchimp for all my emailing needs and have no idea how the mechanics behind it work.

无论如何,我正在查看以下内容:

Anyway, I'm looking at this:

http://rainloop.net/docs/installation/

该指令详细说明了三件事:

And the instuctions detail doing three things:


•从RainLoop Webmail提取文件存档并将其上传到
服务器。

• Extract files from RainLoop Webmail archive and upload those to your server.

•为服务器上的文件和目录设置正确的权限。

• Set correct permissions for files and directories on your server.

•配置服务器(apache / nginx)以防止通过Web浏览器访问配置
文件。

• Configure server (apache/nginx) to prevent accessing configuration files via web browser.

好。 ..而我只是感到困惑,它如何管理这些电子邮件?我所知道的是,您需要在rails项目中配置SMTP设置,以便它可以通过诸如mailchimp之类的外部服务发送电子邮件...

Okay...and I'm just confused how it manages to send these emails? All I know is you need to configure SMTP settings in a rails project so it can send emails via an external service like mailchimp...

一步?就像我说的,我使用邮件服务,但是不知道它是如何工作的,所以在解释时请不要太过忙:)

So how is this working without such a step? Like I say, I use a mail service, but don't know how it intimately works so please don't go overboard when explaining :)

这种巫术的另一个例子无需SMTP即可工作:

Another example of this witchcraft working without SMTP:

http://xmodulo.com/2014/02/rainloop-webmail-ubuntu-server.html

推荐答案

好的,让我们看看是否可以理顺它。 Rainloop的安装重点是为Rainloop配置Web界面。以下是这些步骤的摘要:

OK, let's see if this will straighten it out. Your install of Rainloop focuses on configuring the web interface for Rainloop. Here is a summary of the steps:

  • Extract files from RainLoop and upload... - This simply places the Rainloop files on your server in a place where users can access them when they type http://yourserver.yourdomain.tld/rainloopdir (or where ever you put the rainloop files so they are accessible)

设置文件的正确权限等。 -这告诉您确保在文档根目录下可以访问rainloop文件,并且文件许可权足以供公众阅读。您要提供的文件通常由root(或您的用户或您指定的其他用户)拥有,并且可以在世界范围内读取,但不能在世界范围内写入。 (通常使用 chmod 0755 设置目录,并使用 chmod 0644 设置文件来完成此操作)

Set correct permission for files, etc... - This tells you to make sure the rainloop files are accessible under your document root and that the file permission are sufficient for reading by the public. The files you want to serve are generally owned by root (or your user or some other user you designate) and are world readable, but not world writeable. (dirs are generally set with chmod 0755 and files with chmod 0644 to accomplish this)

配置服务器以防止通过Web浏览器访问配置文件...-这意味着Rainloop中通常有一个目录保存其配置。该目录应该可从网络上访问,但是对于apache用户/组来说,初始设置通常可以对其进行读/写访问,然后便可以对其进行读取。您可以通过3种不同的方式来实现(1)将配置文件的UID / GID设置为apache用户/组。在某些情况下,它们通常是 apache, http或 www(openSuSE)或 wwwuser。将配置文件的所有权设置为(例如http:http)后,然后将读/写权限设置为仅允许http:http访问。换句话说,这些文件不应该是世界可读的,因此目录的权限通常为0750,文件的权限为0640(如果Rainloop必须写入文件,则权限为0660)。访问控制的第二种方式是使用 .htaccess 文件将配置文件的浏览限制为Web服务器本身。第三种控制方式是在httpd.conf文件中执行相同的操作。 (.htaccess文件只是在每个目录中指定apache config参数的快速方法,而无需更改httpd.conf文件)。

Configure server to prevent accessing config files via web browser... - This means that there is usually a directory within Rainloop that holds its configuration. This directory should NOT be accessible from the web, but is generally read/write accessible to the apache user/group for initial setup, then can be read accessible from then on. You can accomplish this 3 different ways (1) set the UID/GID of the config files to the apache user/group. They are generally either 'apache', 'http', or 'www' (openSuSE), or 'wwwuser' on some. After setting the ownership of the config files to (e.g. http:http), you then set the read/write permissions to allow only access by http:http. In other words, these files should not be world readable, so the permissions are generally 0750 for dirs and 0640 for files (or 0660 if Rainloop must write to the files). The second manner of access control is using an a .htaccess file to limit browsing of the config files to the web server itself. The third manner of control is to do the same thing in your httpd.conf file. (the .htaccess file is just a quick way to specify apache config parameters on a per-directory basis without having to alter the httpd.conf file)

为什么..现在到smtp问题。 -不,您通常不需要配置任何东西,因为标准端口上会发生smtp流量,而且只要您不让它们在某些非标准端口上运行,rainloop就已经知道如何与smtp和postfix通信。有关端口号的信息,请参见: Simple_Mail_Transfer_Protocol

Whew.. Now to the smtp issues. -- NO, you generally do not have to configure anything as smtp traffic occurs on standard ports, and rainloop already knows how to communicate with smtp and postfix as long as you don't have them operating on some non-standard ports. See: Simple_Mail_Transfer_Protocol for information about the port number.

总而言之,您应该按照其说明安装Rainloop,只要您没有更改邮件系统使用的端口,Rainloop就会处理其余的工作。

In sum, you should install Rainloop per its instructions, and as long as you have not changed the ports your mail system uses, Rainloop will take care of the rest.

这篇关于网络邮件可以在没有SMTP服务器的情况下工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆