Articles of 后缀

后缀传输中继访问被拒绝

当邮件从我的postfix服务器上的其他邮件服务器(yahoo / gmail)到达时,它会被拒绝,并且不会在我的configuration中使用传输。 一直在检查整天找不到任何东西,希望你的家伙能帮助我。 得到这个错误: 3月20日17:41:19 smtp postfix / smtpd [2103]:NOQUEUE:拒绝:来自mail.com的RCPT [xxx.xxx.xxx.xxx]:554 5.7.1 user_at_transport.com:中继访问被拒绝; from = sales_at_mail.com to = user_at_domain_on_transport.com proto = ESMTP helo = mail.com queue_directory = /raid/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = smtp.example.com unknown_address_reject_code = 554 unknown_client_reject_code = 554 unknown_hostname_reject_code = 554 mynetworks = /etc/postfix/mynetworks relay_domains = […]

什么数据库权限授予Postfix使用MySQL?

我试图build立一个使用MySQL映射表的Postfix邮件服务器。 因为这是不好的做法,只需要授予所有权限,除非需要,我只想授予Postfix工作所需的最低权限。 不幸的是,即使后缀MySQL Howto似乎也不想放弃这个信息,而我的Google-fu是不确定的,主要是因为在讨论限制文件权限之前,有很多页面讨论Postfix和MySQLconfiguration:) 我可以逃脱只是select,还是Postfix需要比这更多?

这是散射?

我注意到邮件挂在mailq,所以我的问题是如果这是反向散射。 有问题的邮件: Jul 1 10:38:48 a1a postfix/qmgr[30971]: F2C95230470: from=<[email protected]>,size=125817, nrcpt=1 (queue active) Jul 1 10:38:53 a1a amavis[24301]: (24301-10) Blocked BANNED (.exe,.exe-ms,dokument 0503279005.xml.exe), ORIGINATING LOCAL [197.254.27.150] [219.69.130.6] <[email protected]> -> <[email protected]>, quarantine: t/banned-tdxHoTNjn7FG, Message-ID: <[email protected]>, mail_id: tdxHoTNjn7FG, Hits: -, size: 125817, 4642 ms 现在,后缀正试图连接到ebok.upc.pl和连接被拒绝。 Jul 1 10:47:14 a1a postfix/smtp[23733]: connect to ebok.upc.pl[81.18.192.65]:25: Connection refused Jul 1 10:47:14 […]

postfix SASLauthentication失败 – 内部authentication错误

我最近不得不将SMTP中继从Cablevision改为Verizon。 Verizon阻止端口25,但他们将通过端口465接受SSL( 按此 )。 我用这个和这个有stunnnel转发postfix的数据到端口465。 不幸的是,我的邮件没有出来。 我在mail.log中收到以下错误: Sep 8 15:16:25 DServ postfix/qmgr[6178]: A9EF9480429: from=<[email protected]>, size=545, nrcpt=1 (queue active) Sep 8 15:16:25 DServ postfix/smtp[6777]: A9EF9480429: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:12345, delay=231428, delays=231428/0.01/0.4/0, dsn=4.7.0, status=deferred (SASL authentication failed; server 127.0.0.1[127.0.0.1] said: 500 5.7.0 Unknown AUTH error -1 (Internal authentication error).) 鸽子发出消息,但是,他们没有一个似乎是错误消息。 我也看到了以下几点: Sep 8 17:26:26 DServ postfix/error[7112]: D0B944801A9: to=<[email protected]>, relay=none, […]

如何使postfix通过命令传递

我已经build立了一个后缀服务器,将收到几封电子邮件,并将其发送给OpenERP。 目前它正在工作,但是我想改进总体模式,以便postfix将OpenERP邮件别名发送(即Delivered-To)。 有关安装的更多细节 大scheme如下: 安装了postfix-pgsql 。 在我的main.cf文件中,我有这样的东西: alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = localhost virtual_alias_domains = mydomain.com virtual_alias_maps = pgsql:/etc/postfix/pgsql-aliases.cf 在pgsql-aliases.cf的查询 query = SELECT 'oerp@localhost' FROM mail_alias a, ir_config_parameter d WHERE (d.key = 'mail.catchall.domain') AND (d.value = '%d') AND (a.alias_name = '%u'); 然后我在/etc/aliases有“oerp” /etc/aliases : oerp: "| openerp_mailgate …args… " […]

