我们有一个 Postfix 中心,我正在努力更好地理解 mail.log 文件中的信息。我使用 qshape、pflogsumm.pl 和 amavis-logwatch 等工具来汇总日志文件,但我对原始日志文件的某些元素仍有疑问。
我的第一个问题是关于最终发送电子邮件时 Postfix 出现的延迟条目。我猜这些值以秒为单位,但这些信息究竟意味着什么。
delay=2.4, delays=0.18/0.01/1.4/0.81
Run Code Online (Sandbox Code Playgroud)
处理电子邮件总共需要 2.4 秒吗?
延迟部分的时间细分是什么?
当我尝试在我的 postfix 服务器上向同一域中的地址发送电子邮件时(例如,如果服务器主机名是 mail.example.com 并且我尝试向 test@example.com 发送电子邮件),我得到日志中出现以下错误并且电子邮件未送达:Recipient address rejected: User unknown in local recipient table。如果我发送到另一个域上的地址,我没有任何问题。这是我的 /etc/postfix/main.cf 文件:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in …Run Code Online (Sandbox Code Playgroud) 我一直在尝试将电子邮件配置为转发到 Gmail,使用 Postfix 将电子邮件中继到 smtp.gmail.com。但是,我无法通过 smtp.gmail.com 对其进行身份验证,这是使任何工作正常进行的相当重要的先决条件……
邮件日志仅显示:
Oct 29 15:50:14 gsnedders-1 postfix/master[6596]: daemon started -- version 2.7.1, configuration /etc/postfix
Oct 29 15:50:19 gsnedders-1 postfix/pickup[6598]: EBA1F78750: uid=1000 from=<gsnedders>
Oct 29 15:50:19 gsnedders-1 postfix/cleanup[6603]: EBA1F78750: message-id=<20111029145019.EBA1F78750@mail.gsnedders.com>
Oct 29 15:50:19 gsnedders-1 postfix/qmgr[6599]: EBA1F78750: from=<gsnedders@gsnedders.com>, size=324, nrcpt=1 (queue active)
Oct 29 15:50:19 gsnedders-1 postfix/cleanup[6603]: F2D557874F: message-id=<20111029145019.EBA1F78750@mail.gsnedders.com>
Oct 29 15:50:19 gsnedders-1 postfix/local[6605]: EBA1F78750: to=<me@gsnedders.com>, orig_to=<me>, relay=local, delay=0.04, delays=0.03/0.02/0/0, dsn=2.0.0, status=sent (forwarded as F2D557874F)
Oct 29 15:50:19 gsnedders-1 postfix/qmgr[6599]: F2D557874F: from=<gsnedders@gsnedders.com>, size=454, nrcpt=1 (queue active) …Run Code Online (Sandbox Code Playgroud) 我一直在尝试使用 GNU Mailman 设置邮件列表,但这完全是一场灾难,有很多障碍。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.com[173.194.76.27]:25: Connection timed out
Mar 30 16:36:31 apott-server postfix/smtp[22572]: connect to alt2.gmail-smtp-in.l.google.com[74.125.131.26]:25: Connection timed out
Mar 30 16:37:01 apott-server postfix/smtp[22572]: connect to alt3.gmail-smtp-in.l.google.com[173.194.67.27]:25: Connection timed out
Mar 30 16:37:31 apott-server postfix/smtp[22572]: connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out
Mar 30 16:37:31 apott-server postfix/smtp[22572]: A0616100CCB: to=<example@gmail.com>, relay=none, delay=150, delays=0.06/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out)
Run Code Online (Sandbox Code Playgroud)
很明显有些东西阻止了外发电子邮件,有人对如何解决这个问题有任何建议吗? …
我使用了mailq命令,我得到了一行,例如:
A705238B4C 603953 Wed May 23 11:09:58 apache@myserver.com
Run Code Online (Sandbox Code Playgroud)
所以,现在我想知道有没有一种方法可以通过它的 id“读取”邮件的实际内容 A705238B4C
我已经在我的 debian 6 服务器上设置了 ispconfig3,这里有一个通过 ssl 的 smtp:
服务器是后缀
AUTH PLAIN (LOL!)
235 2.7.0 Authentication successful
MAIL FROM: lol@lol.com
250 2.1.0 Ok
RCPT TO: lol@lol.com
RENEGOTIATING
depth=0 /C=AU/ST=NSW/L=Sydney/O=Self-Signed Key! Procees with caution!/OU=Web Hosting/emailAddress=postmaster@lol.com
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=AU/ST=NSW/L=Sydney/O=Self-Signed Key! Procees with caution!/OU=Web Hosting/emailAddress=postmaster@lol.com
verify return:1
DATA
554 5.5.1 Error: no valid recipients
Run Code Online (Sandbox Code Playgroud)
但是,问题是,如果我只是通过端口 25 执行 vanilla telnet,我可以像疯子一样进行身份验证和发送邮件......希望这是足够的信息!(与“mail.app 无法处理 ssl!”相反)
我已经与 MailScanner 一起设置了一个有效的 SMTP 中继。这个 SMTP 中继不能——也不会——能够从外部中继电子邮件,只能中继本地电子邮件。
是否可以使用终端发送恶意电子邮件?我用谷歌搜索,但找不到任何可以回答我的问题的东西。例如,我想使用:
echo "{malicious-string}" | mail name@email.com
Run Code Online (Sandbox Code Playgroud)
可能"{malicious-string}"是什么?
我有以下后缀virtual文件:
test@domain.com bob@me.com
Run Code Online (Sandbox Code Playgroud)
这正确地将所有电子邮件转发test@domain.com到bob@me.com
但是,我也想将这些电子邮件转发给bob2@me.com。
我尝试了此更改,但似乎不起作用:
test@domain.com bob@me.com
test@domain.com bob2@me.com
Run Code Online (Sandbox Code Playgroud)
如何告诉 postfix 将所有电子邮件转发给多个收件人?
向运行 Postfix 作为 MTA 的新 CentOS6 服务器发送大型电子邮件时,将返回以下消息:
tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 552 552 5.3.4 Error: message file too big (state 18)
我发现了以下建议,但不清楚需要在main.cf文件中的何处添加:
这是由 Postfix 引起的,它不仅限制消息,还限制邮箱大小。
我必须在以下位置添加此设置
/etc/postfix/main.cf:
message_size_limit = 31457280
如何在 Postfix 中增加最大邮件大小(包括附件)?
我在上面的错误中挣扎了 5 个多小时。我曾尝试完全删除 Postfix,并按照下一个手册和SASL 手册的说明重新安装它。
当我尝试使用 telnet 登录时,服务器阻止了登录,我得到了这个:(使用 smtpd -v 更详细):
postfix/smtpd[26301]:xsasl_cyrus_server_create:SASL 服务=smtp,领域=(空) postfix/smtpd[26301]: name_mask: noanonymous postfix/smtpd[26301]:警告:xsasl_cyrus_server_get_mechanism_list:没有适用的 SASL 机制 postfix/smtpd[26301]:致命:没有 SASL 身份验证机制
以下是结果postconf -n:
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases allow_percent_hack = 否 append_dot_mydomain = 否 比夫 = 否 broken_sasl_auth_clients = 是 config_directory = /etc/postfix home_mailbox = Maildir/ inet_interfaces = 全部 邮箱命令 = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME 邮箱大小限制 = 0 mydestination = theflipapp.com, localhost.com, , localhost myhostname = theflipapp.com 我的网络 = 127.0.0.0/8 …