Articles of 后缀

后缀传出的邮件突然被推迟

在“Mail For Domain”模板下更改“包含域的用户名格式”后,我无法使用postfix发送邮件。 基本上我有一切工作,但然后更改默认的用户名从user.domain [email protected] ,然后删除,并重新创build我的电子邮件帐户(包括在主目录下的相关文件)在这种新的格式。 一旦完成,我无法发送任何电子邮件,无论是从我重新创build的帐户,或从全新的帐户。 我恢复以前的模板设置和重新创build帐户,也没有工作。 下面是我尝试发送邮件时在/var/log/mail.log出现的一个例子。 Jul 16 19:02:17 host postfix/smtpd[11772]: connect from localhost.localdomain[127.0.0.1] Jul 16 19:02:17 host postfix/smtpd[11772]: 691B9138176E: client=localhost.localdomain[127.0.0.1] Jul 16 19:02:17 host postfix/cleanup[11775]: 691B9138176E: message-id=<[email protected]> Jul 16 19:02:17 host postfix/smtpd[11772]: disconnect from localhost.localdomain[127.0.0.1] Jul 16 19:02:17 host postfix/qmgr[10765]: 691B9138176E: from=<[email protected]>, size=666, nrcpt=1 (queue active) Jul 16 19:02:17 host postfix/qmgr[10765]: […]

在ubuntu 14.04下的postfixconfiguration

我的专用服务器运行Ubuntu 14.04。 它也被configuration为一个DNS服务器(绑定),我的域名toto.be指向它。 我也安装了postfix,添加了mxlogging,添加了iptables规则,打开input端口53(udp + tcp)。 好吧,现在我正在testing。 在我的服务器上,我可以发送一封电子邮件给本地用户root 在我的服务器上,我可以发送电子邮件到外部电子邮件地址([email protected]) 从Gmail,我不能发送电子邮件到[email protected] 在我的日志 Oct 2 14:45:35 mail postfix/smtpd[31278]: connect from mail-qc0-x22b.google.com[2607:f8b0:400d:c01::22b] Oct 2 14:45:36 mail postfix/smtpd[31278]: NOQUEUE: reject: RCPT from mail-qc0-x22b.google.com[2607:f8b0:400d:c01::22b]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-qc0-x22b.google.com> Oct 2 14:45:36 mail postfix/smtpd[31278]: disconnect from mail-qc0-x22b.google.com[2607:f8b0:400d:c01::22b] 在我的main.cf中,我尝试将google.com添加到mynetworks,但是我不认为这是解决scheme(针对所有其他域的解决scheme)? mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 google.com 现在该消息被接受但不能被传递 […]

Spamassassin不尊重我的黑名单

我试过把我的blacklist_from和whitelist_from行放在~/.spamassassin/user_prefs和/etc/spamassassin/local.cf ,但是它们似乎被忽略了。 这是来自postfix的master.cf : smtp inet n – – – – smtpd -o content_filter=spamassassin spamassassin unix – nn – – pipe user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} 我从Google上find的一些指南中复制了这些信息,说实话,我不知道为什么spamc将邮件传送到sendmail。 我不知道我应该提供什么,而且我不想发布粘贴所有configuration文件的大问题。 只要问一下,我会编辑我的问题。

后缀别名只能转发给本地用户

我已经使用这个教程设置了Dovecot和Postfix,它可以用来接收和发送邮件。 别名也可以正常工作,但只适用于本地用户。 即我可以从[email protected]转发到[email protected],其中只有realaddress被定义为虚拟用户(使用MySQL)。 我想要做的是转发到外部地址,如Gmail或其他邮件服务器。 我所有的configuration文件都完全符合上面的链接。 我试过添加 virtual_alias_domains = 到postfix / main.cf,但是没有解决任何问题。 也手动添加域,即 virtual_alias_domains = forwarddomain.com 没有工作。 我得到的错误是 to=<[email protected]>, orig_to=<[email protected]>, relay=mydomain.com[private/dovecot-lmtp], delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced (host mydomain.com[private/dovecot-lmtp] said: 550 5.1.1 <[email protected]> User doesn't exist: [email protected] (in reply to RCPT TO command)) 。 输出postconf -n: alias_database = hash:/ etc / aliases alias_maps = hash:/ etc / aliases […]

Postfix中继和存储

所以,我正在build立一个备份邮件服务器。 我得到了它传递消息(保存它们排队,然后,一旦主要的,把他们交付给主)。 它采取了以下两行: relay_domains = $mydestination domain.tld smtpd_recipient_restrictions = permit_mynetworks check_relay_domains 然而。 我希望辅助中继不仅传递消息,而且还将其存储到本地邮箱(本地邮箱提供所需的名称存在),所以我可以通过例如roundcube webmail在紧急情况下访问它们。 我如何让Postfix同时中继和接收消息?

后缀查找失败:从本地主机,而不是局域网中的其他节点

当在同一networking上尝试使用Postfix和Gmail从主机以外的其他机器发送电子邮件时,我收到临时查找失败的收件人地址。 在Postfix主机上testing时,它工作得很好。 编辑:我有一个客户端节点在同一局域网问这个Postfix服务器发送一封电子邮件。 服务器拒绝,引用临时查找失败。 为了得到我所在的地方,我遵循了这些指示: https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/ 然后,我将mynetworks参数更改为包含我们LAN的.3子网上的任何节点。 我试图解决这个问题: 1)为特定的电子邮件地址添加别名,然后运行新的别名 2)将relay_domains添加到main.cf 3)将sasl_passwd文件更改为包含:smtp.gmail.com或COMPANYNAME.com 4)在main.cf中将relay_host的值更改为smtp.gmail.com或smtp.COMPANYNAME.com 5)在main.cf中改变mydestinations的值 这是我的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 […]

