Re: Re: Re: Re: USER-WRN bad 'USER@' dest
Marius Tomaschewski <[email protected]> Mon, 2 Dec 2002 14:10:27 +0100
| Newsgroups | gmane.linux.suse.proxy-suite |
|---|---|
| Organization | SuSE Product Developement |
| Message-ID | <[email protected]> |
On Thu, Nov 28, 2002 at 10:25:46AM +0100, Frank Sackewitz wrote:
> 1st sorry for the delay, was on businesstrip!
Hmm... strange. No idea what goes wrong there...
The dns query is done and there seems to bee an answer, but it
still doesn't work.... All the proxy does there is:
ctx->magic_addr = socket_str2addr(p, INADDR_ANY);
if (ctx->magic_addr == INADDR_ANY ||
ctx->magic_port == INPORT_ANY) {
client_respond(501, NULL,
"Invalid destination in user name");
syslog_write(U_WRN,
"bad 'USER@' dest '%s:%s' from %s",
NIL(p), NIL(q), ctx->cli_ctrl->peer);
client_reinit();
return;
}
If you take a look to the log messages (e.g. in one of your other mails),
the string variable "p" used in syslog_write contains valid hostname...
The socket_str2addr calls gethostbyname...
An other posibility is, you have a broken IPPORT_FTP or INPORT_ANY
definition in some header file? IPPORT_FTP should be defined to 21
and INPORT_ANY to 0. If it is not defined, the proxy defines it...
[...]
> 30226 open("/etc/resolv.conf", O_RDONLY) = 3
> 30226 fstat64(3, {st_mode=S_IFREG|0644, st_size=90, ...}) = 0
> 30226 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
> 30226 read(3, "nameserver 193.101.111.10\nnamese"..., 4096) = 90
^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
> 30226 open("/usr/lib/libnss_dns.so.2", O_RDONLY) = 3
[...]
> 30226 recvfrom(3, "0o\205\203\0\1\0\0\0\1\0\0\3ftp\2de\7openbsd\4org "...,
> 1024, 0, {sin_family=AF_INET, sin_port=htons(53),
> sin_addr=inet_addr("193.101.111.10")}}, [16]) = 121
[...]
cu,
Marius Tomaschewski <[email protected]>
--
SuSE Linux AG, Nürnberg -- Product Developement
PGP public key on: http://www.suse.de/~mt/mt.pgp
DF17 271A AD15 006A 5BB9 6C96 CA2F F3F7 373A 1CC0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]