Re: [xmail] Address family fallback bug

2013-10-09 Thread fcxmail
Hi, thanks for the patch !

Could you publish or send to the list the diffs against 1.27 original for your 
patch, so everybody here could :
1 - check your source code (potential bugs, security holes, ...), its allways 
good to have some 'checkers' validating it
2 - compile on they favorite Platform :)

Thanks in advance :)

Francis


===
 Message d'origine - 14/03/2013 22:44:42
===

Does your patch tries all the mx assigned ips even in -m4 mode (ipv4 only) ?

Yes. I think it's the right thing to do. In most cases, the first 
address will work. And when it doesn't, it seems wrong to ignore 
others if present, because using them might be the only way to 
deliver the message (there's no guarantee that other MXes will work, 
or there may not be other MXes at all).

Do you have binaries available (here for win32) for testing ?
(i don't have vc compiler here)

If you don't fear binaries from untrusted strangers, this is what I 
currently use:

http://web.hisoftware.cz/sob/download/XMail-1.27-af-fix-test1.7z

No problems so far.

-- 

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Address family fallback bug

2013-10-09 Thread fcxmail

Oups, nevermind, I missed the diff was in your first post !

Sorry

In case, have you made any news changes in this code after initial post ?
(enhancements,...)

Thanks again
Francis

===
 Message d'origine - 09/10/2013 09:55:27
===

Hi, thanks for the patch !

Could you publish or send to the list the diffs against 1.27 original for your 
patch, so everybody here could :
1 - check your source code (potential bugs, security holes, ...), its allways 
good to have some 'checkers' validating it
2 - compile on they favorite Platform :)

Thanks in advance :)

Francis


===
 Message d'origine - 14/03/2013 22:44:42
===

Does your patch tries all the mx assigned ips even in -m4 mode (ipv4 only) ?

Yes. I think it's the right thing to do. In most cases, the first 
address will work. And when it doesn't, it seems wrong to ignore 
others if present, because using them might be the only way to 
deliver the message (there's no guarantee that other MXes will work, 
or there may not be other MXes at all).

Do you have binaries available (here for win32) for testing ?
(i don't have vc compiler here)

If you don't fear binaries from untrusted strangers, this is what I 
currently use:

http://web.hisoftware.cz/sob/download/XMail-1.27-af-fix-test1.7z

No problems so far.

-- 

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Address family fallback bug

2013-03-14 Thread fcxmail
Sorry for late response

Does your patch tries all the mx assigned ips even in -m4 mode (ipv4 only) ?

Do you have binaries available (here for win32) for testing ?
(i don't have vc compiler here)

Francis



===
 Message d'origine - 10/02/2013 22:45:09
===

Hi

On my servers, I noticed increasing number of failed deliveries with 
417 Temporary delivery error and Error connecting to remote 
address. I did a little investigation and long story short, XMail 
doesn't handle address family fallback, when connection using 
preferred one does not succeed. It simply tries only one address per 
MX and if it doesn't work, it considers that MX dead and moves to another one.

Now imagine what happens when you use -M7 parameter (use IPV6 records 
if present, or IPV4 records otherwise, for host name lookups), target 
system has both IPv4 and IPv6 records set for all MXes (soon to be 
standard for most servers, well perhaps not so soon, but it's getting 
more and more common) and IPv6 is broken on either side or anywhere 
between. XMail tries connecting using only IPv6 for a while, until it 
finally gives up and returns the message as undeliverable. Which is 
wrong, because if it tried IPv4, it would deliver it just fine.

Relatively safe workaround for now, assuming IPv6 as a new thing is 
going to break more often than IPv4, is to use -M5 instead (Use IPV4 
records if present, or IPV6 records otherwise, for host name 
lookups). But it means that IPv6 won't get used at all, except for 
few rare IPv6-only MXes. Also the problem does not really go away, if 
it happens that IPv6 works while IPv4 does not, it will be back.

Attached is patch with works for me solution, i.e. not tested by 
anyone else nor even necessarily correct. It makes XMail try to 
connect to all addresses of MX before moving to next one. Apart from 
possible unintentional errors, it deliberately ignores -M5 and -M7 
parameters and uses AF_UNSPEC for getaddrinfo() and all results when 
one of them is set. It respects -M4 and -M6 if someone really wants 
to use only one address family.

IMHO -M5 and -M7 are wrong, at least on Windows, where getaddrinfo() 
with AF_UNSPEC returns addresses in best order automatically and 
manual override should not be needed. I think Linux either does that 
too or at least has means to influence it using /etc/gai.conf. So 
even if -M5 and -M7 should stay as useful for someone, adding new -M8 
for AF_UNSPEC order would be good idea.

PSYNC has the same problem. And I guess CtrlClnt connecting to server 
probably too, but it's far from critical.

-- 
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] DbgFix: Mail loop detected

2012-10-18 Thread fcxmail
Hello

The MaxMTAOps variable have nothing to do with 'dns' name resolution
mechanism so dns name resolution problems will 'normaly' not be resolved
increasing this parameter (except bug in xmail, but I don't think, dns code
is very isolated from mails process in xmail code)..

If you have a 'Mail loop detected', even you can have two sort of reasons :
- Real loop : some server in the route resend the mail to one of the
previously used smtp servers (or itself) in the 'route' to the last, and
your server is one that receive again and again the message (it detect loops
regarding smtp headers counting the Received: lines).
Nothing to do here on your xmail server to correct this problem, the mail is
in a loop, increasing MaxMTAOps will not correct the 'loop'
Very likely some chain of forwarding accounts that send to others forwarding
accounts, that ... and another forwarding account 'forwarding' back in the
chain, in this case find the 'back forwarder' and correct the forward will
be the only solution
To know if this is the problem, try capture the mail reaching your server
again in again (see logs, ... use a filter) and verify the Received: headers
chain to see a loop

- In normal situation on the Internet it's rare to reach the default 16
'MaxMTAOps', even with big ISP having many servers (front ends, avscan, spam
scan, , backends, forwarders, final clients servers, ... if each task in a
different server). But if you suspect this is the problem ^(and not a real
loop) try increasing by steps (say by 4 step, 20, 24, ...) until the 'loop'
detection stops (if you reach more than 32, I think it’s a Real Loop you
detected)

Regards
Francis


-Message d'origine-
De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] De
la part de David Lord
Envoyé : mardi 16 octobre 2012 18:15
À : U.Mutlu
Cc : xmail@xmailserver.org
Objet : Re: [xmail] DbgFix: Mail loop detected

On 12 Oct 2012 at 16:54, U.Mutlu wrote:

 Just wanted to share a debug session to trace down a Mail loop
detected situation:
 
 A bounce mail with reason Mail loop detected is generated under this
