How to make a letter, so that it would fall into Badmail for a certain reason.

Например Badmailed Messages (No Recipients)? 

C # code uses PerformanceCounter to count Badmailed emails. Actually a piece of code indicating the counter

 ItemsInRemoteQueue = GetPerformanceValue("SMTP Server", "Remote Queue Length", "_Total"), ItemsInSmtpQueue = GetPerformanceValue("SMTP NTFS Store Driver", "Messages in the queue directory", "_Total"), ItemsWithGeneralFailure = GetPerformanceValue("SMTP Server", "Badmailed Messages (General Failure)", "_Total"), ItemsWithBadPickupFile = GetPerformanceValue("SMTP Server", "Badmailed Messages (Bad Pickup File)", "_Total"), ItemsWithHopCountExceeded = GetPerformanceValue("SMTP Server", "Badmailed Messages (Hop Count Exceeded)", "_Total"), ItemsWithNdrOfDsn = GetPerformanceValue("SMTP Server", "Badmailed Messages (NDR of DSN)", "_Total"), ItemsWithNoRecipients = GetPerformanceValue("SMTP Server", "Badmailed Messages (No Recipients)", "_Total"), 

QA says we don’t know how to test it.

I delete the To address from the usual eml and copy the SMTP server folder to the Pickup. But the counter Badmailed Messages (Bad Pickup File) increases. And you need to somehow influence Badmailed Messages (No Recipients) and the rest of the counters.

What am I doing wrong?

  • Most likely, you will need to collect a letter that does not have recipients for one of the counters. Regular customers are unlikely to allow this, there is a software hack. - D-side

0