Mailing list unsubscribe url variable
Question asked by Robbie Wright - August 24, 2015 at 10:19 AM
Config question as we're getting into mailing lists.
Hostname is set on our server to Webmail (and our ssl certs) use Tossing #UnsubscribeLink# into a mailing list footer, I'm presuming, forms the url with the host name and not our webmail name. Additionally, it doesn't use https. How can we change the link that is dynamically generated? Changing our hostname to our webmail name? How can we force it to use SSL?

2 Replies

Reply to Thread
I know of no way to do this in SmarterMail itself.

If you have the IIS URL Rewrite Module installed on your SmarterMail Server I would just create a Rewrite Rule to take any url string for unsubscribes from the Hostname FQDN to the Webmail FQDN and another Rewrite Rule to redirect HTTP to HTTPS.
Some sample rules to do this would be as follows:
                <clear />
                <rule name="Hostname to Webmail" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{HTTP_HOST}" pattern="^mx1\.tld\.com$" negate="true" />
                    <action type="Redirect" url="{R:1}" />
                <rule name="Smartermail SSL" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{HTTPS}" pattern="Off" />
                    <action type="Redirect" url="{R:1}" />
The only problem to this method is that SmarterMail overwrites the \MRS\web.config every single time you install an update, meaning you would have to COPY+PASTE the rules back in to your \MRS\web.config post-update.
This is very easily set, on a domain-by-domain basis, at:
The UNSUBSCRIBE link will automatically reference the newsletter name, sending domain, and the e-mail address of the user to remove.
It is not very well documented, but it works very well.
We also use the SUBSCRIBE capability, with DOUBLE OPT-IN, and you can see the example of that at:
Subscribing, with a valid e-mail address, will send a confirmation message, with a link to complete the process, to the e-mail entered in the form.
Once this is completed, the user is taken to an acknowledgement form and the double-opt-in process is completed, making the list fully compliant with the CAN SPAM ACTS of the United States, Canada, EU, and Australia.
Bruce Barnes
ChicagoNetTech Inc

Phonr: (773) 491-9019
Phone: (224) 444-0169

E-Mail and DNS Security Specialist
Network Security Specialist

Customer Service Portal:
Security Blog:

Web and E-Mail Hosting, E-Mail Security and Consulting

Reply to Thread