Articles of postfix

BATV过滤Postfix和邮递员

显然Postfix本身不支持BATV标签。 我们希望从FROM字段中去掉这些prvs=标签,因为我们认为我们的邮递员设置有问题(将发件人视为非成员)。 我有一个ISPConfig 3邮件服务器设置。 这包括amavisd-new和clamav。 我安装了dkimproxy ,只是为了validation标签,并把结果放在邮件头(我不希望它拒绝邮件)。 我应该提到我尝试过batv-milter,但是这给了一个错误(“smfi_main失败”)。 我也看了batv-proxy.pl 。 但是这个解决scheme对于Postfix来说似乎更好,build议和amavisd-new结合使用。 这也是在Debian回购站! 我曾尝试设置dkimproxy作为后缀smtpd_proxy_filter但随后连接到dkimproxy的TCP端口(在我的情况下是127.0.0.1:10026)超时。 现在我不知道是否连接到dkimproxy超时,或者如果它是中继连接(我发送到amavisd新,根据下面的configuration)超时。 对于dkimproxy,似乎没有任何日志logging。 # set correct hostname hostname $fqdn-of-my-mailserver # specify what address/port DKIMproxy should listen on listen 127.0.0.1:10026 # specify what address/port DKIMproxy forwards mail to relay 127.0.0.1:10024 难道我做错了什么? 有没有人用BATV过滤和Postfix成功?

无法接收带有Postfix虚拟别名的邮件

我无法接收邮件上的虚拟别名(正常的电子邮件作品进出),我没有尝试虚拟域名,但这就是我要去工作。 所以我有一个Debian Wheezy 7.8 Build:2.6.32-31-pve x86_64 GNU / Linux Postgresql版本:9.1 后缀版本:2.9.6 Dovecot版本:2.1.7 详细输出mail.log Pastebin Logfile输出 时间戳06:14:05的部分是从外部到别名[email protected],而不是正确转发到真正的电子邮件[email protected]时间戳06:14:19的部分是从外部到但是正在工作的[email protected] 我改变了密码和电子邮件+我的域名在输出! 这是我的postconf -n的输出: append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all inet_protocols = ipv4 local_recipient_maps = mailbox_size_limit = 0 mydestination = $myhostname, localhost.$mydomain, localhost mydomain = mydomain.cc myhostname = mail.mydomain.cc mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 […]

后缀 – 中继本地生成的邮件,但接受来自GApps相同域的邮件

我知道禁用所有本地交付的方法是从“mydestination”中删除域,这将导致所有邮件通过我设置的任何中继进行中继。 但我希望postfix接受来自GApps的所有邮件,以便本地交付给dovecot,但是将本地生成的所有邮件都转发回GApps。 例如:我使用本地postfix在服务器上运行webmail。 [email protected]发送一封电子邮件到[email protected]。 如果用户2在本地存在postfix本地传递,不存在 – 我可以添加一个后备中继,将该邮件发送到GApps。 但是我希望postfix始终将这些邮件转发回GApps(这将邮件发送下游邮件到本地传递postfix),无论本地可用性。 所以我可以有一种瀑布模型。 我知道这里有很多相关的问题(没有特别的答案),但基本上我想要的是在gmail和本地dovecot上为同一用户提供一个相同的收件箱。 我通过直接使用GApps SMTP Relay而不是本地的webmailfind了一个临时修复,但是这并不能解决那些与IMAP连接的问题(最终不得不让每个用户访问GApps SMTP)。

Postfix 禁用配额

我使用本教程在Debian Wheezy下设置了Postfix,使用MySQL和虚拟用户。 雷鸟最近给我提醒“你超出你的邮件配额”,保存/移动邮件被拒绝。 我在MySQL的用户表中设置的用户的配额设置为0(零)。 我会认为用户没有配额。 我在Debian Squeeze下也有类似的设置。 在我目前的Wheezy设置中,我实际上忽略了教程中的quoata补丁,希望避免这个问题。 我没有看到任何可能覆盖MySQL用户配额0的configuration。我很确定我试着将配额设置为NULL,结果相同。 我不想设置一个真正的高配额,而是要全面禁用配额。 顺便说一句,从我的/etc/postfix/main.cf摘录 mailbox_size_limit = 0 更新,我使用Courier作为邮件传递代理,我注意到下面的文件可能是设置配额?: /home/vmail/domain.com/username/maildirsize 51200000S 49536186 764 我还没有信任自己编辑或删除这个文件。

mail客户端Thunderbird不会从dovecot / postfix邮件服务器读取新的邮件