circumstance:
   if it takes too many steps (operations) to get the first MX record
   (or the final A record when MX is missing after trying all)
   of the recipient domain than what is defined in server.tab under
 MaxMTAOps 16

I had problems with some mailing lists and over a period gradually increased
MaxMTAOps to 28. 

Oldest server.tab in archive on this server is Jul 7, 2009 and that has
'MaxMTAOps  28' and other changes go back to 2005.


David

 
 For example:
 I had a mail to an address xx...@embarqnow.net and got that error 
 because that domain has many nameservers and a depth of 3 levels to 
 finally get the MX record, but the number of steps to get to the MX 
 exceeds the above defined 16 ...
 

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] reflecting config file changes

2012-09-18 Thread fcxmail
Hello

No reload option

Files change that need xmail 'reload' (in fact stop/start) BEFORE changing
them are whose that are 'indexed' (refer doc for complete list but if I
remember they are domains.tab, aliasdomain.tab mailusers.tab, aliases.tab
and extaliases.tab)
All others, can be changed on the fly without 'reload', as they are read on
each use (could some be only read at start of xmail, don’t know, no info in
doc, perhaps server.tab ? in this case I always stop, change, start to be
sure)

Regards
Francis

-Message d'origine-
De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] De
la part de U.Mutlu
Envoyé : mardi 18 septembre 2012 13:40
À : xmail@xmailserver.org
Objet : [xmail] reflecting config file changes

Does xmail have a reload option to just reload its config files into
memory without stopping/restarting the program?

Which of the config files (ie. the *.tab files) do not require a
restart/reload after modifying the file?


(using xmail 1.27 src distro on linux)
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] moving to ipv6

2012-01-18 Thread fcxmail
As per AUTH=EFAIL:TYPE=LOGIN in the first log line, seems your mua (messaging 
user agent, ak you messaging client software) is trying to authenticate when 
connecting to the xmail server, so are you sure your mua is not configured to 
authenticate ?

For ipv6 addresses wirting 'convention' in tab files, only Davidecan help to 
document 'ipv6' syntaxes (and update doc )

Regards
Francis

  -Message d'origine-
  De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]De 
la part de Rosario Pingaro
  Envoyé : mercredi 18 janvier 2012 13:18
  À : xmail@xmailserver.org
  Objet : Re: [xmail] moving to ipv6


  I have to fix the smtprelay.tab issue becasue now i am getting:
  smtp.convergenze.it   smtp.convergenze.it   2a01:9a80::80 2012-01-18 
13:13:50   www.convergenze.it
AUTH=EFAIL:TYPE=LOGIN   0 
  smtp.convergenze.it   smtp.convergenze.it   2a01:9a80::80 2012-01-18 
13:13:50   www.convergenze.it  i...@convergenze.it   
x...@hotmail.itS24534AF  RCPT=ERELAY 0 


  the could mean that the smtp is not allowing to send mail from 2a01:9a80::80

  I tried:
  “2a01:9a80::/32

  and
  “2a01:9a80::”tab”:::”

  into smtprelay.tab without success.

  Any words from Davide??

  regards
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] moving to ipv6

2012-01-18 Thread fcxmail

Strange, because when mua never try to auth, and xmail not set to force clients 
to auth, I don't remember xmail write a AUTH-EFAIL before RCPT-ERELAY (even 
if relay not allowed)

What are the following settings :
server.tab DefaultSmtpPerms
server.tab SmtpConfig
any server.tab SmtpConfig-. (with ip appended after the dash)
current smtprelay.tab file
current smtp.ipmap.tab file
current smtp.ipprop.tab file

Regards
Francis




-Message d'origine-
De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]De la 
part de Rosario Pingaro
Envoyé : mercredi 18 janvier 2012 14:25
À : 'XMail Users Mailing List'
Objet : Re: [xmail] moving to ipv6


I ma pretty sure it is not about the mua, but about the xmail that needs 
authentication because the sender ip is out of smtprelay table.

Waiting about clarification from Davide.

thanks

From: fcxm...@aquinet.net 
Sent: Wednesday, January 18, 2012 2:05 PM
To: 'XMail Users Mailing List' 
Subject: Re: [xmail] moving to ipv6

As per AUTH=EFAIL:TYPE=LOGIN in the first log line, seems your mua (messaging 
user agent, ak you messaging client software) is trying to authenticate when 
connecting to the xmail server, so are you sure your mua is not configured to 
authenticate ?

For ipv6 addresses wirting 'convention' in tab files, only Davidecan help to 
document 'ipv6' syntaxes (and update doc )

Regards
Francis

-Message d'origine-
De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]De la 
part de Rosario Pingaro
Envoyé : mercredi 18 janvier 2012 13:18
À : xmail@xmailserver.org
Objet : Re: [xmail] moving to ipv6


I have to fix the smtprelay.tab issue becasue now i am getting:
smtp.convergenze.it   smtp.convergenze.it   2a01:9a80::80 2012-01-18 
13:13:50   www.convergenze.it
AUTH=EFAIL:TYPE=LOGIN   0 
smtp.convergenze.it   smtp.convergenze.it   2a01:9a80::80 2012-01-18 
13:13:50   www.convergenze.it  i...@convergenze.it   
x...@hotmail.itS24534AF  RCPT=ERELAY 0 


the could mean that the smtp is not allowing to send mail from 2a01:9a80::80

I tried:
“2a01:9a80::/32

and
“2a01:9a80::”tab”:::”

into smtprelay.tab without success.

Any words from Davide??

regards



___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] OutBind in SmtpConfig

2012-01-17 Thread fcxmail
Hello Bart

