On Wed, 30 May 2007, David Lord wrote:
> On 30 May 2007, at 22:24, [email protected] wrote:
>
> > On 30 May 2007, at 14:13, Davide Libenzi wrote:
>
> .......
>
> > > Try to run in debug mode (-Md) from a console, not from a daemonize
> > > script. Then show me what's the output when you connect to the SMTP port.
> >
> > OK but first I need to get as near as possible same config on spare
> > server as on the public facing server and hope spare server then
> > blocks local connections with ERELAY. If that doesn't happen I'll
> > have to rely on secondary MX whilst I do the testing on main server.
> > I don't want to risk rejecting wanted emails with relay denied.
>
> Probably tomorrow evening when I get round to further testing.
>
> Here are slightly munged log entries that may help:
>
> 1.25-pre11
> "mail.lordynet.org" "mail.lordynet.org" "192.168.59.214"
> "2007-05-30 12:13:32" "dosbox.local.domain"
> "remote.domain" "[EMAIL PROTECTED]" "[EMAIL PROTECTED]"
> "S73DF" "RCPT=OK" "" "0" ""
>
> 1.25-pre12
> "mail.lordynet.org" "mail.lordynet.org" "192.168.59.214"
> "2007-05-30 12:29:03" "dosbox.local.domain"
> "" "[EMAIL PROTECTED]" "[EMAIL PROTECTED]"
> "S73E3" "RCPT=ERELAY" "" "0" "dosbox.local.domain"
>
> 1.25-pre11
> "mail.lordynet.org" "mail.lordynet.org" "192.168.59.214"
> "2007-05-30 13:33:42" "dosbox.local.domain"
> "remote.domain" "[EMAIL PROTECTED]" "[EMAIL PROTECTED]"
> "S73E6" "RCPT=OK" "" "0" ""
Can you try to build the program below, and then run?
$ ./ipaddr 192.168.59.0 255.255.255.0
- Davide
----
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
static const char *afname(int ipfam) {
switch (ipfam) {
case AF_INET:
return "ipv4";
case AF_INET6:
return "ipv6";
}
return "????";
}
static int numip(char const *ipname) {
int error, ipfam;
struct addrinfo *cares, *ares;
struct addrinfo hints;
printf("Looking up: %s\n", ipname);
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
if ((error = getaddrinfo(ipname, NULL, &hints, &ares)) != 0) {
perror("getaddrinfo");
return error;
}
for (cares = ares; cares != NULL; cares = cares->ai_next) {
ipfam = *(unsigned short *) cares->ai_addr;
printf("Found: family='%s' fnbr=%u len=%u\n", afname(ipfam),
ipfam, cares->ai_addrlen);
}
freeaddrinfo(ares);
return 0;
}
int main(int ac, char **av) {
int i;
for (i = 1; i < ac; i++)
numip(av[i]);
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]