Daniel Lorch wrote: > > hi > > ok, improved version > > 1. our fake smtpd server, save as smtpd.sh > > #!/bin/sh > > echo '220 mx.hispeed.ch ESMTP' > read input > echo '550 Not today, spam-dude' > exit 0
There are many mailservers out there which do not recognize a 550 in the HELO/EHLO answer. They will only give up when they get a 550 on either the "MAIL FROM" or "RCPT TO" command. -- Andre > 2. inetd.conf (or use it with daemontools/ucspi-tcp) > > 1025 stream tcp nowait nobody /path/to/smtpd.sh > > 3. test > > $ telnet localhost 1025 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 mx.hispeed.ch ESMTP > EHLO i-am-a-spammeur > 550 Not today, spam-dude > Connection closed by foreign host. > > Now do something, quick! > > daniel > ---------------------------------------------- > [EMAIL PROTECTED] Maillist-Archive: > http://www.mail-archive.com/swinog%40swinog.ch/ ---------------------------------------------- [EMAIL PROTECTED] Maillist-Archive: http://www.mail-archive.com/swinog%40swinog.ch/