Topic on Extension talk:BounceHandler

BounceHandler alongside $wgSMTP?

3
Grovebose (talkcontribs)

Hi,


Is BounceHandler able to be used alongside an external SMTP server configured using $wgSMTP? In terms of receiving the POST upon bounced emails, we can configure the SMTP server to POST using events, but I'm unsure if BounceHandler is able to set the Return-Path header on outbound emails when an external SMTP server is used? Thanks

Ciencia Al Poder (talkcontribs)

BounceHandler requires a modification in the mail server, to route bounced emails to a special queue that triggers an HTTP POST request to the MediaWiki api.

You can't do that on an external mail server.

01tonythomas (talkcontribs)

Technically, you should be able to use it with a 3rd party SMTP server. I remember setting this up with Mailgun, back during development. Extension:Mailgun


Now, the trick is in the hook implementation of UserMailerChangeReturnPath, and from the code here: https://github.com/wikimedia/mediawiki-extensions-BounceHandler/blob/master/includes/Hooks.php#L44 , I can see that you can form custom "Return-To" emails by setting variables correctly in your configs.

global $wgVERPprefix, $wgVERPalgorithm, $wgVERPsecret, $wgVERPdomainPart, $wgServerName;

Lets us know how it goes.@Grovebose

Reply to "BounceHandler alongside $wgSMTP?"