收到我的域中不存在的收件人的垃圾邮件时,我收到了很多垃圾邮件。 我通过使用virtual_alias_maps将此域上的电子邮件转发给我家庭的各种外部地址。 为了防止这些无效地址混乱我的mailq,只是通常是烦人的,我宁愿删除它们,如果他们不能匹配到特定的收件人。 以前的问题说我可以使用 bounce_queue_lifetime = 0 但是如果我使用虚拟域/用户,我应该使用virtual_mailbox_maps。 不幸的是,我不能看到如何实现这一点,作为所有地址例如@ example.com交付给用户“吉姆” 一种select是将默认传递给/ dev / null例如@ example.com传递给用户“devnull”,然后在/ etc / aliases中为devnull在/ dev / null中创build一个条目。 这是一个有效的方法吗?
我在我的服务器上安装了Postfix和Dovecot。 这似乎是大多数工作 – 我可以从我的帐户发送邮件到远程帐户没有问题。 我的问题是接收它。 当我从远程主机发送电子邮件时,我可以看到电子邮件正在接收文件夹中: /root/mail/new/ 然而,鸽友似乎正在寻找电子邮件: /home/webmaster/mail/.imap 我如何使这些在configuration文件中相同? 我猜鸽舍是正确的,因为它有path中的用户名。 我的main.cf有: home_mailbox = mail/ dovecot.conf有: mail_location = maildir:~/mail 感谢您的期待。
其实我正在使用Postfix服务器,并试图通过简单的限制来实现分发列表。 我的假设:我创build了别名: [email protected] – > [email protected],[email protected],[email protected] 我想限制[email protected] ,唯一的办法是只有[email protected] [email protected]可以写入pipe理员名单。 根据[ http://postfix.cs.utah.edu/RESTRICTION_CLASS_README.html#internal][1] 我在FILE main.cf中创build: … smtpd_recipient_restrictions = … check_sender_access hash:/etc/postfix/sender_access, check_recipient_access hash:/etc/postfix/protected_destinations, … smtpd_restriction_classes = insiders_only insiders_only = check_sender_access hash:/etc/postfix/insiders, reject FILE / etc / postfix / protected_destinations : … [email protected] insiders_only … FILE 内部人士 : [email protected] OK [email protected] OK 但它通过阻止来自外部的所有传入电子邮件起作用。 正如我以前写的,我的意图是只让来自managers_sender_list的地址写到[email protected],让其他活动以正常的方式完成。 问题是:如何正确实施这些假设?
我有一个域example.com设置如下 服务器托pipe一个网站和其他一些其他的东西 Google Apps处理我的电子邮件,并configuration为发送和接收邮件 无论何时服务器需要向我发送电子邮件,它都使用Postfix通过Google的SMTP服务器发送电子邮件。 这工作得很好,但服务器发送电子邮件[email protected] 。 我在Google Apps中设置了一个别名,以允许[email protected]发送和接收邮件为[email protected] 。 我希望postfix以[email protected]身份发送邮件,同时以[email protected]到Google的SMTP服务器。 简单的解决办法是打开我的服务器的另一个应用程序帐户,但这是一个小型业余爱好项目每月5美元。
我已经在线跟随在线教程,用SASL和TLS以及amavis来设置我的邮件服务器。 这一切似乎都起作用 – 除非我可以发邮件,即使我不先authentication – 这是不好的。 我希望用户: 在通过提交端口(587)或smtps端口(465)发送时需要使用TLS, 始终被要求发送凭证 – 即使他们决定通过25端口不安全地发送 这是我的main.cf smtpd_banner = $myhostname ESMTP $mail_name powered by Easy Hosting Control Panel (ehcp) on Ubuntu, www.ehcp.net biff = no append_dot_mydomain = no readme_directory = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file = /etc/ssl/domain.tld/domain.tld.crt smtpd_tls_key_file = /etc/ssl/domain.tld/domain.tld.key smtpd_tls_CAfile = /etc/ssl/domain.tld/ca.pem smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_tls_loglevel […]
这个问题已经困扰了我很长一段时间,我希望它被修复。 在我的VPS上,我已经设置了postfixadmin和dovecot正确的Postfix。 (我可以发送(通过terminal)和接收邮件)因为我是Gmail的谷歌产品的粉丝。 这将是很好的使用Gmail作为接口发送我的邮件(通过我的VPS)。 那么Gmail有这样的function来添加一个现有的电子邮件地址。 而且我想以这种方式将我的电子邮件地址添加到我的帐户。 但每当我尝试使用Google方法login时,它说它失败。 我已经在/var/log/mail.log中查看发生了什么事情。 它给了我这3个警告,而我尝试通过Gmail连接到我的服务器: Apr 24 20:02:04 localhost postfix/master[7177]: daemon started — version 2.11.3, configuration /etc/postfix Apr 24 20:03:08 localhost postfix/smtpd[7189]: connect from mail-wm0-f41.google.com[74.125.82.41] Apr 24 20:03:08 localhost postfix/smtpd[7189]: lost connection after CONNECT from mail-wm0-f41.google.com[74.125.82.41] Apr 24 20:03:08 localhost postfix/smtpd[7189]: disconnect from mail-wm0-f41.google.com[74.125.82.41] 这是我的/etc/postfix/master.cf文件的样子: # SMTP on port 25, unencrypted. […]
目前我在CentOS机器上安装了Postfix。 它有多个virtual_alias_domains和virtual_alias_maps = hash:/ etc / postfix / virtual。 / etc / postfix / virtual中有多个条目,如下所示: [email protected] user1,admin,[email protected] [email protected] user2,[email protected] 等等 这一切工作正常,电子邮件正在交付的地方,但这是新的要求: 如果发件人是[email protected]或[email protected]等,主pipe不希望收到邮件的副本。对于每个虚拟别名,规则可能不同。 每个虚拟别名可能有多个规则。 所以一些基本规则: 如果[email protected]接收到一封电子邮件,则应将其发送给user1,admin和[email protected](这是目前的工作方式,以及/ etc / postfix / virtual中定义的内容) 如果[email protected]收到来自[email protected]的电子邮件,则应将其发送给user1和admin,但不要发送给[email protected] 基本上这是需要减less到[email protected]的电子邮件的数量,但这些电子邮件仍应达到其他列出的收件人。 什么是最好的方式来实现呢? 任何build议,欢迎和赞赏!
我已经build立了一个postfix服务器,当作为localhost访问时,工作得很好。 但是我无法从外面提供。 相关的configuration如下: /etc/postfix/main.cf包含(和后缀重新加载): myhostname = <myserver.with.fully.qualified.domain.name> # not localhost inet_interfaces = all inet_protocols = ipv4 smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination alias_maps = hash:/etc/aliases virtual_alias_maps = hash:/etc/postfix/virtual alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = <myserver.with.fully.qualified.domain.name> localhost.localdomain localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 inet_interfaces = all inet_protocols = ipv4 〜$ sudo iptables -L […]
我想要email来自[email protected]但他们目前来自[email protected] 从Postfix文档: 出站邮件中使用的域名 myorigin参数指定在本机上发布的邮件中显示的域。 默认是使用本地机器名称$ myhostname,默认为机器的名称。 除非您正在运行一个非常小的站点,否则可能需要将其更改为$ mydomain,该默认值为机器名称的父域。 为了使发件人和收件人地址保持一致,myorigin还指定了附加到不合格收件人地址的域名。 示例(仅指定以下之一): /etc/postfix/main.cf文件: myorigin = $ myhostname(默认:发送邮件为“user @ $ myhostname”) myorigin = $ mydomain(很可取:“user @ $ mydomain”) 在/etc/postfix/main.cf我有: myhostname = mail.example.com mydomain = example.com myorigin = $mydomain 尽pipe文件说了什么,我的邮件显示为[email protected] 在对main.cf文件进行更改后,我已经运行了sudo /etc/init.d/postfix restart 。 还有其他的参数需要设置吗? 我已经阅读了文档,看起来很清楚,但是我的结果与文档中描述的不一致。 谢谢你的帮助。 ps,它运行在Amazon EC2上的Ubuntu 14.04上,具有弹性的IP和适当的MXlogging。 邮件正在发送和接收。 我使用以下方式发送邮件: mail [email protected] 附加信息,如果有关系。 在命令提示符下: user@mail:$ hostname mail […]
我通过Dovecot SASL设置了带有Postfix SMTP auth的服务器。 然而,开箱即用的PAM标准是不可能的。 所以更偶然的是,我把它改为影子驱动,如Dovecot文档中所述,configuration和设置立即运行。 在Dovecot的configuration文件中保存/etc/shadow作为密码数据库有什么缺点吗? 尤其是,它会影响Postfix / Dovecot /服务器的安全吗? 该文件只是说,“PAM通常是首选”,但没有进一步解释为什么。