The app was written about 15 years ago in Xenix and has subsequently been upgraded to Unix with features added. It's a security front end. However, it isn't very accommodating when it comes to network printing. It sends raw text directly to a port or com port direct (serial or parallel). It checks to see if it can establish control and sets it's own baud rate within the app and was designed so as not to have support agents needing to dabble into unix to set up printers.
The trouble is, even when printing to a network port, it doesn't send and end of file (EOF) or anything, so it needs to let the printer time out. That's why I use the hpnp as it provides a dummy device by way of a /dev/ttypxx that the app likes to see there all the time, and hpnp takes care of opening the printing port and closing it when activity dies down.
But...... hpnp won't print to the virtual printer that I can work out. I tried to configure the email printer as the only lpd using lpadmin. But the GUI print manager doesn't show it, even though it says it's the default, and it is there because you can't set up another printer of the same name. Even then, I tried to send a job to port 515, but nothing happened.
As a printer, I have it working quite happily sending a cat job to the virtual device or the print manager OK and it sends the mail as expected.
And now, to ask why the software manufacturer can't help - they have no Unix programmers anymore. They have chosen the windows path as the way to the next generation of it's software. It also sends the data as a raw Unix text - ie no CR with the LF which has caused me no end of grief with an old network capable laserjet IV - none of the solutions I have tried to run the file past a filter have worked, and the printer doesn't have a config to add it either.
I thought I'd have to go the perl route, but have not done anything like that before, so looks like I'm in for a crash course.
Chairs.