WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Bug Reports >> Error sending email
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1476996471

Message started by Trey on Oct 20th, 2016 at 10:47pm

Title: Error sending email
Post by Trey on Oct 20th, 2016 at 10:47pm
I recently had a problem with a directory monitor task that quit running, I checked and the db associated with it had grown to 70Gig. I also saw there is a new version out so went ahead and upgraded. I deleted the send email task that had gotten so big and reset it up like before. I didn't redo the System.Mail task which may be my problem. New files are triggering an email but I am getting an error from my SMTP, here is part of the message:

    rcpt_to:

      SmtpCmdResp: 550 <!-midM> invalid address '!-midM'

      550 <!-midM> invalid address '!-midM'

      Failed when sending RCPT TO:<!-midM>

      lastResponseLine: 550 <!-midM> invalid address '!-midM'

      bad_address: !-midM

      SmtpCmdResp: 550 <----------------------> invalid address '----------------------'

      550 <----------------------> invalid address '----------------------'

      Failed when sending RCPT TO:<---------------------->

      lastResponseLine: 550 <----------------------> invalid address '----------------------'

      bad_address: ----------------------

      SmtpCmdResp: 550 <!-endmidM> invalid address '!-endmidM'

      550 <!-endmidM> invalid address '!-endmidM'

      Failed when sending RCPT TO:<!-endmidM>

      lastResponseLine: 550 <!-endmidM> invalid address '!-endmidM'

      bad_address: !-endmidM

    --rcpt_to

It looks like variables are not getting filled in or something. Do I just need to redo the System.Mail task?

Thanks
Trey

Title: Re: Error sending email
Post by Gert on Oct 21st, 2016 at 12:29pm
Hi,

I am not totally sure what is happening, it may be that the emails that are ready to be sent got corrupt in some way.

Do this...
Stop your tasks (especially System.Mail)
Right click System.Mail, select "explore..." (some directory), this opens explorer inside the directory with emails (*.wdmail files and *.wdmailcombine files) waiting to be sent. Something like C:\ProgramData\WatchDirectory\System.Mail\Out.
Remove all of them (or move them somewhere else).
Go to ...\System.Mail\Fail and clean it up as well.

Restart your tasks and see if it works now.

mmmm, I now remember one case ~1 year ago, a customer had the same issue. His problem was that he had 2 installs of WatchDirectory, one (the old version) inside
C:\Program Files (x86)\WatchDirectory
and the other (new version) inside
C:\Program Files (x86)\WatchDirectory\WatchDirectory.
The big problem was that System.Mail (wdPostman.exe) that was running was the OLD version. His task that created emails was a NEW version. The new task created wdmail files with new syntax not understood by the old version.

Please check if you only have ONE wdPostman.exe on your system....


Title: Re: Error sending email
Post by Trey on Oct 21st, 2016 at 4:28pm
Thanks for getting back to me. That looks to be the issue. Should I backup the task and uninstall/reinstall or can i just copy files from new install over the old files and delete the subdirectory.

Title: Re: Error sending email
Post by Gert on Oct 22nd, 2016 at 7:18am
I think the following should do the trick:

In the WD Control Center select the menu
View -> Email -> Automatically start/stop the postman service
On the popup, tell it to disable the postman service. This will unregister the old version.
Do the same again and tell it to enable the postman service. This will register the new version.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.