helo消息设置为本地主机名

我在DigitalOcean上有一个小滴,并决定使用postfix和dovecot来实现我自己的邮件服务器。 一切工作正常,我能够通过邮件客户端(Airmail for Mac)发送和接收电子邮件。 我的液滴是debian,我按预期设置了所有的DNSlogging。 我设置了以下限制(在postfix main.cf上): smtpd_banner = $myhostname ESMTP smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, reject_unknown_helo_hostname, permit smtpd_recipient_restrictions = reject_unknown_client_hostname, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_sender 奇怪的是,我的电子邮件被拒绝,主机名是如何设置在我的本地机器(而不是服务器)。 所以,如果我将我的电脑上的主机名设置为example.local,则邮件helo消息将被拒绝,但是如果将其设置为example.com,则会发送消息。 如果我没有弄错,我的电脑主机名应该不会影响发送/接收的电子邮件。 任何想法为什么发生这种情况?

SMTP错误(451):无法添加收件人。 临时查找失败

在Debian服务器上安装了iRedMail 可以login到Roundcube 从Roundcube发送邮件会导致以下错误: SMTP错误(451):无法添加收件人“[email protected]”。 临时查找失败。 /var/log/mail.err mydomain roundcube: SMTP Error: SMTP error: Failed to add recipient '[email protected]' in /usr/share/apache2/roundcubemail-1.0.4/program/lib/Roundcube/rcube.php on line 1505 (POST /mail/?_task=mail&_unlock=loading1425838552649&_lang=de_DE&_framed=1?_task=mail&_action=send) /var/log/mail.info postfix/cleanup[26223]: warning: proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf lookup error for "[email protected]" postfix/cleanup[26223]: warning: B8B82101DF6: sender_bcc_maps lookup problem postfix/pickup[25858]: warning: maildrop/82D57FFE93: error writing B8B82101DF6: queue file write error postfix/pickup[25858]: warning: B8E3C101DF6: message has been queued […]

具有多个IP地址的服务器上的Postfix会在头中发送错误的HELO邮件

我有一个VPS多个IP地址: venet0:0 xxx2 venet0:1 xxx3 venet0:2 xxx4 venet0:3 xxx5 所有IP都有Alogging m2.domain.com – > xxx2 m3.domain.com – > xxx3 m4.domain.com – > xxx4 m5.domain.com – > xxx5 和rDNSlogging xxx2 – > m2.domain.com xxx3 – > m3.domain.com xxx4 – > m4.domain.com xxx5 – > m5.domain.com 我已经安装了postfix + dovecot + mysql + opendkim。 这是我的master.cf启动SMTP的一部分: xxx2:smtp inet n – […]

Postfix别名只能从本地用户使用

我只是设置了一个Postfix实例,并在/etc/aliases添加了一些名字。 例如,拿这个: root: toor, nobody foo: root, [email protected] foo2: foo, [email protected] 我成功地运行了newaliases ,现在每当我从同一个域中的任何电子邮件地址发送一封电子邮件到foo2 (比如说bar.bar ),它就会被正确地发送。 每次有人发邮件给[email protected]它都会以Recipient address rejected: Access deniedpopupRecipient address rejected: Access denied 。 输出postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases config_directory = /etc/postfix inet_interfaces = all local_recipient_maps = proxy:unix:passwd.byname $alias_maps # Not sure about this mailbox_size_limit = 0 mydestination = foo.bar.bar, bar.bar, […]