我需要configurationpostfix通过中继服务器发送,但用不同的用户根据发件人域。 例如: domain1.com userA passwordA domain2.com userB passwordB 我需要通过relay.server.com发送 这些是我改变的文件: /等/后缀/运输 .domain1.com smtp:[relay.server.com] .domain2.com smtp:[relay.server.com] /等/后缀/ sasl_passwd @domain1.com userA:passwordA @domain2.com userB:passwordB /等/后缀/ relayhost_map domain1.com smtp:[relay.server.com] domain2.com smtp:[relay.server.com] /etc/postfix/main.cf中 mydomain = domain3.com myhostname = host.domain3.com myorigin = $mydomain relay_domains = relay.server.com, domain1.com, domain2.com relayhost = [relay.server.com] sender_dependent_relayhost_maps = hash:/etc/postfix/relayhost_map smtp_pix_workarounds = delay_dotcrlf smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter […]
我正在尝试configurationPostfix(在RHEL 6.5上)以修改传入邮件的内容并将邮件转发到远程服务器。 我使用一个Perl脚本pipe理Postfix来修改内容,并使用Sendmail将邮件注入到Postfix中。 当电子邮件第一次到达服务器时,我看到from字段被正确初始化,但它被重写: postfix/smtpd[29150]: connect from ** local domain **[xxxx] postfix/smtpd[29150]: 2CF665F6B9: client=** local domain **[xxxx] postfix/cleanup[29155]: 2CF665F6B9: message-id=<msg_172345> postfix/qmgr[29120]: 2CF665F6B9: from=<[email protected]>, size=66895, nrcpt=1 (queue active) postfix/pickup[29119]: 472C75F6BC: uid=600 from=<admin> postfix/cleanup[29155]: 472C75F6BC: message-id=<msg_172345> postfix/pipe[29159]: 2CF665F6B9: to=<[email protected]>, relay=myhook, delay=3.1, delays=3/0.01/0/0.06, dsn=2.0.0, status=sent (delivered via myhook service) postfix/qmgr[29120]: 2CF665F6B9: removed postfix/qmgr[29120]: 472C75F6BC: from=<admin@** local domain **>, […]
Dovecot / Postfixconfiguration在我的服务器上不能正常工作:经过几次检查,我明白了 Imap服务使用本地或桌面客户端进行操作 Postfix正在监听,新的电子邮件在postfix队列中播放 从postfix队列转移到vmail文件夹不起作用,而postfix日志提到这个recrurent错误“SASL:连接到/ var / run / dovecot / auth-client失败:权限被拒绝”。 这是我的鸽舍configuration。 # 2.2.15: /etc/dovecot/dovecot.conf # OS: Linux 3.10.9-xxxx-grs-ipv6-64 x86_64 Gentoo Base System release 2.2 ext4 auth_debug = yes auth_mechanisms = plain login auth_verbose = yes auth_verbose_passwords = yes base_dir = /var/run/dovecot/ debug_log_path = /var/log/dovecot-debug.log first_valid_gid = 12 first_valid_uid = 150 info_log_path = […]
我有我的postfix服务器上的多个域和电子邮件帐户。 尽pipe我试图控制这些垃圾邮件,但他们都遭到了垃圾邮件的攻击,于是我崩溃了,开始为通过外部垃圾邮件过滤服务付费。 这非常有帮助。 然而,一个域名域名仍然受到垃圾邮件的抨击。 在调查的同时,我注意到垃圾邮件直接进入我们的服务器,而不是通过垃圾邮件过滤服务。 所以我想要做的就是修改我的Postfixconfiguration,这样就可以从垃圾邮件过滤服务IP地址发送该域名的电子邮件和只有该域名。 我之所以想要通过域名方法来做,是因为服务器上的一些域没有垃圾邮件问题(更多的是智能互联网用户)。 所以我从来没有为垃圾邮件服务器签名。 这排除了设置ip表的能力,只允许smtpstream量形成垃圾邮件过滤服务的IP地址。 任何人都有办法我可以做到这一点? 编辑:澄清服务器上的所有邮件(减去1或2个域)首先被传递到外部垃圾邮件服务。 然后垃圾邮件服务就会发挥他们的魔力并将其传送 因此,如果SMTPstream量不是来自垃圾邮件服务的IP地址,那么对于使用此服务的域名。 我只想把邮件拒绝或者发送到黑洞。 由于DNS更改是在几周前完成的。 因此,使用该垃圾邮件服务的域直接连接到服务器将成为垃圾邮件。
我已经使用Postfix和Dovecotbuild立了一个电子邮件服务器,并且能够使用各种邮件客户端发送和接收邮件,但由于某种原因,当我尝试通过terminal中的openssl进行连接时,出现了身份validation错误。 这几乎是如此: openssl s_client -connect mail.example.com:587 -starttls smtp [build立到服务器的连接] EHLO mail.example.com AUTH PLAIN cGFzc3dvcmQ= 535 5.7.8 Error: authentication failed: 我用下面的每一个来产生我的AUTH PLAIN消息,其中没有一个已经authentication了我: echo -en '\0username\0password!'|base64 echo -en '\000username\000password!'|base64 echo -e '\0username\0password!'|base64 echo -e '\000username\000password!'|base64 我用来设置邮件服务器的教程build议我使用: echo -en '\000username\000password!'|base64 但这从来没有为我工作。 我的用户名格式为[email protected] ,在使用邮件客户端连接服务器时有效。 有谁知道为什么我可能会得到错误? 我假设这是因为我没有正确地生成base64身份validation消息,但我相当新的Linux,所以我可能会忽略一些简单的东西。 我已经按照教程的信,我已经多次检查我的设置。 除了这个问题之外,其他一切都按预期工作。 服务器运行Debian 7(64位),教程在这里: https : //www.howtoforge.com/tutorial/build-your-own-cloud-on-debian-wheezy/ 谢谢。
我有一些关于SMTP连接的基本问题,特别是对于Postfix,但是也会对MS Exchange的build议感到高兴: 当给定远程域的单个中继变得不可用时,发送邮件到该域的后缀mta检查服务是否可用的频率是多less? 连接失败“记得”(即caching)吗? postfix是否曾经检查过,当“较高优先级”中继可用时,“较低优先级”的中继是否在线? 以上是否可以在后缀?
我的环境: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.6 (Santiago) # rpm -q postfix postfix-2.6.6-6.el6_5.i686 # 我将Mailbox home_mailbox切换到Maildir/ : # postconf -n | grep home_mailbox home_mailbox = Maildir/ # 我给自己发了一封testing邮件: [email protected] ,然而电子邮件[email protected]发送到了[email protected] ,无论出于什么原因,它都忽略了我的+A别名。 我的目标是将[email protected]发送到[email protected] ~test/Maildir/.A/而不是[email protected] ~test/Maildir/ 。 我究竟做错了什么? 我错过了什么?
最近我注意到了一些我得到的垃圾邮件中的重复模式。 返回path和标题始终具有相同的结构。 我举个例子来解释一下: Return-path: <[email protected]> From: <[email protected]> To: <[email protected]> 基本上,我想检查返回path的用户部分是否等于From用户部分,添加了To(“@”改为“=”),并在To前加上一个破折号。 我想使用一些Postfix的header_checks并拒绝USER=DOMAIN.COM@模式,但是我收到的大多数合法的新闻组都包含在它的返回path中(除了之前有一个更复杂的string,它与From字段不匹配) 。 有没有人创造过这样的规则,并且关心分享? 谢谢!
因为我的新项目,我刚刚开始与垃圾邮件进行斗争。 我将解释这个系统的结构。 我们有Postfix作为中继服务器上的MTA和新鲜的Spamassasian和Policyd(v2 Cluebringer)插件。 这些工作正常,并在日志文件中产生良好的输出。 我在这个模式中的问题,我怎么能知道哪个插件正在工作? 为什么我想学习这个: 如果Policyd拒绝邮件,因为不是真正的邮件地址Spamassasian将无法正常工作,系统将无法扫描所有邮件 如果我安装Clamav,它不会占用太多的资源 最好的祝福。 postconf -M smtp inet n – – – – smtpd -o content_filter=spamassassin pickup unix n – – 60 1 pickup cleanup unix n – – – 0 cleanup qmgr unix n – n 300 1 qmgr tlsmgr unix – – – 1000? 1 tlsmgr rewrite […]
我试图实现的是,任何发送到[email protected]电子邮件都会被重写为[email protected]送到[email protected] 。 canonical_maps和virtual_alias_maps都可以传递给备用收件人。 当我阅读文档时,它告诉我用canonical_maps cleanup会完全重写。 但是,实际上电子邮件仍然具有原始收件人的地址。 所以当在bob的邮箱中查看电子邮件时,它会向joe显示一封电子邮件。 不知何故,我觉得我在这里失去了一些东西。 组态: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no bounce_queue_lifetime = 2d canonical_maps = hash:/etc/postfix/canonical config_directory = /etc/postfix header_checks = pcre:/etc/postfix/header_checks home_mailbox = Maildir/ html_directory = /usr/share/doc/postfix/html inet_interfaces = all mailbox_size_limit = 0 maximal_queue_lifetime = 4d milter_default_action = accept milter_protocol = 2 mydestination […]