For smpt outbind use SmtpGwConfig in server.tab variable, not SmtpConfig
(used to 'incoming')
(see server.tab doc for SmtpGwConfig that refers then to
http://www.xmailserver.org/Readme.html#smtp_gateway_configuration; for
valid paramters

Regards
Francis


-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Bart Mortelmans
Envoye : samedi 14 janvier 2012 11:05
A : XMail Users Mailing List
Objet : [xmail] OutBind in SmtpConfig


Hi,

I'm running XMailserver 1.27. I would like outgoing
connections to come from a specific IP-address. While it looks
to be undocumented, I thought I could do this with something
like this in server.tab:
SmtpConfig   OutBind=XX.XX.XX.XX

But the mails keep going out through the default IP-address.
What am I doing wrong?
(If anybody asks: I triple checked: real tab in there!)

Thanks!

Sincerely,
Bart Mortelmans

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Mailbox on NAS

2011-09-09 Thread fcxmail
This is a know 'move' issue with mounts to/from logical high level
networking file systems

The reason why this works for ramdisk mounts is because the ramdisk is a
local low io dev to the system

You could try to mount from an iSCSI drive (if your nas/san support it) as
the target is considered as a local harddisk ressource even if finally
hosted on a different system
And Iscsi is very 'performent' compared to 'high level' network file systems
like nfs, ...

Francis

  -Message d'origine-
  De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Rittikorn L
  Envoyé : vendredi 9 septembre 2011 04:57
  À : xmail@xmailserver.org
  Objet : Re: [xmail] Mailbox on NAS


  As my understanding for folder domains will use when send to local Email
only, it mean for outside Email,
  no need to care about domains folder. It correct?

  for testing update
  I try to debug XMail logs and found error when move file from

  /var/MailRoot/tmp/files name
/var/MailRoot/domains/domain/user/Maildir/new/files name

  after more check /var/MailRoot/tmp/files name never receive local Email
Outside mail it Ok, It mean from spool folder cannot move to tmp folder it
correct?

  Please help me to explain XMail flow for sending Email.


  PS: I very sure on permission on NAS, because if I move all MailRoot to
NAS everything work.


  Regards,
  Rittikorn L.


  On 08/09/11 19:19, Chris Franklin wrote:
I've got my temp folder in a ram drive 2.5 gigs ramdrive. And it helps a
lot (we have 17 filters that each needs to view and possibly alter each
message).

And while your right a slight decrease in speed due to having to copy a
file. It would will be dwarfed by the speed of both the lan and nfs in
he's/her's case. As it going to a nas device which in and of it self is
going to be a bottleneck (poor back plans, nics, os, caching systems,
etc)...

Ps. Also for anyone running dovecot moving your indexes to a ramdrive,
also does wonders. And having it rebuilt the indexing on a reboot for us is
a plus.

On Sep 8, 2011 8:00 AM, Bart Mortelmans b...@bim.be wrote:
 Hi,

 I'm not sure why this doesn't work, but for the performance, It might
 also not be a good idea to have the domains folder and the spool
folder
 in different locations. I do think XMail does move files between
those
 folders, which isn't the same as copying a file and then deleting the
 original file. If both folders are on the same partition, moving a
file
 doesn't require actually copying its contents, it simply is linked to
a
 different location. If you're moving a file from one partition to an
 other, this however does result in making a copy and then deleting the
 original. So if most mails on your mailserver end up in a mailbox,
then
 it would be better to have spool and domains folder on the same
partition.

 In the light of this: I would be interested to know when XMail moves
 files and when it makes a copy. I have for example read that setting
the
 temp-folder in memory would be a good thing to do. But if files are
 moved in and out of the temp folder instead of being copied there,
 this might not be such a good idea. Does anybody have an insight on
this?

 Sincerely,
 Bart Mortelmans



 Op 08/09/11 13:26, Rittikorn L schreef:
 Update.

 If I mount MailRoot folder to storage it can work normally.
 but it include spool folder, I don't want process spool folder at
storage
 because storage it low performance, May be if run in real environment
 will lose connection.

 someone has any idea?


 Regards,
 Rittikorn L.


 On 08/09/11 15:43, Rittikorn L wrote:
 Hello,


 I would like to move XMail mailbox data to storage.
 I mount nfs only domains folder to storage and copy all user folders
 to storage.
 mail client can connect to server and got old Email normally

 after that I check send Email to local users but no any Email
 receive, Email still remain in spool folder,
 but if I send Email to outside it can send normally,

 Help me please...

 Regards,
 Rittikorn L.
 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail


 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail


 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org

Re: [xmail] smtp authentication configuration

2011-08-01 Thread fcxmail


Simple to do :)
First you only need to use smtpauth.tab file if you need to auth non xmail
mailbox users (that don't have a account in xmail), as xmail will firstly
lookup in mailusers.tab for xmail users credentials

To force Auth on xmail external listening ip add this line in server.tab
file

SmtpConfig-aa.bb.cc.dd,25 MailAuth

After this, any connection to aa.bb.cc.dd will force auth (or rejet if none
is done at start of smtp session)
- aa.bb.cc.dd is your external xmail ip
- eventualy replace 25 (after comma) with your smtp port if different
- eventualy add more lines if using others ports ie :
SmtpConfig-aa.bb.cc.dd,587MailAuth (for port 587)
- to bee sure xmail only listen to thoses ips (including localhost) on
multihomed server (multiple ips on interfaces), configure xmail to listen
only to 127.0.0.1 and aa.bb.cc.dd (with multiple cmdline parameters -SI ie
: -SI 127.0.0.1:25 -SI aa.bb.cc.dd:25 -SI aa.bb.cc.dd:587 ...)

Francis


-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Marcello Vezzelli
Envoye : lundi 1 aout 2011 10:03
A : xmail@xmailserver.org
Objet : [xmail] smtp authentication configuration


Hi to all,
I'd like to configure xmail SMTP authentication in this way:
- connections from localhost do not need authentication
- connections from internet need authentication

Now my SMTP listens only in localhost.

In file SMTP.IPMAP.TAB I have to allow external connections,
and that's ok.
In file SMTPAUTH.TAB I have to specify SMTP users and permissions.

I cannot find in the documentation any other hints about my desired
configuration.

Some hints?

Thanks in advice.

regards
Marcello

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Getting hammered bad

2011-07-13 Thread fcxmail
In this specific case, the Spammer authenticated with the legituser
account !!!
(as confirmed by account name after the RECV in the log : 'RECV=OK
legitusern...@legitdomain.com')
So before any others solutions, start changing que
legitusern...@legitdomain.com password  (with a complex one) 
And tell youlegituser to completly scan all of it's computers for
trojans/viries/... BEFORE changing the password at its side (to avoid
spammers recover the new password)...

  -Message d'origine-
  De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Fred
  Envoye : mercredi 6 juillet 2011 19:36
  A : xmail@xmailserver.org
  Objet : [xmail] Getting hammered bad


  Hello all,



  I need help to fight against spammers, here is a sample of an smtp log
entry:





  mail  mail  72.16.236.115 2011-07-06 12:46:21
ALEXSERVER01.ANDREWALEX.local hotmail.co.uk
vreaus...@vreausutelog.comobbard_d...@hotmail.co.uk SE86331
RECV=OK   legitusern...@legitdomain.com  2507  





  I am receiving sometimes hundreds of this kind of email in a short time. I
have tried black listing the IP and sender domain in spam-adress.tab and
spammers.tab but they just change both and they spam again.



  The email legitusern...@legitdomain.com is a legit user on my server. I am
using spamassassin, spf filter and RBL checks.



  Anyone has any ideas how to block these ers.



  Thanks




___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Question regarding logging

2011-04-07 Thread fcxmail


Hello Vlad

All about logs is in doc at COMMAND LINE section :
http://www.xmailserver.org/Readme.html#command_line

Basic Options to enable logs :
-Pl (for pop3)
-Sl (for smtp in)
-Ql (for smtp out, 'smail' for send mail)
-Fl (for finger)
-Cl (for ctrl)
-Ll (for 'lmail', local mailer)

Read the section to others parameters related to logs
Regards
 Francis



-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Vladimir Bibel
Envoye : jeudi 7 avril 2011 13:25
A : xmail@xmailserver.org
Objet : [xmail] Question regarding logging


Hello,

I can not find logging files of my xmail server. There is a logs 
directory in the mailrrot directory, but there are no files. I 
have not 
found information how to start logging in the documantation. We use 
windows server.

Thanks

Vlad
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Knowing who is failing Auth Logins

2011-01-20 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Rob Arends
Envoye : jeudi 20 janvier 2011 07:32
A : 'XMail Users Mailing List'
Objet : Re: [xmail] Knowing who is failing Auth Logins


Hi Francis,

I have solved this, and then read your mail below.
I basically did what you wrote.

Wireshark did not decode for me, but I found that each attempt
was the same
user/password.
I just used the text shown in Wireshark and pasted into some
online base64
en/decoder.

As they were all the same encoded text, I began to suspect a
user and not an
attack.

Here's the egg It was my father's ADSL router attempting
to send it's
log to me.
The same one I configured a couple of months ago to send me
the log, so I
could use the src IP in a poor man's dynamic-dns resolver.

Except I typo'd the SMTP auth user name.  :-(

The key to it was that he usually leaves his PC on, and I was
suspecting an
infection of some kind, but today he is away and turned it off.
So it started me thinking, if his PC is off, what could be
sending from his
IP address - the router !!!

Thanks to all.

(Still would be nice if the pop3/smtp logs showed the user-id used in a
failed login attempt. It would help tracking the source down.)

Rob :-)



Yes, would be a good debug option to have them (user login and name
received) written on smtp log on failed attempts
(Don't remenber if in pop logs any message for failed attemps with user/pass
used ... just remember a pop log setting to not write passwords on normaly
'success' attempts)

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Duplicate Email issue

2011-01-20 Thread fcxmail

Pleased to see your initial problems are corrected :)

