[xmail] Re: 1.25-pre12

2007-05-30 Thread David Lord
On 29 May 2007, at 18:57, Davide Libenzi wrote:

 
 Here's the *preliminary* release of XMail supporting IPV6:
 
 http://www.xmailserver.org/xmail-1.25-pre12.tar.gz
 http://www.xmailserver.org/xmail-1.25-pre12.win32bin.zip
 
 Both IPV4 and IPV6 formats are supposed to be working. The usual IPV4 
 IPV4:PORT syntax has to become [IPV6]:PORT in case of IPV6.
 New options -*6 enable listening on IPV6 addresses.


On NetBSD 3.1 
Compiled and installed ok but I've backed out to pre11 after first 
outgoing email via xmail as local smarthost gave ERELAY response. 
I've since attempted to resend and it hit expected greylisting with 
temporary error. No time to send test mails as I'm off out now so 
will try again with pre12 this evening.

David

-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread Davide Libenzi
On Wed, 30 May 2007, David Lord wrote:

 On 30 May 2007, at 11:25, David Lord wrote:
 
  On 29 May 2007, at 18:57, Davide Libenzi wrote:
  
   
   Here's the *preliminary* release of XMail supporting IPV6:
   
   http://www.xmailserver.org/xmail-1.25-pre12.tar.gz
   http://www.xmailserver.org/xmail-1.25-pre12.win32bin.zip
   
   Both IPV4 and IPV6 formats are supposed to be working. The usual IPV4 
   IPV4:PORT syntax has to become [IPV6]:PORT in case of IPV6.
   New options -*6 enable listening on IPV6 addresses.
  
  
  On NetBSD 3.1 
  Compiled and installed ok but I've backed out to pre11 after first 
  outgoing email via xmail as local smarthost gave ERELAY response. 
  I've since attempted to resend and it hit expected greylisting with 
  temporary error. No time to send test mails as I'm off out now so 
  will try again with pre12 this evening.
 
 Had to change plans for this afternoon and now another waste of time 
 as I find my ISP is currently under DOS attack so connectivity is 
 poor to nonexistant.
 
 Anyway back on pre11 can confirm xmail again accepts emails from 
 hosts on lan and has eventually delivered them ok.
 
 Tried again with pre12 this time to one of my remote test accounts so 
 no greylist problem, and again outgoing email is blocked by ERELAY.
 
 Back on pre11 confirmed again that outgoing email is delivered ok.
 
 I lost my ip6 tunnel after I had a change of ip block in January and 
 managed to wipe my original settings so no longer have ip6 working.
 DNS still returns the ip6 address as well as ip4 and in can cause 
 minor problems with delay before ip4 address gets used.

Can you show me the content of smtprelay.tab?



- Davide


-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread David Lord
On 30 May 2007, at 11:20, Davide Libenzi wrote:

 On Wed, 30 May 2007, David Lord wrote:
 
  On 30 May 2007, at 11:25, David Lord wrote:
  
   On 29 May 2007, at 18:57, Davide Libenzi wrote:
   

Here's the *preliminary* release of XMail supporting IPV6:

http://www.xmailserver.org/xmail-1.25-pre12.tar.gz
http://www.xmailserver.org/xmail-1.25-pre12.win32bin.zip

Both IPV4 and IPV6 formats are supposed to be working. The usual IPV4 
IPV4:PORT syntax has to become [IPV6]:PORT in case of IPV6.
New options -*6 enable listening on IPV6 addresses.
   
   
   On NetBSD 3.1 
   Compiled and installed ok but I've backed out to pre11 after first 
   outgoing email via xmail as local smarthost gave ERELAY response. 
   I've since attempted to resend and it hit expected greylisting with 
   temporary error. No time to send test mails as I'm off out now so 
   will try again with pre12 this evening.
  
  Had to change plans for this afternoon and now another waste of time 
  as I find my ISP is currently under DOS attack so connectivity is 
  poor to nonexistant.
  
  Anyway back on pre11 can confirm xmail again accepts emails from 
  hosts on lan and has eventually delivered them ok.
  
  Tried again with pre12 this time to one of my remote test accounts so 
  no greylist problem, and again outgoing email is blocked by ERELAY.
  
  Back on pre11 confirmed again that outgoing email is delivered ok.
  
  I lost my ip6 tunnel after I had a change of ip block in January and 
  managed to wipe my original settings so no longer have ip6 working.
  DNS still returns the ip6 address as well as ip4 and in can cause 
  minor problems with delay before ip4 address gets used.
 
 Can you show me the content of smtprelay.tab?

Same as from late January when public ips changed.
 
$ cat /var/MailRoot/smtprelay.tab
127.0.0.1TAB255.255.255.255
192.168.59.0TAB255.255.255.0
81.187.247.86TAB255.255.255.255
81.187.61.64TAB255.255.255.240
$

David

