Change this line:

Code:

alias mailsockclose { if ($sock($1)) mailsockwrite $1 QUIT }



to this:

Code:

alias mailsockclose { 
  if ($sock($1)) mailsockwrite $1 QUIT 
  .timersmtp2 1 3 mailsockcleanup $1
}

alias mailsockcleanup {
  if ($sock($1)) sockclose $1
  unset %sndmail.*
}

on *:START:{ unset %sndmail.* }



And below this line:

Code:

  set %sndmail.busy 1



add this line:

Code:

  .timersmtp 1 5 mailsockclose sendmail



That should clear out everything created by the script so that you can send again.

-genius_at_work

Last edited by genius_at_work; 19/11/08 01:37 AM.