For problem on user.tab 'MaxMessageSize' setting, wait Davide response on
your other thread MaxMessageSize in user.tab not work to avoid currupt
this thread and have duplicate discutions on it :)

Regards
Francis


-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Rittikorn
Envoye : mercredi 19 janvier 2011 09:58
A : xmail@xmailserver.org
Objet : Re: [xmail] Duplicate Email issue


Dear Francis

Problem 1

I think I found root cause, the problem come from when client
send Email
the process nearly 100% completely
from mail client to XMail server on this time connection is corrupt,
process of mail client not complete it re-send again[duplicate],
this process XMail already receive Email and send to recipient
two time,


Problem 2
user not told real attach files size to me,
after I check by my self I found attach file it so big it around 40 Mb

but it so strange because in server.tab I setup MaxMessageSize to 100
Mb(10) but in user.tab I setup only 20Mb (2)

It look like MaxMessageSize in user.tab didn't work, Need to
enable some
think else?


Thank you


Regards,
Rittikorn L.


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Duplicate Email issue

2011-01-19 Thread fcxmail
Sorry for late response

Problem 1 : Duplicate messages
- First can you confirm that xmail server receive only one time the sender
mail ? (not resend by user or user computer or software)
Chek xmail smtp log and xmail user mailbox (not Dovecot, bu sure it did not
get the mails, stop it) to see if mail received it only once)
- Second, if first point checking ok, xmail receive only one, as your final
pop/imap server is Dovecot, it seems to be on Dovecot side to inspect, as
xmail pop is not involved (if I understand well you setup)

Problem 2 : Message Size
If message size seems physicaly correct in xmail spool and final mailbox,
definitively it is a XQM bug ...




-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Rittikorn
Envoye : samedi 15 janvier 2011 02:48
A : XMail Users Mailing List
Objet : Re: [xmail] Duplicate Email issue


Dear Francis

- xmail server version (and running os)

XMail version 1.27 on CentOS5.5
Dovecot for POP and IMAP

- Sender use the xmail server as outgoing smtp server, or is a external
sender?
XMail is a outgoing server

- Receiver is a local xmail mailbox on the same server or a
foreign system ?
mailbox is a same server

- Outlook Express and Microsoft Outlook versions for sender
and receiver ?
.. and any other information that could be usefull
Outlook Express 6 and Microsoft outlook 2003


For second problem :
- xmail server version (and running os)
XMail version 1.27 on CentOS5.5
Dovecot for POP and IMAP

- XQM version

XQM version 1.46

- Did you verify physical message size in xmail receiver
mailbox ? (if so,
you have the response, XQM bug, not xmail bug :) )

Yes, I check original Email from client is around 8 Mb, and I has a
anti-spam function for spam logs also show file size 55 M
I not sure about MIME type size but, actual in my understand MIME type
transform is not over Mail size x2, it correct?


- Then retreiving the mail via pop, does size seems to be ok
and attachment
readable or not ?
.. and any other information that could be usefull

When client receive Email size is normally


Best Regards,
Rittikorn L.




On 01/14/2011 06:06 PM, fcxm...@aquinet.net wrote:
 -Message d'origine-
 De : xmail-boun...@xmailserver.org
 [mailto:xmail-boun...@xmailserver.org]De la part de Rittikorn
 Envoye : vendredi 14 janvier 2011 11:08
 A : xmail@xmailserver.org
 Objet : [xmail] Duplicate Email issue


 Dear all

 I has two issue from XMail

 1. some time when client send email from outlook express or
Microsoft
 outlook
 the recipient receive duplicate Email, some time 2-3 email
some time 5
 email and some time more than 10
 Email size not so big

 What is a concern point on my problem


 2. When client send Email with attach file around 7 Mb, but
this email
 detect by
 XQM found Email size around 55 Mb, this is a normally operation or
 mistake something?



 please advise me

 Thank you


 Best Regards,
 Rittikorn L.
 Hello

 Please, be more precise in running environment and problem,
to help us help
 you :)
 For first problem :
 - xmail server version (and running os)
 - Sender use the xmail server as outgoing smtp server, or is
a external
 sender?
 - Receiver is a local xmail mailbox on the same server or a
foreign system ?
 - Outlook Express and Microsoft Outlook versions for sender
and receiver ?
 . and any other information that could be usefull

 For second problem :
 - xmail server version (and running os)
 - XQM version
 - Did you verify physical message size in xmail receiver
mailbox ? (if so,
 you have the response, XQM bug, not xmail bug :) )
 - Then retreiving the mail via pop, does size seems to be ok
and attachment
 readable or not ?
 . and any other information that could be usefull

 Francis


 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Knowing who is failing Auth Logins

2011-01-19 Thread fcxmail

Rob, I don't know if wireshark can decode, but depending of the LOGIN method
attempted :

