当我尝试通过SMTP和Postfix发送邮件时,出现“5.7.1无法中继”错误。 改变了大量的configuration后,它工作我发送电子邮件到服务器相同的域(到该主机上的其他帐户): smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination 但是,我仍然发送到其他域时,这个错误。 Dovecot安装在我的服务器上。 如何允许中继到任何域,但在端口25 SMTP简单的身份validation? 没有SSL / TLS等 如果我将我用作testing收件人的域添加到我的目的地: mydestination = o2.pl 我有: Recipient address rejected: User unknown in local recipient table 没有mydestinationconfiguration的示例日志: Oct 6 00:50:40 XXXXXXX postfix/smtpd[5409]: NOQUEUE: reject: RCPT from MY_HOME_HOST: 554 5.7.1 <[email protected]>: Relay access denied; from=<TEST_ACCOUN@MY_DOMAIN.pl> to=<[email protected]> proto=ESMTP helo=<[127.0.0.1]> 去除后: reject_unauth_destination 当我尝试发送电子邮件时,雷鸟只是在等待。 它挂在“连接到MY_OWN_DOMAIN …” 我将TLS切换到“否”,但没有帮助。 […]
我想提一下,这真的是新的,所以请忍受我。 我试图设置一个论坛软件通过后缀发送电子邮件,但我认为我的服务器端口25被阻止。 我试着运行这些: 作品: ping alt2.gmail-smtp-in.l.google.com 不工作: telnet alt2.gmail-smtp-in.l.google.com 25 telnet 66.249.93.114 25 尝试刷新iptables,然后使用这些规则,但也没有工作: sudo iptables –flush sudo iptables -P INPUT ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -F sudo iptables -X 做一个25端口到本地主机的url的Telnet工作,但没有任何当在任何地方的url远程login。 mail.log: Oct 17 01:20:24 webhost postfix/smtp[3642]: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:400e:c03::1a]:25: Connection timed out Oct 17 01:20:24 webhost […]
当我从命令行发送邮件时,它应该在哪里结束? (我想从外面反弹所有无效的邮件,因为垃圾邮件。)有没有办法让它出现错误说用户不存在之前,甚至要求的主题? [root@308321 postfix]# mail notthere Subject: should bounce hello? EOT 这是maillog Oct 26 05:29:23 308321 postfix/pickup[6510]: 72F51D4775: uid=0 from=<root> Oct 26 05:29:23 308321 postfix/cleanup[6805]: 72F51D4775: message-id=<[email protected]> Oct 26 05:29:23 308321 postfix/qmgr[6511]: 72F51D4775: from=<[email protected]>, size=432, nrcpt=1 (queue active) Oct 26 05:29:23 308321 postfix/virtual[6808]: 72F51D4775: to=<[email protected]>, orig_to=<notthere>, relay=virtual, delay=0.74, delays=0.48/0.01/0/0.25, dsn=5.1.1, status=bounced (unknown user: "[email protected]") Oct […]
我正在为Postfix构build一个内容filter (在Ubuntu 12.04testing虚拟机上通过apt安装2.9.3包),并且从一个非常基本的Ruby(1.9.3)模板开始,构buildfunction。 奇怪的是,当脚本启用时,发送的消息正常转发,但也发回给发件人,这是不正常的。 禁用脚本会禁用此行为。 任何build议,我必须改变,以阻止发生? 感谢您的任何build议! /etc/postfix/master.cf(只有行从默认改变) smtp inet n – – – – smtpd -o content_filter=dumper:dummy … dumper unix – nn – 10 pipe flags=RF user=mailuser argv=/home/mailuser/mailfilter/dumper.rb ${sender} ${recipient}` /home/mailuser/mailfilter/dumper.rb #!/usr/bin/env ruby require 'open3' dir="/home/mailuser/emails" logfile="maillog.log" message = $stdin.read cmd = "/usr/sbin/sendmail -G -i #{ARGV[0]} #{ARGV[1]}" stdin, stdouterr, wait_thr = Open3.popen2e(cmd) stdin.print(message) logfile […]
我在debian squeeze实例上的/ var / spool / postfix / incoming (在chroot中)的postfix传入文件夹中充满了一些不可移动,stat'able,chmod'able或任何其他的stange文件: drwx—— 2 postfix root 4096 Nov 19 16:18 . ?????????? ? ? ? ? ? 019E310000B9 ?????????? ? ? ? ? ? 0775C1000081 ?????????? ? ? ? ? ? 0874F1000082 ?????????? ? ? ? ? ? 180E41000083 […] $ file 019E310000B8 019E310000B8: ERROR: cannot open […]
我正在build立一个后缀的电子邮件网关。 它不会保留任何邮件,但会接受我的域名的电子邮件,并将其转发到另一个内部邮件服务器,并从内部服务器中继邮件。 主要问题之一是我正在运行一个正在运行的系统,这将是一个升级,所以我正在使用一个testing域,我将在某些时候改变到真正的域。 我试过各种方法,但发现最简单的方法(工作)是使用脚本来创build一个别名文件(从LDAP条目)。 这种方法存在各种问题。 主要的一点是条目不能是简单的[email protected],因为网关不知道在哪里发送它们。 它们必须是以下格式:[email protected]。 我想要的东西似乎并不难,但是我无法理解后缀文档。 似乎有不同的方式,但似乎没有一个工作。 我在网上find的大多数例子都假定邮件将在服务器上结束。 我想要一个用户列表,最好是forms:user1,user2等,而不是[email protected](我可以很容易地生成这个列表),我希望postfix将所有电子邮件转发到example.com到一个特定的服务器:即realmailserver.example.com。 任何人都可以提出线索,我可以怎么做?
我似乎无法弄清楚为什么header_checks没有被评估。 我在Ubuntu 12.04,后缀2.7,鸽舍,spamassasin,clamav,amavis。 我将以下行添加到/etc/postfix/main.cf: header_checks = regexp:/etc/postfix/header_checks 这里是header_checks: /From: .*/ REPLACE From: [email protected] 要testing出正则expression式: #postmap -q "From: <werwe>" regexp:/etc/postfix/header_checks 这正确评估,并给我返回输出: REPLACE From: [email protected] 但是,当我尝试从命令行或从PHP网页发送电子邮件,后缀将不会取代从头。 我很难过 我想重写所有传出的电子邮件: From: Confirmation Email<[email protected]> – 变成 – From: Confirmation Email<[email protected]> 任何帮助将不胜感激。
当有人发送邮件myvirtualdomain.com我收到消息 Remote host said: 550 relay not permitted! [RCPT_TO] 我的设置有什么问题? 我不认为这个问题是在MySQL的cf文件,也没有在数据库中,因为这些设置用于正常工作,从来没有改变。 不幸的是我不能在其他地方重现configuration更改。 但如果有必要,我很乐意提供这些文件/数据库的内容。 我的服务器域(mydomain.com)确实收到邮件,我的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 = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file = /etc/postfix/smtpd.cert […]
我即将build立一个运行一个CentOS服务器与轨应用程序的Linode。 Rails应用程序有一个联系我们的forms。 这只是发送enquirys网站所有者。 不需要其他电子邮件function 网站所有者只使用他的gmail电子邮件帐户,所以目前没有电子邮件是为托piperails应用程序的域configuration的。 我的问题是,我必须在托pipeRails应用程序的服务器上设置postfix,以便它可以发送电子邮件到网站所有者或有其他方式吗? 如果我必须这样做,我是否正确假设我将不得不设置MXlogging,发件人框架SSL证书等? 🙁 我正在寻找一个简单的方法:) 服务器将有一个静态IP和一个有效的DNS条目。
有人正在使用我的服务器(可能来自不安全的forms)发送大量的垃圾邮件。 我看了一下mailq但似乎无法find解决这个问题的地方。 有没有办法来追查这些垃圾邮件来自哪里? 我正在使用CentOS和Postfix 这是我的main.cf文件的一部分: sendmail_path = /usr/sbin/sendmail.postfix # newaliases_path: The full pathname of the Postfix newaliases command. # This is the Sendmail-compatible command to build alias databases. # newaliases_path = /usr/bin/newaliases.postfix # mailq_path: The full pathname of the Postfix mailq command. This # is the Sendmail-compatible mail queue listing command. # mailq_path = /usr/bin/mailq.postfix […]