You can initialize component from checkout_index_index.xml
or script from calling in the phtml
<script type="text/x-magento-init">
{
"*": {
"VL_Checkout/js/customComponent": {
"ajaxUrl" : "<?= $block->getAjaxUrl(); ?>"
}
}
}
</script>
you can now create a customComponent.js
as below
define(
[
'jquery',
'ko',
'uiComponent',
'Magento_Checkout/js/checkout-data',
'Magento_Checkout/js/model/quote',
'Magento_Ui/js/model/messageList'
],
function($, ko, Component, checkoutData ,quote , messageList) {
'use strict';
return Component.extend({
initialize: function() {
this._super();
self = this;
quote.shippingAddress.subscribe(function (value) {
// add you logic and compair the address.
if(value.postcode){
if(value.postcode){
messageList.addErrorMessage({ message: "you custom Message" });
}
}
},this);
},
});
}
);
Now you can subscribe to the address changes and add your own code there for providing user message you can use the messageList and provide your message.