Tag: postfix

dpkg:error handling包mail-stack-delivery

在安装这个mail-stack-delivery我想清除配置文件并重新开始,但似乎已经破坏了它: thufir@mordor:~$ thufir@mordor:~$ sudo dpkg –configure -a Setting up mail-stack-delivery (1:2.2.18-2ubuntu2) … grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory grep: /etc/dovecot/conf.d/10-ssl.conf: No such file or directory ln: failed to create symbolic link ‘/etc/dovecot/private/dovecot.pem’: No such file or directory dpkg: error processing package mail-stack-delivery (–configure): subprocess installed post-installation script returned error exit status 1 Errors were […]

邮件服务器配置Ubuntu Server 16.04

我有一个配置运行的Web服务器(Ubuntu Server 16.04 LTS)。 我的目的是在它上面安装一个Mailserver,让所有人都拥有它。 WebServer正在VM上运行。 我怎样才能干净地安装这些东西,避免意外情况的系统崩溃? 阅读我要安装一些我已经安装的apt-get存储库,但是一旦我开始基于apache2和php5(已经在运行服务上的服务)启动Postfix和Dovecot安装,我不确定这是否会重叠或产生冲突机)。 是否有一个非常好的讲座/论坛谁已经处理这个? 我在askubuntu上找不到合适的搜索关键字。 如果您可能需要更多信息,请告诉我在终端上执行的命令,我将在此处发布。 更新2017/06/30 配置Postfix / Dovecot时遇到一些错误。 这是我上传的错误信息 /var/log/mail.err … Jun 30 15:50:47 node01-mail postmulti[1484]: fata: /etc/postfix/main.cf, line 52: missing `=` afterattribute name: “permix_sasl_authenticated, permit_mynetworks, reject_unauth_destination” Jun 30 15:59:36 node01-mail dovecot: imap(user.name): Error: file_dotlock_create (/var/mail/username) failed: Permission denied (euid=1002(user.name) egid=1002(user.name) missing +w perm: /var/mail, we’re not in […]

为什么我发送的电子邮件会被发送到垃

我在我的服务器上使用ubuntu 16.04,最近我按照本教程在服务器上安装了postfix MTA。 问题是我发送的电子邮件是垃圾邮件,而不是收件箱。 知道什么是错的,我该如何解决? 注意到我的域名不是黑名单。 因为几个月前,我在另一台服务器和发送的电子邮件上做了(他们进入了收件箱) 。 我也通过命令行界面发送电子邮件,如下所示: echo “This is the body of the email” | mail -s “This is the subject line” 我现在应该怎么做? 这也是我服务器上的/etc/postfix/main.cf文件,这是我在cloudflare上的DNS记录:

如何配置sSMTP以将电子邮件发送到多个电子邮件地址?

我使用Ubuntu 16.04与Bash,Nginx和sSMTP 。 在这个环境中,我有2个或更多的WordPress应用程序。 sSMTP的基本配置允许它将WordPress联系表单电子邮件从一个应用程序路由到我的个人电子邮件帐户(Gmail)。 sudo cat /etc/ssmtp/ssmtp.conf : root=MY_GMAIL_ADDRESS@gmail.com mailhub=smtp.gmail.com:587 UseTLS=YES UseSTARTTLS=YES AuthUser=MY_GMAIL_ADDRESS@gmail.com AuthPass=___MY_GMAIL_PASSWORD___ rewriteDomain=gmail.com hostname=alien FromLineOverride=YES 我的问题 如果我有2个或更多应用程序,当Ubuntu用户有2个或更多应用程序时,如何重建sSMTP conf? 更新 在您的回答中,请参阅安全问题。 将我的个人Gmail密码暴露在配置文件中似乎是一种安全风险,而不是我想要做的事情。 另一方面,我不想创建第二个Gmail帐户,或者我必须并且应该关闭并执行此操作?…

如何在使用vhosts时配置apache / php / postfix网站电子邮件?

我有一个LAMP网络服务器,配置为多个网站服务。 每个虚拟主机都有各种PHP应用程序,主要是Wordpress。 当用户注册Wordpress站点时,PHP会将电子邮件发送到postfix,然后发送到接收者。 问题是postfix使用/ etc / hostname的内容向远程服务器标识自己,而/ etc / hostname不是完全限定的域名。 某些邮件服务器拒绝此邮件并且邮件会被退回。 此外,返回路径被设置为虚拟主机域之一,似乎是随机的。 我可以将/ etc / hostname设置为其中一个网站域名,但是来自其他网站的电子邮件在标头中会有一个错误的服务器,这不会修复返回路径问题。 可能相关,apache2在启动时说“无法确定服务器的完全限定域名”。 如何解决此问题,以便每个网站都可以发送电子邮件而不会泄露服务器上托管的其他网站? 示例错误: Oct 15 20:29:32 Ubuntu-1204-precise-64-minimal postfix/smtp[17214]: CD087E00DF6: to=, relay=spool.mail.gandi.net[217.70.184.6]:25, delay=0.29, delays=0.12/0/0.09/0.07, dsn=5.5.2, status=bounced (host spool.mail.gandi.net[217.70.184.6] said: 504 5.5.2 : Helo command rejected: need fully-qualified hostname (in reply to RCPT TO command)) 我现在已经在/ etc / hosts和/ etc / […]

在gmail中添加我的域名电子邮件,以“发送邮件为”gmailfunction

我在我的Ubuntu服务器上设置了电子邮件,当我dig mydomain.com mx输出为: ;; ANSWER SECTION: mydomain.com. 86400 IN MX 10 mail.mydomain.com. 现在,当我使用gmail时,我希望能够更改为myusername@mydomain.com的回复。 我之前使用Hostgator域名进行了设置。 gmail中的设置如下所示: 但是当我尝试添加我的新域(通过带有linode的VPS托管)时,我不断收到以下错误: 请记住,我是服务器设置的极端初学者,所以假设如果可能的话,我对你的答案一无所知。 我注意到gmail要求输入密码,但我不记得曾经在我的服务器上为电子邮件帐户设置密码。 我基本上只是安装了postfix并设置了一个虚拟地图,它将所有收到的邮件转发到我的gmail帐户(顺便说一句,这个工作正常)。 此外,我已经尝试过端口465和587。

Linux邮件命令不像以前那样工作

我在我的crontab中使用了以下mail命令,直到上周五我们重新安装了我们的邮件服务器: echo “Testing 123” | mail -s “ECS PostDate Processed” “layton.everson@gmail.com chrish@mycreditcompany.com” — -r “noreply@mycreditcompany.com” -F “ServerCronJobs” 以前“ – ”会将命令行参数路由到sendmail以从名称发送并添加回复地址。 现在似乎被忽略了,所有额外的参数都被视为电子邮件地址。 所以电子邮件将: from root to me, chrish, -r, noreply, -F, ServerCronJobs 现在缺少什么?

在chroot postfix中使用DNS查找

我正在尝试在客户端计算机上设置postfix。 所有机器都应该使用中央ldap目录来进行常见的后缀(例如别名等)。 但是因为在chroot postfix中运行postfix无法解析ldap服务器的主机名。 Postfix mail.log行: Apr 30 13:37:22 host postfix/cleanup[30160]: dict_ldap_debug: ldap_connect_to_host: TCP ldapmaster.domain.com:389 Apr 30 13:37:22 host postfix/cleanup[30160]: dict_ldap_debug: ldap_connect_to_host: getaddrinfo failed: Name or service not known Apr 30 13:37:22 host postfix/cleanup[30160]: dict_ldap_debug: ldap_err2string Apr 30 13:37:22 host postfix/cleanup[30160]: warning: dict_ldap_lookup: Search error -1: Can’t contact LDAP server Apr 30 13:37:22 host postfix/cleanup[30160]: […]

当我尝试使用postfix来映射sasl密码文件时,为什么会出现错误?

我刚刚安装了postfix作为卫星系统。 我需要在我的邮件提供商上进行身份validation。 postfix需要从我的sasl-passwd文件构建一个sasl数据库。 但它没有做到这一点。 如何修复此错误(最后一行)?: root@confus:/etc/postfix# echo ‘smtp_sasl_auth_enable = yes’ >> main.cf root@confus:/etc/postfix# echo ‘smtp_sasl_security_options = noplaintext noanonymous’ >> main.cf root@confus:/etc/postfix# echo ‘smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd’ >> main.cf root@confus:/etc/postfix# ll total 116 drwxr-xr-x 3 root root 4096 2011-06-03 13:56 ./ drwxr-xr-x 154 root root 12288 2011-06-03 13:33 ../ -rw-r–r– 1 root root 318 2011-06-03 13:32 dynamicmaps.cf […]

为什么我不能获得telnet localhost 25,ehlo localhost输出250-AUTH?

如何获得250-AUTH LOGIN的telnet localhost 25输出? 与此处和此处提出的问题类似,我使用Ubuntu 12.04LTS设置了Postfix-Dovecot邮件服务器,但无法对其进行身份validation。 当smtp_tls_auth_only = no ( 这里推荐 )时,我的连接关闭: Trying ::1… Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. Connection closed by foreign host. 当smtp_tls_auth_only = yes ,这就是我得到的: Trying ::1… Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. 220 mydomain.com ESMTP Postfix (Ubuntu) ehlo localhost 250-mydomain.com 250-PIPELINING 250-SIZE 10240000 250-VRFY […]