Undead mail routing interval?

Hi,

Here is my problem :

I made a script which automaticaly create notes users on the fly. After the creation process finish i send a mail to the new user. The problem is that my mail server went to receive the person document and it couldn’t route the mail immediatly because, i suppose, the ($users) view was not yet refreshed.

The mail stay in mail server’s mail.box in “undead” status for about one hour before being deliver.

I make my script sleep for about 30 seconds after the replication occurs but in 50 percents of the time, the mail is not finaly delivered.

Could someone help me on this stuff ?

Thanks in advance.

Julien

Subject: Undead mail routing interval ?

What about using a mailbox template including your mail?

Yannick