如何配置sendmail的docker的exim [英] How to configure exim with docker for sendmail

查看:392
本文介绍了如何配置sendmail的docker的exim的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用docker容器发送电子邮件,使用这个exim图像

I am using docker container for emails using this exim image

https://registry.hub.docker.com/u/tianon/exim4/

我使用smtp主机作为其他网站中的conatiner名称,

This works fine if i use smtp host as conatiner name in other website and

现在我的joomla网站正在使用sendmail,我无法弄清楚如何将sendmail与exim container

Now my joomla site is using sendmail and i am not able to figure out how to link sendmail with exim container

尝试发送邮件时收到此错误

I get this error when try to send mail

无法执行:/ usr / sbin / sendmail

这是正确的,因为snedmail没有安装在joomla容器中,但是如何修复

thats right because snedmail is not installed within joomla container but how can fix that

推荐答案

根据文档 Joomla拥有向SMTP服务器发送邮件的原生支持。但是,如果这样做不起作用(例如,如果您的扩展名忽略Joomla的设置,并且始终尝试使用本地的 sendmail 二进制),则可以安装sendmail替代执行必要的SMTP事务。

According to the documentation, Joomla has native support for sending mail to an SMTP server. However, if that won't work (e.g., if you have extensions that ignore Joomla's settings and always try to use a local sendmail binary), you can install a sendmail alternative that performs the necessary SMTP transaction for you.

一个常见的解决方案是 msmtp mutt 用户经常使用它们为提供SMTP服务器mutt mailer。 msmtp 客户端与命令行兼容,因此您可以安装 msmtp 然后:

A common solution is msmtp, which is often used by mutt users to provide SMTP server for the mutt mailer. The msmtp client is command-line compatible, so you can install msmtp and then:

ln -s /usr/bin/msmtp /usr/sbin/sendmail

如果您将适当的配置放在适当位置,则应该可以解决您的问题。

Provided that you put the appropriate configuration in place, this should solve your problem.

这篇关于如何配置sendmail的docker的exim的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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