我正在尝试使用Centos上的postfix服务器在web2py中发送电子邮件。我可以使用gmail SMTP服务器成功发送它,但当我将设置更改为:
mail.settings.server='127.0.0.1:25'
mail.settings.login = 'user:pass'
不会发送任何电子邮件。我检查了日志,我看到了这个:
postfix/smtpd[31521]: connect from localhost[127.0.0.1]
postfix/smtpd[31521]: lost connection after EHLO from loc
我的邮件服务器有问题。我有后缀和dovecot当前配置:/etc/后缀/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
sm
我在Squirrelmail Linux上安装了后缀.
我经营的服务包括:
service httpd
service ssl
service mysql
service postfix
service saslauthd
service dovecot
我已经在centOS服务器上安装了后缀。我想知道当我发送电子邮件时,如何禁用后缀上的所有日志?日志存在于服务器上,甚至存在于我来自SquirrelMail的邮箱中。
我怎么才能发邮件,却什么都不去我的信箱?
谢谢
我在一个盒子上托管了几个域(Linux,Ubuntu13.x),并试图使用PostFix2.102-1将邮件发送到它们。(我在过去10年里使用过sendmail,所以这对我来说是新的。)我所有的MX记录都相应地设置好了,所以外部邮件就可以到达邮箱了。
我遵循了各种在线教程,并在我的倾诉中有以下相关的内容:
main.cf
-------
myhostname = foo.a.com
myorigin = /etc/mailname # this just has 'a.com' inside it
mydestinatio
我一直在尝试用GNU建立邮件列表,但这是一场彻头彻尾的灾难,有很多路障。Postfix可以接收电子邮件,但根本不发送出去,我在日志中查看了一下,这就是我发现的:
Mar 30 16:35:30 apott-server postfix/smtp[22572]: connect to gmail-smtp in.l.google.com[74.125.142.26]:25: Connection timed out
Mar 30 16:36:01 apott-server postfix/smtp[22572]: connect to alt1.gmail-smtp-in.l.google.co
系统:
后缀3.1.2
CentOS 6.8
x86_64上的内核和CPU Linux2.6.32-642.2.el6.centos.plus.x86_64
Dovecot,PostGrey,Amavis
启动后缀后给出警告消息。
[root@sun etc]# postfix start
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf
postfix/postfix-script: starting the Postfix mail system
更新1:
我找到了原因。给出
$ uname -a
Linux xxxx 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
$ cat /etc/aliases
# See man 5 aliases for format
postmaster: root
root: root@xxxx.xxxx
没人收到电子邮件。
$ sudo mail -f /var/spool/mail/nobody
"/var/spool/mail/nobody": 23 messages 1 new 19 unrea
请帮助我解决这个问题:当发送电子邮件客户端,如雷鸟,我有错误#1如下。一些试图向我发送信息的人有错误#2,IP没有出现在任何RBL中,并且有良好的声誉。我可以连接到雅虎的邮件服务器与telnet,没有错误。
错误#1。
The message could not be sent because the connection to SMTP server mail.legacyplanningadvocates.com timed out.
错误#2。
<david@legacyplanningadvocates.com>: 0 Validating Sender: Error: c
我们正在运行CentOS 7,只是将后缀升级到第3版,升级后不会启动。首先,日志中存在一个兼容性问题,但我们按照建议(postconf compatibility_level=2)解决了它。
更大的问题是
postfix: /usr/libexec/postfix/post-install: Error: /etc/postfix/postfix-files is not a file
绝对被困在那里了。我们试图在chmod 777上设置/etc/postfix,尝试使用postfix-install,但是没有任何帮助。
在Debian中运行良好:
#!/bin/sh
time /usr/libexec/postfix/smtp $@
在CentOS中获取邮件日志中的错误:
warning: process /usr/libexec/postfix/smtp_time pid 28456 exit status 1
warning: /usr/libexec/postfix/smtp_time: bad command startup -- throttling
调试错误exec 2>>/tmp/smtp.log; set -x; time /usr/libexec/postfix/smtp
我已经设置了一个后缀+快递服务器,并配置了一个带有SMTP服务器设置的Rails应用程序。每当Rails应用程序试图发送电子邮件时,这就是后缀日志中显示的内容(在master.cf中设置了额外的日志详细信息)
Feb 22 03:57:24 alpha postfix/smtpd[1601]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Feb 22 03:57:24 alpha postfix/smtpd[
当我在Ubuntu 19上使用postfix和SMTP通过Mailgun发送邮件时,我试图添加一个回复到: header到mail。
在用swak进行测试时,邮件工作正常,但是发送到我的最终目的地@protonmail.com的邮件的返回地址是postmaster@mail.mailgunexampledomain.com。
我遵循了这个Q/A linux -为简单的后缀邮件列表添加回复头- Unix & Linux堆栈交换和tarleb的答案,它说:
The Reply-To header can be added using the smtp_header_checks optio
如何配置我的linux机器从终端发送电子邮件。
我尝试了以下方法
apt-get install postfix mailutils
sudo systemctl start postfix
echo "Email Text" | mail -s "Subject" "user@address.com"
但邮件没有寄出。
我还检查了后缀状态,在指南中出现了一些错误。
sudo systemctl status postfix
...
Our system has detected that 550-5.7.1 this message does
我在一个单独的分区上安装了/var,并安装了noexec,nodev,nosuid。通过postfix发送电子邮件不起作用,我的日志中有以下错误:
postfix: fatal: unknown service: smtp/tcp
postfix: warning: private/smtp socket: malformed response
postfix: warning: process /usr/lib/postfix/smtp pid 6569 exit status 1
postfix: warning: transport smtp failure -- see a p
我在AMI Linux上运行后缀2.6.6。此后缀服务器的目的是:
1)在网络上为客户端计算机发送邮件。
2)接收不同用户名和域的电子邮件地址的外部电子邮件,并将这些电子邮件转发到另一个外部电子邮件地址。例如,未知用户向info@example.com发送电子邮件并将其转发给bob@gmail.com。
第一,工作很好。但是,每当任何外部用户向info@example.com发送电子邮件时,Postfix都会给出“中继访问被拒绝”的消息。
这是日志:
/var/log/maillog
Oct 15 18:53:21 mx postfix/smtpd[14196]: connect from m