Techkiwi's Blog

The adventures of a technical kiwi


July 2015

Cups Print Server – Slow Printing And Gui

I had a very weird issue on a new Debian installation where the Cups print server gui was very slow to respond and the printers were also slow to print. When you attempt to print a page there was a 4/5 second delay before the print job would be sent to the printer.

After much investigation I have since resolved the issue which relates to IPV6 even though there was no IPV6 entries for this server.

I had set IPV6 IP Tables firewall rules to just block all connections in and out.
The fix was to “Allow All” for the IPV6 loopback device which seemed to resolve the issue and then add a local entry for IPV6 into the hosts file.



#Allow Loopback
-A INPUT -i lo -j ACCEPT


The issue seems very odd since Cups was mean’t to be communicating over IPV4, There were no host entries for IPV6 either just IPV4 but this was definitely the fix I required.

Good Luck!

Hopefully someone else finds this post as I struggled to find resources on this issue!


Mail / Mailx – Content-Type: text/html: No such file or directory

Its been a long time between drinks, but I have some new content this week.

We had an issue with a few old send email scripts running on a new Debian box. The email scripts utilized the Mail command and send plain text emails fine, but when you tried to send HTML emails it would give the error “Content-Type: text/html: No such file or directory”.

It did not like the -a switch for setting the header content type, here is an example:

# mailx -a ‘Content-Type: text/html’ -s “Subject” < test.html
Content-Type: text/html: No such file or directory


The end fix was easy. We just installed Mail Utils for Debian with the command “apt-get install mailutils” and after it had finished installing the -a switch no longer gave errors regarding html and not being able to find the directory.



Blog at

Up ↑