AUTH PLAIN method
In this case the login and password are just encoded (not encrypted) in
Base64 in the next client packet after the server 334 response

AUTH LOGIN method
Again login and password ar just encoded in Base64 but send in two
sequences (first 334 server, then client send login, then server send 334
then client send passord)

In these to cases I think you could easily find on the net a Base64
'decoder' (probably a web page with a javascipt form doing the decode)  :)

if AUTH CRAM-MD5, it is more complicated, because it use a 'challenge'
(encoded in base64), then MD5 encryption with the password as the key on the
challenge

More explanations here for these AUTH methods
:http://www.samlogic.net/articles/smtp-commands-reference-auth.htm

Expecting the 'client' use PLAIN or LOGIN to help you quickly :)

Regards
Francis


-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Rob Arends
Envoye : mercredi 19 janvier 2011 15:13
A : 'XMail Users Mailing List'
Objet : Re: [xmail] Knowing who is failing Auth Logins


Hi Francis,

I had a look at the tcpdump, and I can see the LOGIN command,
but the data
is encoded.

Is there an algorithm that will decode it?  Obviously there is
one IN xmail,
but I'm no C programmer to knock something up !!

I've got tcpdump saving to a cap file, then I'll install
wireshark and view
it a little easier - perhaps Wireshark will decode it for my viewing?

Rob :-)

-Original Message-
From: xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]
On Behalf Of Rob Arends
Sent: Thursday, January 20, 2011 12:28 AM
To: 'XMail Users Mailing List'
Subject: Re: [xmail] Knowing who is failing Auth Logins

Hi Francis,

Yes I was afraid of that.
I was hoping that someone had extended the source so that the log file
reported the attempted username.

Rob :-)

-Original Message-
From: xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]
On Behalf Of fcxm...@aquinet.net
Sent: Wednesday, January 19, 2011 6:33 PM
To: 'XMail Users Mailing List'
Subject: Re: [xmail] Knowing who is failing Auth Logins


Hello Rob

Nothing to do in xmail to get more information, except to run
it in debug
mode, perhabs

Why not trying to schedule a tcpdump on smtp port 25 for the
time period you
want (5mn before xx:00 up to 5mn after xx:00 for some days) ?
Then you could find more information in the tcp dump (like
auth attempt and
values, or exact smtp commands send)

Francis



-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De
la part de Rob Arends

Envoye : mardi 18 janvier 2011 14:43
A : xmail@xmailserver.org
Objet : [xmail] Knowing who is failing Auth Logins


Hello,

I'm running xmail 1.27 on RHEL5.5

The SMTP logs are showing a single AUTH=EFAIL:TYPE=LOGIN every
hour at xx:00
hours.
It is coming from the same PC I believe, although IP changes,
the ISP and
area indicated by the rDNS suggests it is the same PC.
Most mail clients attempt POP3 more than once an hour, so I'm
suspicious.

The logs don't indicate the username in the login attempt.

Is there any way to report on the username that is being used in the
attempt.
If nothing else I can contact the user.
However if it is a low speed dictionary attack, I'd like to be able to
identify that and take some action.

Any ideas?

Rob  :-)

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Knowing who is failing Auth Logins

2011-01-18 Thread fcxmail

Hello Rob

Nothing to do in xmail to get more information, except to run it in debug
mode, perhabs

Why not trying to schedule a tcpdump on smtp port 25 for the time period you
want (5mn before xx:00 up to 5mn after xx:00 for some days) ?
Then you could find more information in the tcp dump (like auth attempt and
values, or exact smtp commands send)

Francis



-Message d'origine-
De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]De
la part de Rob Arends
Envoye : mardi 18 janvier 2011 14:43
A : xmail@xmailserver.org
Objet : [xmail] Knowing who is failing Auth Logins


Hello,

I'm running xmail 1.27 on RHEL5.5

The SMTP logs are showing a single AUTH=EFAIL:TYPE=LOGIN every hour at xx:00
hours.
It is coming from the same PC I believe, although IP changes, the ISP and
area indicated by the rDNS suggests it is the same PC.
Most mail clients attempt POP3 more than once an hour, so I'm suspicious.

The logs don't indicate the username in the login attempt.

Is there any way to report on the username that is being used in the
attempt.
If nothing else I can contact the user.
However if it is a low speed dictionary attack, I'd like to be able to
identify that and take some action.

Any ideas?

Rob  :-)

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Duplicate Email issue

2011-01-14 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]De la part de Rittikorn
Envoye : vendredi 14 janvier 2011 11:08
A : xmail@xmailserver.org
Objet : [xmail] Duplicate Email issue


Dear all

I has two issue from XMail

1. some time when client send email from outlook express or Microsoft
outlook
the recipient receive duplicate Email, some time 2-3 email some time 5
email and some time more than 10
Email size not so big

What is a concern point on my problem


2. When client send Email with attach file around 7 Mb, but this email
detect by
XQM found Email size around 55 Mb, this is a normally operation or
mistake something?



please advise me

Thank you


Best Regards,
Rittikorn L.

Hello

Please, be more precise in running environment and problem, to help us help
you :)
For first problem :
- xmail server version (and running os)
- Sender use the xmail server as outgoing smtp server, or is a external
sender?
- Receiver is a local xmail mailbox on the same server or a foreign system ?
- Outlook Express and Microsoft Outlook versions for sender and receiver ?
 and any other information that could be usefull

For second problem :
- xmail server version (and running os)
- XQM version
- Did you verify physical message size in xmail receiver mailbox ? (if so,
you have the response, XQM bug, not xmail bug :) )
- Then retreiving the mail via pop, does size seems to be ok and attachment
readable or not ?
 and any other information that could be usefull

Francis


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] problem with mx ip selection on retries

2010-11-08 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
Envoye : dimanche 7 novembre 2010 21:27
A : XMail Users Mailing List
Objet : Re: [xmail] problem with mx ip selection on retries


