1
Mailing list unsubscribe url variable
Question asked by Robbie Wright - August 24, 2015 at 10:19 AM
Answered
Config question as we're getting into mailing lists.
 
Hostname is set on our server to mx1.tld.com. Webmail (and our ssl certs) use mail.tld.com. 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
0
Scarab Replied
August 24, 2015 at 10:36 AM
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:
 
            <rewrite>
              <rules>
                <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" />
                    </conditions>
                    <action type="Redirect" url="http://mail.tld.com/{R:1}" />
                </rule>
                <rule name="Smartermail SSL" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{HTTPS}" pattern="Off" />
                    </conditions>
                    <action type="Redirect" url="https://mail.tld.com/{R:1}" />
                </rule>
            </rules>
        </rewrite>
 
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.
1
Bruce Barnes Replied
August 24, 2015 at 1:38 PM
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:

https://www.chicagonettech.com/subscribenewsletter.asp.
 
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

Phone: (224) 444-0169

E-Mail and DNS Security Specialist
Network Security Specialist

Customer Service Portal: https://portal.chicagonettech.com
Website: https://www.ChicagoNetTech.com
Security Blog: http://networkbastion.blogspot.com/

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

Reply to Thread