Re: How can I check if an address is mine?

Alessandro Vesely <[email protected]> Thu, 23 Oct 2025 19:49:08 +0200
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On Thu 23/Oct/2025 01:31:30 +0200 Sam Varshavchik wrote:
> Alessandro Vesely writes:
> 
>> Hi,
>>
>> I can try aliaslookup and, if that fails, authtest.  However, both fail on 
>> "[email protected]".
>>
>> Is there a program that tells whether an address delivers to the local server?
>>
>> If not, any hint on how to write one?
>>
>> Of course, I can check that the domain's MX resolves here and then connect to 
>> 127.0.0.1:25.  Is this the easiest way?
> 
> verifysmtp will essentially do that.
> 
> The extension address check gets hooked in the delivery code path.


Great!  Thank you.  I just have to check if the domain is in hosteddomains 
(grep -qx is easier than dig and compare its results).

I have it installed as readable and executable only by root, even though it's 
in /usr/local/bin.  Are there reasons for that?  I'd call it from an 
unprivileged script.


Best
Ale
-- 







_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users