postfix如何支持多个邮件域的redirect?

我configurationpostfix服务器来接收入站邮件。 有一个服务器需要支持两个域。 但是我发现我做不到。 在/ etc /邮件名 a.com postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix inet_interfaces = all mailbox_size_limit = 0 mydestination = a.com, b.com, i-c7fiqzb6.pek1.qingcloud.com, localhost.pek1.qingcloud.com, localhost myhostname = i-c7fiqzb6.pek1.qingcloud.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost […]

用postfix中的空消息标识阻止消息

我收到了一些垃圾邮件,其中message-id为空,例如: Sep 18 12:07:16 postfix / cleanup [21530]:message-id = <> 我不使用SpamAssassin。 有没有办法使用postfix拒绝任何带有空的消息ID的消息? 这是一个坏主意吗? 我已经浏览了我的maillog,只有垃圾邮件显示空的消息ID,但当然我想尽量减less拒绝合法的消息。 ***更新想在main.cf中尝试这样的东西的想法: header_checks = pcre:/etc/postfix/header_checks.pcre 与header_checks.pcre像这样: /message-id:[\s]*<>/i REJECT Invalid message format. 要么 /message-id:[ ]*<>/i REJECT Invalid message format. 谢谢bqb

后缀用通用&header_check重写发件人

我想重写所有发件人地址@ example.com到[email protected] (到一个静态的传出地址),但是我也想把原始地址添加为reply-to 。 我可以分别使用通用文件和header_checks文件分别进行操作,但是由于通用文件似乎首先被使用,所以我失去了原始的发送者。 我错过了什么从后缀重写文档 ? 如果信封发件人有[email protected] ,只要From:标题是[email protected]即可 。 有任何想法吗? 如果在Qmail中有一个简单的解决scheme,那么这也是一个select!

postfix错误查找passwd信息(赶上所有)

在后缀我试图为未知的本地帐户设置一个通用地址。 任何可以传送给本地用户的邮件都应该被传送到本地邮箱(并且尊重/etc/aliases ,既包括本地别名,也包括将邮件转发到外部的别名)。 任何不在/etc/aliases或/etc/passwd的用户邮件都应该被redirect到root 。 对于root我已经在/etc/aliases设置了一个/etc/aliases来redirect到一个单独的邮件地址[email protected] (不在本地服务器上)。 为了达到这个我已经在main.cf设置: luser_relay = root local_recipient_maps = 我尝试过的其他设置是luser_relay : [email protected] root@localhost [email protected] root@–server hostname– root@$local –other user with no alias– –other user with no alias–@localhost –other user with no alias–@localhost.localdomain –other user with no alias–@–server hostname– –other user with no alias–@$local 但是我不断收到用户查找错误(使用mail -s test test向不存在的testing用户mail -s test test ): […]

在maildir中找不到postfix / mailx邮件,为什么不呢?

在CentOS 7开发机器上,我已经configuration了postfix来允许在localhost地址之间交换电子邮件。 Mailx也被安装。 我能够发送电子邮件,日志文件表明邮件已经发送。 但是,我无法find要在terminal中查看的电子邮件。 我究竟做错了什么? 我如何查看这些新发送的邮件在terminal? 我可以通过在terminal中inputmailx root@localhost来发送电子邮件,然后按照提示添加主题和正文,然后Ctrl-D以获取命令提示符。 此外,当以root用户身份login时键入mail或mailx时,terminal响应一个在postfix被更改为在/Maildir存储电子邮件之前存储的几个旧电子邮件列表,但是没有新的电子邮件被发现。 当我inputnano /var/spool/mail/root ,我可以查看那些旧电子邮件,当然新邮件不存储在/var/spool/mail/root 。 没有/var/log/mail 。 但是, nano /var/log/maillog包含: Jan 5 12:09:40 localhost postfix/postfix-script[6162]: starting the Postfix mail system Jan 5 12:09:40 localhost postfix/master[6164]: daemon started — version 2.10.1, configuration /etc/postfix Jan 5 12:46:00 localhost postfix/postfix-script[3036]: starting the Postfix mail system Jan 5 12:46:00 localhost […]