Ask the Expert

How can I create an agent to notify e-mail senders that my domain has changed names?

I am using Lotus Notes R5. My domain name was and all my Internet mails were coming to Now my domain is changed to (I have kept 10 days open for both the domains.) I would like to create an agent to users' PC by which users who would send me mails from the outside world will get the following message: "My Internet address is changed to" This should be restricted to the people who are local mail server users. How can I do this?
Haven't tried this code myself, but it seems you could write a scheduled agent in the users' mail files to run "after mail received", as follows:
recipients := @Lowercase(SendTo : CopyTo : BlindCopyTo); mailfileOwner := @Lowercase (@ReplaceSubstring(@Name ([cn]; @GetProfileField("CalendarProfile"; "Owner")); " "; "_")); SELECT @Contains(recipients; mailfileOwner + ""); ""); @MailSend(From; ""; ""; "Change of address for " + mailfileOwner + ""; "My Internet address is changed to " + mailfileOwner + "")
This would need to be enabled by each user, so it may not be appropriate for a large company. There are probably more sophisticated solutions available from partners (e.g., to intercept the e-mails on your e-mail server as they are received).

This was first published in May 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: