Articles of 电子邮件服务器

使用本地MTA作为Sendgrid的网关

我使用Interspire邮件营销大师和5个用户帐户设置电子邮件系统,每个用户都有自己的Sendgrid帐户。 我们正在试图构build一个快速的系统,所以我们有一个专用的MySQL服务器,内含大量的RAM,一个用来托pipeInterspire软件的Web服务器,以及我们目前的问题:一个MTA服务器。 我们希望MTA服务器充当Sendgrid的网关,因为它可以并行处理邮件,而不是直接从Interspire处理PHP限制。 从我听说Postfix将无法使用,因为我们都有我们自己的Sendgrid帐户,当Postfix被configuration为网关,它只允许一组凭据。 我的问题是,我们如何设置/使用我们自己的Sendgrid帐户,但通过MTA服务器将电子邮件传送给Sendgrid? 有没有其他的select? 我几乎想让MTA拦截来自Web服务器的smtp请求(包括smtpauthentication细节),然后接pipe交付。 由于MTA也是一个本地服务器,它应该是相当快的。

在postfix中,我怎样才能有条件地执行check_sender_access

我服务2个虚拟域名:domain1.org,domain2.org。 我想执行以下政策: 如果客户端从$ mynetworks中的IP地址连接,那么我只想允许 发件人地址域属于我的一个域的邮件 。 如果客户端从任何其他IP地址连接,那么我想只允许 发件人地址域不属于我的域之一的邮件 。 为此,有两个哈希访问文件(sender_for_local_clients和sender_for_remote_clients) sender_for_local_clients包含 domain1.org OK domain2.org OK sender_for_remote_clients包含 domain1.org REJECT domain2.org REJECT 但我不知道如何将它们结合在smtpd_sender_restrictions指令中。 部分问题是OK行为不会自动允许,而REJECT行为会自动拒绝,所以我无法find一个合适的smtpd_sender_restrictions序列来完成我的上述策略。 有任何想法吗?

Postfix与MySQL虚拟maiboxes:转发和存储电子邮件

我的一位用户在Google Apps上托pipe邮件,但使用我的域名,希望直接在我的服务器上移动电子邮件托pipe。 然而,这个用户有一个规则,存储和转发每个收到的邮件到@ yahoo.com地址,并希望我也这样做。 目前我正在main.cf设置这样的东西(只显示相关位): virtual_alias_domains = # This line cut in two here for clarity virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf configuration文件中的相关部分是: mysql-virtual_forwardings.cf : query = SELECT destination FROM forwardings WHERE source='%s' mysql-virtual_email2email.cf : 查询=select电子邮件从用户WHERE电子邮件='%s' mysql-virtual-mailboxes.cf : query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/') FROM users WHERE email='%s' 转发表只有2列,来源和目的地。 用户表是一个两列用户@域 – 密码表。 我能做些什么来让postfix交付到这里的帐户,但也转发到雅虎帐户?

将Maildir目录移出/ home

我有一台带有Ubuntu 13.04的电脑,带有一个本地IMAP服务器,用于通过局域网共享电子邮件。 我将此计算机设置为具有encryption的/ home,但是这意味着除非本地用户也login,否则login到服务器的任何人都将无法查看IMAP文件夹。因此,我想将邮件移动到/var/mail/Maildir/%u 。 我在/etc/dovecot/conf.d/01-mail-stack-delivery.conf有以下/etc/dovecot/conf.d/01-mail-stack-delivery.conf mail_location = maildir:/var/mail/Maildir/%u 而我的/etc/postfix/main.cf有: home_mailbox = Maildir/ 但是,当我通过IMAP在本地使用邮件客户端login时,它将重新创build~/Maildir目录,而不是使用/var/mail/ 。 我错过了什么? 编辑: 这是我的postconf -n在应用shutupsquare的答案之后: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix inet_interfaces = all mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}" mailbox_size_limit = 0 mailbox_transport = dovecot mydestination = […]

在Exchange 2010 SP1上启用基本身份validation

首先,我不知道交换如何运作,什么是和不可能。 我们试图通过我们自己的邮件服务器(内部)从我们的networking服务器(AWS)发送邮件,但是为此我们需要一个交换的validation方法。 我们的系统由与我们签有合同的外部公司pipe理,他们似乎很不愿意为远程IP提供任何types的authentication(我们在二月份才问他们)。 他们最近的回应是再次拒绝我们的要求,并告诉我们只使用亚马逊SES。 我自己也无法访问这个服务器,所以任何答案只能在我跟他们谈话时才能使用。 1)在服务器上启用身份validation方法是否存在重大安全问题? (我知道基本身份validation以纯文本格式发送详细信息) 2) Exchange是否提供IP白名单? 3)有没有一个白痴certificate指导如何设置所有这一切? 这是通过telnet连接的结果: 220 domain.com Microsoft ESMTP MAIL服务在5月23日星期四准备就绪2 ehlo名字 250-domain.com你好[ip.ip.ip.ip] 250-SIZE 10485760 250stream水 250-DSN 250 ENHANCEDSTATUSCODES 250-STARTTLS 250-AUTH 250-8BITMIME 250 BINARYMIME 250块

连接超时电子邮件转发

