OK, Unix programmers...
I'm looking for some sample code for a stand-alone daemon that accepts multiple connections on a single port. Specifically, I need to write a quick "dummy" smtp server that always says "I'm busy - try again later." I know how to write on that runs from inetd, but in this case I need a stand alone one.
Any suggestions on where to look (besides Google)?
Note: for those that are asking why... When we get wind of an active Internet email virus, we take the precaution of killing our real mail daemon (Exim) until the threat has been assessed. During this down time, all our Outlook clients complain that the outbound smtp server is not responding (no kidding). My idea is that when I kill Exim, I start a dummy server to placate the clients in the interim.
I'm looking for some sample code for a stand-alone daemon that accepts multiple connections on a single port. Specifically, I need to write a quick "dummy" smtp server that always says "I'm busy - try again later." I know how to write on that runs from inetd, but in this case I need a stand alone one.
Any suggestions on where to look (besides Google)?
Note: for those that are asking why... When we get wind of an active Internet email virus, we take the precaution of killing our real mail daemon (Exim) until the threat has been assessed. During this down time, all our Outlook clients complain that the outbound smtp server is not responding (no kidding). My idea is that when I kill Exim, I start a dummy server to placate the clients in the interim.