大网数据广告活动
服务器运维问答

Webmail via imap unix socket - good idea or not?

· 52CE 我爱测

I'm slowly setting up an email system on a Centos 7 server. The particular software I'm using will consist of postfix, dovecot and roundcube, although my question isn't specific to them (I think). I've gotten to the point where p…

问题原文

原帖链接 · Vilx- · CC BY-SA 4.0

I'm slowly setting up an email system on a Centos 7 server. The particular software I'm using will consist of postfix, dovecot and roundcube, although my question isn't specific to them (I think).

I've gotten to the point where postfix and dovecot are working and now I just need to add the webmail (roundcube). It occurred to me that instead of connecting it via a standard TCP/IP IMAP port I could instead use a unix socket. In theory, that should give me better performance/lower overhead, right? I could even close the port 143 entirely, forcing my users to use an encrypted connection (better security), while leaving the unencrypted socket for local access by the webmail (better performance). As far as I can tell, both dovecot and roundcube can be configured in this fashion, but there is no indication that anyone has ever attempted that. Why is that? Am I missing something?

已采纳解答

原帖链接 · Sandor Marton · CC BY-SA 4.0

I don't see how roundcube could be configured that way ? Docs suggest that $config['default_host'] is a hostname. Also probably squirrelmail uses php-imap, and imap_open clearly asks for server.

And imho wouldn't mean much for performance. That overhead ( on localhost ) doesn't mean much vs disk access or doing sorts and stuff

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-08-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。