On Wed, 3 Nov 2010, fcxm...@aquinet.net wrote:

 -Message d'origine-
 De : xmail-boun...@xmailserver.org
 [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
 Envoye : mercredi 3 novembre 2010 03:46
 A : XMail Users Mailing List
 Objet : Re: [xmail] problem with mx ip selection on retries
 
 
 On Tue, 2 Nov 2010, fcxm...@aquinet.net wrote:
 
 
  Hello Davide
 
  I found an problem in xmail when re-trying to connect to mx
 with multiple
  ips
 
  Here is a sample :
  Assuming domain XX.com have this dns setup
 
  xx.commx 10   mx10.xx.com
  xx.com mx 20  mx20.xx.com
 
  mx10.xx.com   A   10.10.10.1
  mx10.xx.com   A   10.10.10.2
  mx10.xx.com   A   10.10.10.3
 
  mx20.xx.com   A   20.20.20.1
  mx20.xx.com   A   20.20.20.2
 
  supposing xmail have now to send a mail @xx.com
  on first try it use mx10.xx.com at 10.10.10.1 : now the tcp
 connection don't
  work
  then os same first try xmail use mx20 at 20.20.20.2 :
 suppose tcp connection
  don't work too !
 
  What i see in a trace is that for ALL the others retries for
 this mail,
  xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
  It never retry on others mx's ips !! And because there was
 no response from
  these two ips, mail bounced back to sender after all
 possible retries :-/
  (i checked the others ips, they responded correctly :-/ but
 xmail never
  tried them ...)
 
  I think this is a major bug :(
 
 Does not look like.  XMail would cache (in the MX cache)
the *names*,
 which are mx10.xx.com and mx20.xx.com (and, for the duration
 of the TTL).
 Then the names are resolved to IP addresses using OS
specific library
 calls (getaddrinfo()).
 

 So, I don't understand why using nslookup on the xmail server itself
 resolving mx10.xx.com i get all the mx10 ips values round robined :
 nslookup mx10.xx.com
  10.10.10.2  10.10.10.3  10.10.10.1
 another immediate nslookup mx10.xx.com
  10.10.10.3  10.10.10.1  10.10.10.2
 another
  10.10.10.1  10.10.10.2  10.10.10.3

 Notice that in the real domain case the dns records default
ttl was 2 hours,
 no ttl specified in the mx records (so default 2 hours) and
none in the A
 records too (so default 2 hours)

 With xmail retry schedule configured with Qt 300 Qi 1 Qr 10 the retry
 schedule was :
 01  send-time = 0  (00:00:00)   next-try = 300(00:05:00)
 02  send-time = 300(00:05:00)   next-try = 600(00:10:00)
 03  send-time = 900(00:15:00)   next-try = 1200   (00:20:00)
 04  send-time = 2100   (00:35:00)   next-try = 2400   (00:40:00)
 05  send-time = 4500   (01:15:00)   next-try = 4800   (01:20:00)
 06  send-time = 9300   (02:35:00)   next-try = 9600   (02:40:00)
 07  send-time = 18900  (05:15:00)   next-try = 19200  (05:20:00)
 08  send-time = 38100  (10:35:00)   next-try = 38400  (10:40:00)
 09  send-time = 76500  (21:15:00)   next-try = 76800  (21:20:00)
 10  send-time = 153300 (42:35:00)   next-try = 153600 (42:40:00)

 So after retry 05 the next retry is more than 2 hours later,
so chance to
 get same lookups in same order for mx10 and simutanenously
the same ip for
 mx20 seems minimal or very 'bad' coincidence.
 And notice that exact same think occured for all mails for
this domain. One
 day more than 20 mails was in xmail queue for retries to
this domain, and
 all was blocked by same mx's not responding 'bad' ip ! very
bad 'chance' to
 get same ips :/

 The dns server is a bind 9 server on same machine, the xmail
use it with
 smartdnshost entry in server.tab
 Trying with no smartdnshost didn't change anythink, nor
changing local dns
 address to another 'external' dns server with or without
smartdnshost entry
 in xmail.
 In all configurations, nslookups allways returned the mx ips
in round robin
 manner even if done at less than the dns entry ttl (here 2
hours) so how to
 explain xmail 'use' the same IP ?

 Do you think OS getaddrinfo (here win32 windows 2000 sp4
patched) return the
 same think in same order (sorting them and returning only
the first ip) ?
 Supposing nslookup and dig don't use getaddrinfo but use direct dns
 connections (and i think it is), how to test OS getaddrinfo ?

I think I found it.
Friggen getaddrinfo() sort results returned by the system DNS servers,
instead of returning them as in response order. Duh!
Need to look into fixing this ...



- Davide


Good news :)
Waiting for an xmail 'workaround' to getaddrinfo sorted returns :)

PS : If I understood, xmail actualy directly acquire MX entries doing direct
dns connections queries to dns servers (using or not smartdnshost), so why
not use same method to acquire A entries (finaly completely bypass any OS

Re: [xmail] problem with mx ip selection on retries

2010-11-03 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
Envoye : mercredi 3 novembre 2010 03:46
A : XMail Users Mailing List
Objet : Re: [xmail] problem with mx ip selection on retries


On Tue, 2 Nov 2010, fcxm...@aquinet.net wrote:


 Hello Davide

 I found an problem in xmail when re-trying to connect to mx
with multiple
 ips

 Here is a sample :
 Assuming domain XX.com have this dns setup

 xx.com   mx 10   mx10.xx.com
 xx.com mx 20 mx20.xx.com

 mx10.xx.com  A   10.10.10.1
 mx10.xx.com  A   10.10.10.2
 mx10.xx.com  A   10.10.10.3

 mx20.xx.com  A   20.20.20.1
 mx20.xx.com  A   20.20.20.2

 supposing xmail have now to send a mail @xx.com
 on first try it use mx10.xx.com at 10.10.10.1 : now the tcp
connection don't
 work
 then os same first try xmail use mx20 at 20.20.20.2 :
suppose tcp connection
 don't work too !

 What i see in a trace is that for ALL the others retries for
this mail,
 xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
 It never retry on others mx's ips !! And because there was
no response from
 these two ips, mail bounced back to sender after all
possible retries :-/
 (i checked the others ips, they responded correctly :-/ but
xmail never
 tried them ...)

 I think this is a major bug :(

Does not look like.  XMail would cache (in the MX cache) the *names*,
which are mx10.xx.com and mx20.xx.com (and, for the duration
of the TTL).
Then the names are resolved to IP addresses using OS specific library
calls (getaddrinfo()).


So, I don't understand why using nslookup on the xmail server itself
resolving mx10.xx.com i get all the mx10 ips values round robined :
nslookup mx10.xx.com
10.10.10.2  10.10.10.3  10.10.10.1
another immediate nslookup mx10.xx.com
10.10.10.3  10.10.10.1  10.10.10.2
another
10.10.10.1  10.10.10.2  10.10.10.3

Notice that in the real domain case the dns records default ttl was 2 hours,
no ttl specified in the mx records (so default 2 hours) and none in the A
records too (so default 2 hours)

With xmail retry schedule configured with Qt 300 Qi 1 Qr 10 the retry
schedule was :
01  send-time = 0  (00:00:00)   next-try = 300(00:05:00)
02  send-time = 300(00:05:00)   next-try = 600(00:10:00)
03  send-time = 900(00:15:00)   next-try = 1200   (00:20:00)
04  send-time = 2100   (00:35:00)   next-try = 2400   (00:40:00)
05  send-time = 4500   (01:15:00)   next-try = 4800   (01:20:00)
06  send-time = 9300   (02:35:00)   next-try = 9600   (02:40:00)
07  send-time = 18900  (05:15:00)   next-try = 19200  (05:20:00)
08  send-time = 38100  (10:35:00)   next-try = 38400  (10:40:00)
09  send-time = 76500  (21:15:00)   next-try = 76800  (21:20:00)
10  send-time = 153300 (42:35:00)   next-try = 153600 (42:40:00)

So after retry 05 the next retry is more than 2 hours later, so chance to
get same lookups in same order for mx10 and simutanenously the same ip for
mx20 seems minimal or very 'bad' coincidence.
And notice that exact same think occured for all mails for this domain. One
day more than 20 mails was in xmail queue for retries to this domain, and
all was blocked by same mx's not responding 'bad' ip ! very bad 'chance' to
get same ips :/

The dns server is a bind 9 server on same machine, the xmail use it with
smartdnshost entry in server.tab
Trying with no smartdnshost didn't change anythink, nor changing local dns
address to another 'external' dns server with or without smartdnshost entry
in xmail.
In all configurations, nslookups allways returned the mx ips in round robin
manner even if done at less than the dns entry ttl (here 2 hours) so how to
explain xmail 'use' the same IP ?

Do you think OS getaddrinfo (here win32 windows 2000 sp4 patched) return the
same think in same order (sorting them and returning only the first ip) ?
Supposing nslookup and dig don't use getaddrinfo but use direct dns
connections (and i think it is), how to test OS getaddrinfo ?

Any help to find were is the problem will be appreciated :)

Francis

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] problem with mx ip selection on retries

