English 中文(简体)
postfix relay failover [closed]
原标题:

Closed. This question is off-topic. It is not currently accepting answers.


Want to improve this question? Update the question so it s on-topic for Stack Overflow.

Closed 9 years ago.

Is there a way to configure postfix to use a relay only if direct delivery is rejected? The case being a web application that has to send notification to subscribers, but some servers reject the connection. I want those cases to be retried using a paid SMTP relay like authsmtp.com. However I don t want to use the relay for everything since it costs per mail.

最佳回答

This is definitely a serverfault.com question. Also, the answer is a somewhat ugly hack and not recommended under normal situations.

You will need to ignore the permanent response error codes. For this, in main.cf: soft_bounce = yes

This converts all 5xx errors to 4xx errors (including nosuchuser responses and all that).

Set authsmtp.com as your relayhost in main.cf: relayhost = [whatever.authsmtp.com]:port

Setup your Postfix to authenticate for relaying via authsmtp.com (via IP if they allow it, or see http://www.postfix.org/SASL_README.html#client_sasl for how to enable SMTP AUTH in the Postfix smtp client).

问题回答

暂无回答




相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签