Postfix中继:用一个中继电子邮件到多个地址

我有一个Ubuntu的服务器上安装后缀,所以我的网站可以把它的电子邮件中继到sendgrid.net。

在我安装了postfix之前,我设置了swiftmailer把邮件直接发送到sendgrid.net,当有多个电子邮件地址的时候,它被发送并作为一个多个地址的邮件处理。

我不能让postfix以相同的方式工作,当它收到一个具有多个电子邮件地址的电子邮件时,它会为每个地址发送一个单独的中继。 那就是吃掉我的sendgrid.net每日信用非常快。

我怎样才能configurationpostfix每个电子邮件只发送一个中继,而不是每个地址一个中继。

感谢任何指点或帮助,

麦克风

我的mail.log中有一个例子,显示发送到“[email protected]; [email protected]; [email protected]”的电子邮件

Feb 4 14:32:52 ip-10-114-153-165 postfix/smtpd[11954]: connect from localhost[127.0.0.1] Feb 4 14:32:52 ip-10-114-153-165 postfix/smtpd[11954]: A4F4F4A09B: client=localhost[127.0.0.1] Feb 4 14:32:52 ip-10-114-153-165 postfix/pickup[11804]: B6E874A09D: uid=33 from=<[email protected]> Feb 4 14:32:52 ip-10-114-153-165 postfix/smtpd[11954]: disconnect from localhost[127.0.0.1] Feb 4 14:32:52 ip-10-114-153-165 postfix/cleanup[11957]: B6E874A09D: message-id=<[email protected]> Feb 4 14:32:52 ip-10-114-153-165 postfix/qmgr[23180]: B6E874A09D: from=<[email protected]>, size=24223, nrcpt=8 (queue active) Feb 4 14:32:53 ip-10-114-153-165 postfix/smtp[11959]: B6E874A09D: to=<[email protected]>, relay=smtp.sendgrid.net[174.36.32.204]:587, delay=0.93, delays=0.14/0.01/0.32/0.47, dsn=2.0.0, status=sent (250 Delivery in progress) Feb 4 14:32:53 ip-10-114-153-165 postfix/smtp[11959]: B6E874A09D: to=<[email protected]>, relay=smtp.sendgrid.net[174.36.32.204]:587, delay=0.93, delays=0.14/0.01/0.32/0.47, dsn=2.0.0, status=sent (250 Delivery in progress) Feb 4 14:32:53 ip-10-114-153-165 postfix/smtp[11959]: B6E874A09D: to=<[email protected]>, relay=smtp.sendgrid.net[174.36.32.204]:587, delay=0.93, delays=0.14/0.01/0.32/0.47, dsn=2.0.0, status=sent (250 Delivery in progress) Feb 4 14:32:53 ip-10-114-153-165 postfix/qmgr[23180]: B6E874A09D: removed 

每封邮件的最大收件人数由参数smtp_destination_recipient_limit确定 ,默认值为50。

您可以运行以下命令检查您的configuration:

#postconf | grep smtp_destination_recipient_limit