[xmail] xmail sendmail, php and shared webhosting
Davide, What you think about a version of sendmail that has an option to use the From: header address as smtp mail from. Do you envision any problems with this? The thing is that the current behavior does not work well in the shared hosting environment that we operate for our customers. Most of the these sites use php and the php mail function. This function does not allow you to set the smtp mail from and it simply calls xmail's sendmail. Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This is not very usefull! It will not allow our customers to receive bounces. Setting the domain in a virtualhost definition does not help either, since you cannot set the username. Asking our customers to create an [EMAIL PROTECTED] email address to receive bounces is not very user friendly. Forcing them to use an smtp mailer is also not user friendly. I looked at sendmail and worked out how a way to implement this. - All rcpt to's are stored in a new temporary file. - No output is sent to szmailfile before having read all email headers. - While reading thru the headers I set the szmailfrom to the address on the From line. - If there is no From line or the From line contains an invalid address (according to AddressFromAtPtr) then nothing gets set and sendmail will use szmailfrom as previously setup in SysGetUserAddress. - After reading the headers, dump the mail from and rcpt to lines. If you are interested in the code them let me know. Regards, Dick -- Netrex internet solutions Achterstraat 8b 3441 EH Woerden Tel: 0348-433886 Fax: 0348-433723 email: [EMAIL PROTECTED] - 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: xmail sendmail, php and shared webhosting
Dick van der Kaaden wrote: Davide, What you think about a version of sendmail that has an option to use the From: header address as smtp mail from. Do you envision any problems with this? The thing is that the current behavior does not work well in the shared hosting environment that we operate for our customers. Most of the these sites use php and the php mail function. This function does not allow you to set the smtp mail from and it simply calls xmail's sendmail. Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This is not very usefull! It will not allow our customers to receive bounces. Setting the domain in a virtualhost definition does not help either, since you cannot set the username. Asking our customers to create an [EMAIL PROTECTED] email address to receive bounces is not very user friendly. Forcing them to use an smtp mailer is also not user friendly. I looked at sendmail and worked out how a way to implement this. - All rcpt to's are stored in a new temporary file. - No output is sent to szmailfile before having read all email headers. - While reading thru the headers I set the szmailfrom to the address on the From line. - If there is no From line or the From line contains an invalid address (according to AddressFromAtPtr) then nothing gets set and sendmail will use szmailfrom as previously setup in SysGetUserAddress. - After reading the headers, dump the mail from and rcpt to lines. If you are interested in the code them let me know. Regards, Dick IMHO, this is a PHP problem, not Xmail since this falls in PHP's domain..wouldn't you be better server adding this in PHP instead of Xmail? The argument could of course be, that many other PHP applications don't support this, but then again this PHP's braindeath... - 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] earthlink modified
Hi all - Let me try that last question without the other info: Does anyone know if XMail 1.22 queries A records when MX queries for a domain have failed? I realize this has been covered, but I'm not clear on the specific outcome of this ... Jeff - 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: earthlink modified
On Sat, 15 Oct 2005, Jeff Buehler wrote: Let me try that last question without the other info: Does anyone know if XMail 1.22 queries A records when MX queries for a domain have failed? I realize this has been covered, but I'm not clear on the specific outcome of this ... Yes, of course it does. It is supposed to try the A record if MX resolution fails. Note that XMail does not try to send to the A record if MX records exist, but a failure happened in the delivery to such records. - 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: xmail sendmail, php and shared webhosting
On Sat, 15 Oct 2005, Dick van der Kaaden wrote: What you think about a version of sendmail that has an option to use the Fr= om:=20 header address as smtp mail from. Do you envision any problems with this? The thing is that the current behavior does not work well in the shared=20 hosting environment that we operate for our customers. Most of the these=20 sites use php and the php mail function. This function does not allow you t= o=20 set the smtp mail from and it simply calls xmail's sendmail.=20 Sendmail's default behavior is to use [EMAIL PROTECTED] as mail from. This is n= ot=20 very usefull! It will not allow our customers to receive bounces. Setting t= he=20 domain in a virtualhost definition does not help either, since you cannot s= et=20 the username. Asking our customers to create an [EMAIL PROTECTED] email=20 address to receive bounces is not very user friendly. Forcing them to use a= n=20 smtp mailer is also not user friendly.=20 I looked at sendmail and worked out how a way to implement this.=20 =2D All rcpt to's are stored in a new temporary file.=20 =2D No output is sent to szmailfile before having read all email headers.=20 =2D While reading thru the headers I set the szmailfrom to the address on t= he=20 =46rom line.=20 =2D If there is no From line or the From line contains an invalid address=20 (according to AddressFromAtPtr) then nothing gets set and sendmail will use= =20 szmailfrom as previously setup in SysGetUserAddress.=20 =2D After reading the headers, dump the mail from and rcpt to lines. If you are interested in the code them let me know. Dick, isn't it possible to do something on the PHP side? - 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: earthlink modified
Thanks, Davide. I am the worst with RFC's - many of them seem to contradict each other, so this is just a question (not an attack or even a recommendation - I am very happy with XMail!) I assume that querying the A record query is by design, based on your response, so I am wondering if there is a way to change that in the configuration. The Earthlink problem I am seeing is probably almost certainly related to this A record query. I printed this (and the RFC) earlier, but just for clarity: Earthlink says The earthlink.net A record forwards port 25 connections to our outbound SMTP servers. Unless the mail server attempting the transaction maintains IP connectivity through the Earthlink network, delivery attempts through the A record will consequently fail and the above quoted error message will be returned. and that this is the fault of the MTA for being non-compliant with RFC 2821 (partially) shown below: RFC 2821, Address Resolution and Mail Handling: If one or more MX RRs are found for a given name, SMTP systems MUST NOT utilize any A RRs associated with that name unless they are located using the MX RRs; the implicit MX rule above applies only if there are no MX records present. If MX records are present, but none of them are usable, this situation MUST be reported as an error. So, any suggestions? Is there a way to prevent the A record query, or is there another sound reason not to prevent this? Thanks, Jeff Davide Libenzi wrote: On Sat, 15 Oct 2005, Jeff Buehler wrote: Let me try that last question without the other info: Does anyone know if XMail 1.22 queries A records when MX queries for a domain have failed? I realize this has been covered, but I'm not clear on the specific outcome of this ... Yes, of course it does. It is supposed to try the A record if MX resolution fails. Note that XMail does not try to send to the A record if MX records exist, but a failure happened in the delivery to such records. - 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] - 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: earthlink modified
Davide, sorry - I just reread you previous email and I now realize that you clarified already that XMail does not try an A record if MX records exist, but I am a bit confused. Are you saying that it will try the A record if the MX records exist but fail, or that it won't try the A record at all if any MX records exist even if sends to them fail? Earthlink seems to be failing because after all MX records fail, if the A record is then attempted the send is terminated completely, rather than XMail continuing to try the MX records as it should later. Or am I not clearly understanding the mechanism here... Thanks again for your input on this! Jeff Davide Libenzi wrote: On Sat, 15 Oct 2005, Jeff Buehler wrote: Let me try that last question without the other info: Does anyone know if XMail 1.22 queries A records when MX queries for a domain have failed? I realize this has been covered, but I'm not clear on the specific outcome of this ... Yes, of course it does. It is supposed to try the A record if MX resolution fails. Note that XMail does not try to send to the A record if MX records exist, but a failure happened in the delivery to such records. - 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] - 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]