2010-11-03 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
Envoye : mercredi 3 novembre 2010 03:57
A : XMail Users Mailing List
Objet : Re: [xmail] problem with mx ip selection on retries


On Tue, 2 Nov 2010, Sabahattin Gucukoglu wrote:

 On 2 Nov 2010, at 11:25, fcxm...@aquinet.net 
fcxm...@aquinet.net wrote:
  I found an problem in xmail when re-trying to connect to 
mx with multiple
  ips
  
  Here is a sample :
  Assuming domain XX.com have this dns setup
  
  xx.com mx 10   mx10.xx.com
  xx.com mx 20   mx20.xx.com
  
  mx10.xx.comA   10.10.10.1
  mx10.xx.comA   10.10.10.2
  mx10.xx.comA   10.10.10.3
  
  mx20.xx.comA   20.20.20.1
  mx20.xx.comA   20.20.20.2
  
  supposing xmail have now to send a mail @xx.com
  on first try it use mx10.xx.com at 10.10.10.1 : now the 
tcp connection don't
  work
  then os same first try xmail use mx20 at 20.20.20.2 : 
suppose tcp connection
  don't work too !
  
  What i see in a trace is that for ALL the others retries 
for this mail,
  xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
  It never retry on others mx's ips !! And because there was 
no response from
  these two ips, mail bounced back to sender after all 
possible retries :-/
  (i checked the others ips, they responded correctly :-/ 
but xmail never
  tried them ...)
  
  I think this is a major bug :(
 
 It's not violating the standard, but in the interests of 
robustness, I 
 agree that it is a problem.  See:
 http://tools.ietf.org/html/rfc5321#section-5
 
 Another peculiar XMail behaviour is that even if the 
hostname in an MX 
 record is unknown, XMail logs an error but then tries again. 
 This only 
 makes sense if the recipient fixes his MX records, which I 
think is more 
 likely if the mail is permanently failed rather than 
temporarily.  In 
 Postfix, it's user-configurable which method is used.  Again, no 
 violation of the spec, but my preference is for a behaviour that is 
 somewhat more robust, especially today with spam-filled queues 
 everywhere.

Note that if the remote domain would properly implement RR 
DNS, the issue 
would not arise, as the IP list would be permuted at every lookup.
Of course, people does RR DNS with TTL of one day, which kinda 
defeats the 
purpose.
XMail could do its own random-pickup in the supplied list, but this is 
really not its own task.


This was exactly the case here, RR DNS worked (see my previous response)
Francis

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


[xmail] problem with mx ip selection on retries

2010-11-02 Thread fcxmail

Hello Davide

I found an problem in xmail when re-trying to connect to mx with multiple
ips

Here is a sample :
Assuming domain XX.com have this dns setup

xx.com  mx 10   mx10.xx.com
xx.com mx 20mx20.xx.com

mx10.xx.com A   10.10.10.1
mx10.xx.com A   10.10.10.2
mx10.xx.com A   10.10.10.3

mx20.xx.com A   20.20.20.1
mx20.xx.com A   20.20.20.2

supposing xmail have now to send a mail @xx.com
on first try it use mx10.xx.com at 10.10.10.1 : now the tcp connection don't
work
then os same first try xmail use mx20 at 20.20.20.2 : suppose tcp connection
don't work too !

What i see in a trace is that for ALL the others retries for this mail,
xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
It never retry on others mx's ips !! And because there was no response from
these two ips, mail bounced back to sender after all possible retries :-/
(i checked the others ips, they responded correctly :-/ but xmail never
tried them ...)

I think this is a major bug :(

To temporaly bypass this problem I had to add an smtpfwd entry to specify
'working' ips to bypass the 'bad' ips that was simply in maintenance mode
for some days

If you want, I have a trace dump showing the problem. Just tell me where to
send it if you need it.


Francis





___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Multiple outbound smtp connections

2010-10-06 Thread fcxmail

Hi Bill

I have the same problem too from some days with 'orange/wanadoo' here in
France then some of my customers send 'little' newletters for max 10 final
users to orange/wanadoo (really not spam).
Now, they servers limit incoming connections to about maximum 3 incoming
sessions at a time
(xmail does send same mail at once (one mail to, multiple rcpt to) to same
final domain)

At this time there is only one solution in xmail, the -Qn cmd line option
limiting 'global' xmail output threads (so limiting in fact max simultaneous
outgoing connections)

BUT as noted, it affect xmail for ANY destination, so at this time, my
server regulary have many mails waiting for first attemps to delever ! and
is slow to send mails :(

So I have allmost the same question to Davide : could it be possible to say
xmail to 'slow down' when sending to specific final domains mx servers (use
of smtpfwd.tab with new options, max conns or delay between each conns ?)
letting normal -Qn do its job for others domains ?
Or a new -QMXn saying no more than n simultaneous connections at the same
time per unique final mx ?

Francis



-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Bill Healy
Envoye : mercredi 6 octobre 2010 07:52
A : 'xmail@xmailserver.org'
Objet : [xmail] Multiple outbound smtp connections


How many connections will xmail make to a particular server at one time
if there are many messages to deliver to the same domain? And
is there a
way to limit the number if the answer is more than a few?

Reason I ask is that mail to a particular domain is being delayed by a
temporary error saying there are too many connections try later. The
people in charge of said server say that xmail must be making more than
5 connections to one server or 3 to another of their servers
to get that
message.

I've looked through the docs and can't find any way to limit the number
of simultaneous connections to a server, is there such a setting? I
thought there was, but can't find it.

Thanks,
 Bill

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


[xmail] SmartDNSHost and ErrCode = -117

2010-09-22 Thread fcxmail


Hello Davide

Due to too many 'dns zone' with dns servers responding badly, causing normal
xmail dns mx resolver to fail with no domain or misconfigured dns servers,
and since manual lookups using our internal dns give the good response, I
tried to set SmartDNSHost

Then, doing so I have some problems sending to some 'sub' domains like the
example bellow :

ErrCode   = -117
ErrString = DNS recursion not available
SMAIL SMTP-Send EDNS = MOH.GOV.MY SMTP = X From = x...@xxx To =
x...@moh.gov.my Failed !
SMTP-Error = DNS recursion not available
SMTP-Server = MOH.GOV.MY


SmartDNSHost entry is like this :
SmartDNSHost  aaa.bbb.ccc.ddd:udp;aaa.bbb.ccc.ddd:tcp

The same internal dns server is used as a redirector dns server for our
internal network, and any internal workstation can resolve the mx for this
domain with success

What can be the cause ?


Francis

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] SmartDNSHost and ErrCode = -117

2010-09-22 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de fcxm...@aquinet.net
Envoye : mercredi 22 septembre 2010 17:34
A : xmail@xmailserver.org
Objet : [xmail] SmartDNSHost and ErrCode = -117




Hello Davide

Due to too many 'dns zone' with dns servers responding badly,
causing normal
xmail dns mx resolver to fail with no domain or misconfigured
dns servers,
and since manual lookups using our internal dns give the good
response, I
tried to set SmartDNSHost

Then, doing so I have some problems sending to some 'sub'
domains like the
example bellow :

ErrCode   = -117
ErrString = DNS recursion not available
SMAIL SMTP-Send EDNS = MOH.GOV.MY SMTP = X From =
x...@xxx To =
x...@moh.gov.my Failed !
SMTP-Error = DNS recursion not available
SMTP-Server = MOH.GOV.MY


SmartDNSHost entry is like this :
SmartDNSHost aaa.bbb.ccc.ddd:udp;aaa.bbb.ccc.ddd:tcp

The same internal dns server is used as a redirector dns server for our
internal network, and any internal workstation can resolve the
mx for this
domain with success

What can be the cause ?


Francis


Just to correct, this err is triggered also by second level domains, like
libero.it

The strange think is that it doesn't occurs for all ?
Could this be a sort of 'timeout' between xmail and the smartdns server ?
(if so could this 'timeout' be changed ?)


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] GLST

2010-08-17 Thread fcxmail
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
Envoyé : lundi 16 août 2010 21:19
À : XMail Users Mailing List
Objet : Re: [xmail] GLST


 ...

GLST is a life saver on my side.  It cuts a lot of SPAM and worms out
there.
I have to admit I do not keep my xnets updated very frequently though.



- Davide



Same usage for me
And except some very rare exceptions (at this time only 3 xnet for some
servers that seems to never retry) I never added xnet for hotmail and gmail
(nor yahoo, ...), and seems to never miss mails from them due to glst.
The only change I did for hotmail was set timeo to 30s as hotmail first
retry is one minute from same sending server, to not delay too much.

Francis

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] building the source code

