> If there is a plus: > The first 6-digit hex number after "bounce+" and possibly after "v2+" > is the customer ID.
In my experience the first hex number is the recipient ID and the second hex number is the mailgun customer ID: bounce+RID.CID-RADDR@MAILGUN-DOMAIN RID: recipient-id CID: customer-id RADDR: recipient mail address The ESP-Plugin for spamassassin uses this regex to extract the customer ID: https://github.com/bigio/spamassassin-esp/blob/d3d7c56f75ad5ce98b262c1db6c6f784850d7639/Esp.pm#L1028 # Find the customer id from the Return-Path $envfrom =~ /bounce\+(?:\w+)\.(\w+)\-/; $mailgun_id = $1; And to catch also the v2 variants: $envfrom =~ /bounce\+(?:v2\+)?(?:\w+)\.(\w+)[\.-]/; $mailgun_id = $1; Regards, Bernhard
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ mailop mailing list [email protected] https://list.mailop.org/listinfo/mailop
