Hello qmail-ldap,
Hi all i really need to know hot to fix a problem with the err_unimpl(arg) function in
the qmail-smtpd.c,
i need it to log the users BAD input CMD's to the qmail-smtpd
void err_unimpl(arg) char *arg; { out("502 unimplemented (#5.5.1)\r\n"); logpid(3);
logstring(3,"unrecognized command ="); logstring(3,arg); logflush(3); }
-> the current log is like this::
Telnet smtp input:
----------------------
telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 ESMTP
Test TEs <<< USer inputs 2 STRINGS
502 Unrecognized command (#5.5.1)
tes <<< User inputs 1 STRING
502 Unrecognized command (#5.5.1)
quit
221 Closing connection with service
Connection closed by foreign host.
SMTPD LOG::
-----------------
@400000003d30595536f02004 qmail-smtpd 10155: connection from 127.0.0.1 ( unknown ) to
0
@400000003d30595d161c7814 qmail-smtpd 10155: unrecognized command = TEs <<<
Logs only the 2� STRING
@400000003d30595e2898c4d4 qmail-smtpd 10155: unrecognized command = <<<
Nouting is loged
@400000003d30596138cce2cc qmail-smtpd 10155: quit, closing connection
@400000003d305961390874cc tcpserver: end 10155 status 0
This is my problem, if a user only types one STRING it doesn�t log the user input, but
if the user types tow STRIGS it only logs the second STRING...
I need it to log all the input STRING.. How can this bee done
-> THis is what i need::
Telnet smtp input:
----------------------
telnet 0 25
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
220 ESMTP
Test TEs <<< USer inputs 2 STRINGS
502 Unrecognized command (#5.5.1)
tes <<< User inputs 1 STRING
502 Unrecognized command (#5.5.1)
quit
221 Closing connection with service
Connection closed by foreign host.
SMTPD LOG::
-----------------
@400000003d30595536f02004 qmail-smtpd 10155: connection from 127.0.0.1 ( unknown ) to
0
@400000003d30595d161c7814 qmail-smtpd 10155: unrecognized command = Test TEs
<<< !!!
@400000003d30595e2898c4d4 qmail-smtpd 10155: unrecognized command = TEs
<<< !!!
@400000003d30596138cce2cc qmail-smtpd 10155: quit, closing connection
@400000003d305961390874cc tcpserver: end 10155 status 0
|
X--------------------X
| Best regards from, |
| Sebastian |
X--------------------X--[13/07/2002]-[18:43:32]