• Resolved Erik Molenaar

    (@erikmolenaar)


    Hi,

    I think I have a great idea to further improve your plugin.

    I regularly work with development or staging versions of live websites, which can unintentionally send out e-mail to the real world. Which is kinda annoying.

    Unitil now, after building a new staging/dev install, I usually enter a fake hostname and port in your plugin settings to make sure this doesn’t happen.

    Why not ad a “Domain Name Validation” option like this: https://www.screencast.com/t/SVX0xvBkOy

    I think it would make an awesome new future. Thanks!

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi @alexanderfoxc

    I noticed e-mail is still being sent from my staging/dev WP installations.

    Your plugin correctly shows the “Domain check failed: website domain (xxx) is not in allowed domains list” notice in the log, but the e-mail is still being sent out. I guess via WordPress own phpmail() function (?), but this is not my expertise ??

    Is it possible to block e-mail all together when the domain check fails? Just to make sure a staging/development server is not capable of sending out emails to the ‘real world’?

    Thanks!

    Hi @erikmolenaar.

    I’ve just checked the code and it works as expected, e.g. it doesn’t set your SMTP settings if domain doesn’t match. And you’re correct, the email is being sent using standard WP means after that.

    I have an idea how to prevent this. Will let you know when it’s implemented so you could help me to test it ??

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi @alexanderfoxc

    Thanks for the prompt reply, and let me know if you need testing or feedback. I am more than willing to help you improve your plugin!

    Perhaps it is also better to include the email header information (Date, Subject, Recipient etc) in your log for failed domain validations as well.

    Just “Domain check failed: website domain (xxx) is not in allowed domains list” is rather compact to do some serious troubleshooting if needed ??

    Thanks and looking forward to your updates.

    Hey Erik @erikmolenaar, could you please test this version? https://desertfox.me/miniserv/_public/easy-wp-smtp_1.3.1_testing.zip

    You need to manually install it on your server (via Upload Plugin).

    It now attempts to block ALL emails from the site if domain check fails. It also puts some information about blocked emails in the log.

    Let me know how it goes for you.

    PS: If this version works for you, don’t need to remove it after the test. It will get automatically updated when new plugin version is released.

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Looks like it works ??
    Thx!

    Hi Erik @erikmolenaar, hope you’re doing well ??

    We had to make some changes in this. We added new option called “Block ALL emails” to the Domain Check settings. When enabled, plugin does exactly what it says – blocks ALL emails from being sent out. If it’s disabled, plugin is just not using SMTP settings (like it was before). So, for you to achieve what you want, you would have to enable this on your websites.

    Can you please test it out and let me know how it goes for you? https://desertfox.me/miniserv/_public/easy-wp-smtp-1.3.1-testing2.zip

    The new version is coming very soon. Also, if you enable this setting even in this testing version, it would be preserved when new version is released, so it’s better to be prepared ??

    Any questions or issues – don’t hesitate to let me know.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Plugin idea: domain name validation’ is closed to new replies.