First of all, I found this site by luck and it's great !
Now for the problem:
Copied your test database and set the host-value to hostname.domain.com.
Signed the agent and created a document for the queue. Now, when I run the
agent it does not send the mail, it generates a Connection refused entry in the
mail's log and (for some reason not every time) on the server console visibly.
Access rights are set to allow java agents, SMTP listener is on...