我运行一个服务器: Debian GNU/Linux 7.8 (wheezy)并使用默认邮件系统(exim)与普通用户(没有vmail)邮件。 邮件系统对某些用户不能正常工作,所以我根据这个德语教程删除了exim并安装了postfix / dovecot。 一切工作正常。 我用老用户连接了Thunderbird,成功了。 我还能看到旧邮件,因为他们仍然坐在收件箱里。 但是,任何接收新邮件的尝试都失败了。 这些邮件坐在~/mail/new 。 我可以在服务器上用“猫”(或其他)读取它们,但不能在客户机中读取它们。 日志文件看起来不错。 我真的不知道该怎么做。 输出postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix home_mailbox = mail/ inet_interfaces = all mailbox_size_limit = 1000000000 mydestination = $myhostname, localhost.$mydomain, $mydomain mydomain = cljhome.net myhostname = www.cljhome.net mynetworks […]

Postfix的行为像域邮箱的开放中继

我有一个邮件服务器运行在Debian 7.8configuration后缀2.9.6。 我的限制是这些: smtpd_sender_restrictions = reject_sender_login_mismatch, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unlisted_sender, permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks #smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination 问题是别名电子邮件可以发送邮件给内部用户没有authentication 示例(所有请求都是在客户端进行的,而不是从本地主机进行的): [email protected] -> [email protected] –> Mail sent [email protected] -> [email protected] –> Mail sent [email protected] -> [email protected] –> Mail sent [email protected] -> [email protected] –> Mail sent [email protected] […]

电子邮件到根 – 在maildir文件上的CentOS和Postfix的permssion错误

我正在尝试设置一个新的邮件中继服务器,仅通过TLS从内部服务器发送电子邮件。 我已经按照这个指南http://www.krizna.com/centos/setup-mail-server-centos-7/到第10步。我只需要发送电子邮件没有收到。 反正我不断收到以下错误,并不知道如何更正根邮件文件夹的权限问题。 有任何想法吗? 先谢谢了! 错误: Sep 25 11:38:39 mx postfix/local[2894]: warning: perhaps you need to create the maildirs in advance Sep 25 11:38:39 mx postfix/local[2894]: C16AA4BE1A: to=<[email protected]>, orig_to=<postmaster>, relay=local, delay=0.06, delays=0.03/0.01/0/0.02, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /root/mail/tmp/1443199119.P2894.mx.mydomain.com: Permission denied) Sep 25 11:38:39 mx postfix/bounce[2895]: warning: C16AA4BE1A: undeliverable postmaster notification discarded Sep […]

Postfix无法发送邮件到谷歌服务器 – >从GOOGLE SERVER

嗨,我有一个由谷歌托pipe的“计算引擎”。 当我尝试通过Postfix发送电子邮件时,它不起作用。 错误日志说: postfix / smtp [16416]:16C5820035:to = <[email protected]>,relay = none,delay = 60,delay = 0.15 / 0.02 / 60/0,dsn = 4.4.1,status = deferred(连接到alt2 .gmail-smtp-in.l.google.com [2404:6800:4003:c01 :: 1b]:25:networking无法访问) 当我尝试ping主机名或它的IP地址,它工作正常。 这是一种错误configuration? 问候,克里斯

添加时间戳到Apache错误日志

所以我一直在Apache日志中得到以下错误: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory 我试图找出它在什么地方/什么时候被尝试,但我不知道在哪里的Apache日志我应该改变conf以获得这个显示更多的信息。 有任何想法吗? 我在我的apache2.conf(我认为会使其适当的格式): ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O" common LogFormat "%{Referer}i -> %U" referer LogFormat […]

Fail2ban发送成功5封邮件后禁止我

亲爱的,我在CentOS 6系统上使用Fail2Ban v0.8.13来保护我的Postfix服务器。 基本上它工作,所以经过5 SMTP错误的login尝试,我被禁止。 Fail2Ban监狱conf [sasl-iptables] enabled = true filter = sasl backend = polling action = iptables[name=sasl, port=smtp, protocol=tcp] sendmail-whois[name=sasl, [email protected], [email protected]] logpath = /var/log/maillog maxretry = 5 我在main.cf中的sasl设置 smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes 我的smtp.conf(Postfix) pwcheck_method: saslauthd mech_list: login CRAM-MD5 DIGEST-MD5 我的EHLO状态(后缀) EHLO mail.xxx.ch 250-mail.xxx.ch 250-PIPELINING 250-SIZE 50480000 250-VRFY […]