Scheduled agent runs on server, agent is signed by some user. I don't need emails to come back by replies, because the sender is application, not the real person. Application needs to deliver encrypted emails to external (Exchange for example) recipients. Recipient is registered as the person in Domino Directory and X.509 certificate is imported to the person document. Having recipient's person document in Domino Directory ensures that application running on server can find X.509 certificate in <<local addressbook>>. If this recipient has only internet address filled in, then this application encrypts successfully emails with X.509 certificate and recipient can decrypt only having private key of X.509 certificate. However application no longer encrypts after I add forward address to forward field in person document of the same recipient. In this case, application requires X.509 certificate for address filled in forward address field and if it's missing then the application provides error about missing X.509 certificate. However having this certificate (for forward address) in person document only omits the error but recipient receives email unencrypted. Forward address in forward address field is required to forward emails to external recipient.
My goal is to have application running on server to send encrypted emails to external recipients using X.509. Any ideas how to achieve this? Has anybody achieved this with some notes API?