-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread Davide Libenzi
On Wed, 30 May 2007, David Lord wrote:

 On 30 May 2007, at 18:57, David Lord wrote:
 
  On 30 May 2007, at 11:20, Davide Libenzi wrote:
 
 ..
 
   Can you show me the content of smtprelay.tab?
  
  Same as from late January when public ips changed.
   
  $ cat /var/MailRoot/smtprelay.tab
  127.0.0.1TAB255.255.255.255
  192.168.59.0TAB255.255.255.0
  81.187.247.86TAB255.255.255.255
  81.187.61.64TAB255.255.255.240
  $
 
 I just updated spare server from 1.22 to 1.25-pre12. I've not made 
 the more recent changes/additions to server.tab re SSL/TLS as per 
 running mailserver on 1.25-pre11 and a quick test with telnet shows 
 it accepting mail ok.
 
 I'll do some more checking.

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.


- Davide


-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread David Lord
On 30 May 2007, at 14:13, Davide Libenzi wrote:

 On Wed, 30 May 2007, David Lord wrote:
 
  On 30 May 2007, at 18:57, David Lord wrote:
  
   On 30 May 2007, at 11:20, Davide Libenzi wrote:
  
  ..
  
Can you show me the content of smtprelay.tab?
   
   Same as from late January when public ips changed.

   $ cat /var/MailRoot/smtprelay.tab
   127.0.0.1TAB255.255.255.255
   192.168.59.0TAB255.255.255.0
   81.187.247.86TAB255.255.255.255
   81.187.61.64TAB255.255.255.240
   $
  
  I just updated spare server from 1.22 to 1.25-pre12. I've not made 
  the more recent changes/additions to server.tab re SSL/TLS as per 
  running mailserver on 1.25-pre11 and a quick test with telnet shows 
  it accepting mail ok.
  
  I'll do some more checking.
 
 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.

David

-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread David Lord
On 30 May 2007, at 22:24, xmail@xmailserver.org 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 


David

-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread Davide Libenzi
On Wed, 30 May 2007, David Lord wrote:

 On 30 May 2007, at 22:24, xmail@xmailserver.org 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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread David Lord
On 30 May 2007, at 16:12, Davide Libenzi wrote:

 
 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;
 }

First after making a few of changes to server.tab on the spare system 
it gave relay denied at 'RCPT TO:' same as other system had done. 
Other than 'cosmetic' changes to get configs closer, eg. Maxerrors 
increased from 2 to 3, only ones I think made the difference are:
SmtpNoSSLAuths 1
EnableCTRL-TLS 0
EnableSMTP-TLS 0
EnablePOP3-TLS 0

Only guessing how to proceed with above code but looks as if 
something bad happened.

$ c++ -v -o ipaddr2 ipaddr.cpp
Using built-in specs.
Configured with: 
/home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure 
--enable-long-long --disable-multilib --enable-threads --disable-symvers 
--build=i386-unknown-netbsdelf2.0. --host=i386--netbsdelf 
--target=i386--netbsdelf
Thread model: posix
gcc version 3.3.3 (NetBSD nb3 20040520)
 /usr/bin/../libexec/cc1plus -quiet -v -iprefix /usr/bin/../libexec/ 
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 ipaddr.cpp -D__GNUG__=3 
-quiet -dumpbase ipaddr.cpp -auxbase ipaddr -version -o /var/tmp//ccfdFz79.s
GNU C++ version 3.3.3 (NetBSD nb3 20040520) (i386--netbsdelf)
compiled by GNU C version 3.3.3 (NetBSD nb3 20040520).
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=16384
ignoring nonexistent directory /usr/libexec/include/g++
ignoring nonexistent directory /usr/libexec/include/g++/backward
ignoring nonexistent directory /usr/libexec/include
#include ... search starts here:
#include ... search starts here:
 /usr/include/g++
 /usr/include/g++/backward
 /usr/include
End of search list.
 as -o /var/tmp//cctFamJf.o /var/tmp//ccfdFz79.s
 ld -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so -o ipaddr2 
/usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/bin/../libexec 
/var/tmp//cctFamJf.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc 
/usr/lib/crtend.o /usr/lib/crtn.o


$ ./ipaddr2 192.168.59.0 255.255.255.0
Looking up: 192.168.59.0
Found: family='' fnbr=528 len=16
Found: family='' fnbr=528 len=16
Looking up: 255.255.255.0
Found: family='' fnbr=528 len=16
Found: family='' fnbr=528 len=16


David

-
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]



[xmail] Re: 1.25-pre12

2007-05-30 Thread Davide Libenzi
On Thu, 31 May 2007, David Lord wrote:

 $ ./ipaddr2 192.168.59.0 255.255.255.0
 Looking up: 192.168.59.0
 Found: family='' fnbr=528 len=16
 Found: family='' fnbr=528 len=16
 Looking up: 255.255.255.0
 Found: family='' fnbr=528 len=16
 Found: family='' fnbr=528 len=16

Found the problem. Brain-fart of mine ;)



- Davide


-
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]



[xmail] Re: 1.25-pre14

2007-05-30 Thread Davide Libenzi
On Wed, 30 May 2007, Davide Libenzi wrote:

 Here's -pre14 with the fixes for the problems found by David Lord:
 
 http://www.xmailserver.org/xmail-1.25-pre14.tar.gz
 http://www.xmailserver.org/xmail-1.25-pre14.win32bin.zip

If you enable IPV6 (with -*6, or you bind to an IPV6 address with -*I), 
GLST does not work ATM, since it does not understand IPV6 addresses.
Will be fixed ASAP.



- Davide


-
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]