|
Ol� for all,
I looked for of some forms to prevent leaving the
qmail with the opened Relay, used patch of the Mrs. Brisby's to legalize the
together smtp with the RPM of the qmail of Bruce Guenter (obviously I created a
new package RPM), but exactly thus the qmail still was disapproved in the test
with the " telnet relay-test.mail-abuse.org ", the Wildmat I I did not obtain to
make to function in my system, I decided to look at qmail-smtpd.c inside and to
look a reply of as to prevent the not authorized Relay and found the function
"smtp_rcpt(arg)" and includes the following strings:
void smtp_rcpt(arg) char *arg; {
int x=0; /* new code if
(!seenmail) { err_wantmail(); return; }for(x=0; arg[x]!=0; x++) if ((arg[x]==37) || (arg[x]==34) || (arg[x]==91) || (arg[x]==33)) { err_syntax(); return; } */new code if (!addrparse(arg)) { err_syntax(); return; } if (flagbarf) { err_bmf(); return; } if (relayclient) { --addr.len; if (!stralloc_cats(&addr,relayclient)) die_nomem(); if (!stralloc_0(&addr)) die_nomem(); } ...
After to compile the qmail and to restart the job
again, I run the " telnet again relay-test.mail-abuse.org " and now it
passed in all the tests. The code looks for the characters ",[,!,% in
rcpt.
I am not programmer and therefore I was with the
following one doubts: It will be that I will have problems with emails we
legitimos with this alteration?
Renato Dobelin
|
- Re: qmail-smtpd.c Renato Dobelin
- Re: qmail-smtpd.c Greg White