我有一个情况下,从后缀邮件服务器转发到雅虎,Gmail,AOL,icloud和许多其他转发电子邮件传递到主要的ESP一次停止,虽然它适用于我的公司电子邮件和电子邮件,而不是像我直接发送发电子邮件到Gmail或雅虎或ESP不转发的ESP之一。 Telnet正在工作,跟踪路由也正常工作,阻止转发电子邮件的电子邮件服务器的IP。 转发的电子邮件可能会有所不同? 在邮件队列中 May 10 09:36:43 apollo postfix/smtp[18975]: connect to alt1.gmail-smtp-in.l.google.com[173.194.70.26]:25: Connection timed out May 10 09:36:56 apollo postfix/smtp[18971]: connect to alt1.gmail-smtp-in.l.google.com[173.194.70.26]:25: Connection timed out May 10 09:44:25 apollo postfix/smtp[21829]: connect to alt1.gmail-smtp-in.l.google.com[173.194.70.26]:25: Connection timed out telnet 173.194.70.26 25 Trying 173.194.70.26… Connected to 173.194.70.26. Escape character is '^]'. 220 mx.google.com ESMTP m7si2343689eeu.50 – gsmtp […]

如何在CentOS服务器上正确configurationOpenEMM?

我目前正在运行CentOS服务器(最新版本),并遵循OpenEMM安装指南安装OpenEMM 2013.我更新了我的Java和Tomcat。 完成安装后,我使用以下命令: su openemm /home/openemm/bin/openemm.sh start 我收到两个失败的消息: Starting sendmails: listener Starting sendmail: 451 4.0.0 can not chdir(/var/spool/mqueue/): Permission denied Program mode requires special privileges, eg, root or TrustedUser. 和 Starting sm-client: touch : cannot touch '/var/run/sm-client.pid': Permission denied chown: cannot access '/var/run/sm-client.pid': No such file or directory lstat(/var/run/sm-client.pid) failed: no such file or directory […]

使用Postfix发送邮件到不同的域名 – 在同一台服务器上托pipe的所有域名 – 外部电子邮件托pipe

我有一个服务器托pipe几个域 – 一个主域和几个别名域。 域 main.com alias1.com alias2.com 我使用域名注册的(Gandi.net)电子邮件服务的主要域名。 我想所有的电子邮件到别名域被转发到主要的电子邮件服务。 我认为这只是将它们转发到@ main.com 我正在努力与Postfix(也许DNS?)设置。 DNS main mx records fb.mail.gandi.net <– Gandi's settings – I'm sure they're correct spool.mail.gandi.net alias1 mx records mail.alias1.com alias2 mx records mail.alias2.com 所有域都有一个A / AAAAlogging,用于指向服务器IP地址的邮件[domain] .com。 我也有一个第四域(superdomain.com),我用它作为服务器的主机名。 它的DNSlogging与main.com相同。 从Postfix使用这个页面 – http://www.postfix.org/VIRTUAL_README.html – 它看起来像我可以使用虚拟别名域 main.cf设置 myhostname = mail.superdomain.com mydestination = pluto.superdomain.com localhost.superdomain.com localhost $myhostname […]

PHPMailer脚本停止与神秘的SMTP错误消息工作

我试图通过PHPMailer库在PHP脚本中发送邮件。 以下代码已成功发送过去的电子邮件,并且没有任何警告: function mail_attachment($filename, $path, $mailto, $subject, $message) { include("PHPMailer_5.2.3/class.phpmailer.php"); include("PHPMailer_5.2.3/class.smtp.php"); $email_config = parse_ini_file('email.cfg'); $from = $email_config['sender']; $alias = $email_config['alias' ]; $smtp = $email_config['host' ]; $port = $email_config['port' ]; $mail = new PHPMailer(); $mail->SMTPDebug = 2; $mail->IsHTML(false); // send as HTML? $mail->WordWrap = 50; // set word wrap $mail->IsSMTP(); $mail->Host = $smtp; // set the […]

确保Postfix MDA和Dovecot IMAP了解邮箱位置?

我想将Postfix和Dovecot作为SMTP MTA(邮件传输代理)和MDA(邮件传输代理)和Dovecot作为IMAP服务器,但是我想确保它们都了解邮箱位置,而我从文档中我不完全清楚这一点。 如果我在Postfix main.cf中使用以下设置(username代表设置为处理所有虚拟用户的系统用户): virtual_mailbox_base=/home/username virtual_mailbox_maps=hash:/etc/postfix/vmailbox 在/ etc / postfix / vmailbox(邮箱path末尾的/表示一个maildir邮箱): [email protected] example.com/info/ [email protected] example.com/sales/ 这样邮箱就像/home/username/example.com/info/等等,如文档( http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox )中所述。 然后在Dovecot dovecot.conf中使用以下设置: mail_home=/home/username/%d/%n mail_location=maildir:~/Maildir 因此,按照文档( http://wiki2.dovecot.org/VirtualUsers/Home )的build议,Dovecot为虚拟用户分开了“home”和邮箱目录,这是一个兼容的设置吗? 或者,Postfix会将邮件发送到cur,new和tmp文件夹中的/home/username/example.com/info,而Dovecot正在寻找邮件/home/username/example.com/info/Maildir in cur,new,和tmp文件夹? /在Postfix的virtual_mailbox_maps中激活maildir邮箱是否指示并在example.com/info/之后自动创buildMaildir文件夹,还是会产生我上面描述的困难? 谢谢。