2010-06-07 Thread fcxmail
Perhabs you could give us some errors returned when compiling to help us
find what is missing in your VS setup ?

Notice that if you only want to run 'standard' xmail server on window you
don't need to compile it,
Davide create ready to use win binaries at each release, so simply
download win binaries, install, setup and use :-)

Francis

  -Message d'origine-
  De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de GiGi
  Envoye : jeudi 3 juin 2010 16:49
  A : 'XMail Users Mailing List'
  Objet : Re: [xmail] building the source code


  I build it in vstudio 2008, got the same errors, also, can u please
specify me, exactly what .h and cpp association in what projects ?

  Windows Xp system.

  thanks



  Gigi Ahmed

SW Developer

  www.cairosource.com



 6 EL Nil EL Abyad, Mohandiseen

  Cairo, Egypt

  Direct: +2 02 3303 7175
  Mobile:   +2 012 220 4165











--

  From: xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]
On Behalf Of GiGi
  Sent: Thursday, June 03, 2010 5:18 PM
  To: xmail@xmailserver.org
  Subject: [xmail] building the source code



  Hi all,

  Have a question, I am new to the mailing servers implementation, want to
use xmail as a mail server, however I tried to build it in vstudio c++ 2005,
had lots of build error messages, like unresolved externals.what should I do
?





  Gigi Ahmed

SW Developer

  www.cairosource.com



 6 EL Nil EL Abyad, Mohandiseen

  Cairo, Egypt

  Direct: +2 02 3303 7175
  Mobile:   +2 012 220 4165








image001.jpg___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] is this maillist alive? need to configure xmail pop3retrieval

2010-06-01 Thread fcxmail

Two fetchmail like programms that run on win32 :

 mpop : http://mpop.sourceforge.net/

or

 mailfetcher 2 : http://mailfetcher.sourceforge.net/

Francis



-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de William Ottley
Envoye : lundi 31 mai 2010 20:37
A : XMail Users Mailing List
Objet : Re: [xmail] is this maillist alive? need to configure xmail
pop3retrieval


hmmm interesting!
I saw that  program actually, and then saw that it only saved via
emails. so I'll read the documentation on how to use the sendmail
function to convert it? and save it into the users mail box?

to be honest, with this setup, xmail server will be running as a
server for a single email address..

thanks for that heads up!

Will

On Mon, May 31, 2010 at 2:23 PM, Davide Libenzi 
davi...@xmailserver.org wrote:
 On Mon, 31 May 2010, William Ottley wrote:

 Hello Davide,

 as i stated before, I DID read the manual. and i'm fully 
aware of the
 PSYNC option.

 I'm also aware of a thread I read, where someone wanted the 
same thing
 as I did, and someone else offered for them to use fetchmail...
 but i can't use fetchmail on my windows system.

 so, I was hoping maybe someone figured out how to use xmail to
 have it always running, then maybe implementing a command 
line manual
 as well?

 but. as you have kindly (thank you) stated, this is not 
possible with
 xmail system, UNLESS I use the PSYNC...

 perhaps your aware of some other script? php maybe? or .exe 
that will
 grab emails and put into the mail folder for xmail?

 Lng time ago (could be 15 years since the last time I 
used it), I did
 this:

 http://www.xmailserver.org/GetMail-1.3.zip

 It fetches POP3 mail and saves them into .eml format.
 You could then use XMail's sendmail, to feed messages into the XMail
 LMAIL.
 But, you'd have to manually figure out which account 
messages will have to
 be fed into.



 - Davide


 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail