Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的系统上有一个厨师环境,它运行的是 Ubuntu Linux 12.10。我似乎无法正确配置厨师以在 Django/Python 中执行 send_mail。我在哪里看。我需要什么配置厨师来做到这一点?我的 Python/Django 代码很好。
您需要先确保在 chef 中设置了 postfix。如果没有,请登录您的 VM,如果厨师正在运行:
sudo apt-get install postfix
然后将 gedit、nano、VIM 或您喜欢的任何内容放入主 conf 文件:
sudo vi /etc/postfix/main.cf
最后,查看您的中继主机设置的内容并将其更改为您希望联系人电子邮件发送的电子邮件地址:
relayhost = mail.your-admin-email.com
看看这是否不能解决你的问题。