[xmail] problem with mx ip selection on retries
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] problem with mx ip selection on retries
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.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 :( 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. Cheers, Sabahattin ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
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()). - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
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 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 :( 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. - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] Multiple outbound smtp connections
On Wed, 6 Oct 2010, Cesar Meloni wrote: I have a similar problem. Some users need send mail to some domains such as yahoo or hotmail, for some reason the emails to these domains were transferred at very low speed, making global mail queue slow. I managed to solve it by raising a new instance of XMail, with only the SMTP port number 1025 and the following parameters: -Md -P- -B- -Sp 1025 -X- -Qn 3 -Y- -F- -C- -W- -Ll -Pl -Sl -Ql -Yl -Fl in smtprelay.tab file only the line: 127.0.0.1 TAB 255.255.255.255 And in original XMail the following configuration: smtpfwd.tab: *yahoo.comTAB127.0.0.1:1025 *hotmail.comTAB127.0.0.1:1025 so you can separate these emails in an alternative queue with 3 simultaneous connections form SMTP. Very smart work-around. I hope you remembered to not make both XMail instances point to the same MAIL_ROOT though ... 2010/10/6 fcxm...@aquinet.net 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 - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail