They are opened by An Post and then returned to sender. AFAIK, they do not attempt to identify using a franking machine, since I worked in an office with a franking machine and we regularly had post returned due to an invalid address but letter was always opened by An Post to identify the sender.