<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texto de globo Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EstiloCorreo18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.TextodegloboCar
{mso-style-name:"Texto de globo Car";
mso-style-priority:99;
mso-style-link:"Texto de globo";
font-family:"Tahoma","sans-serif";
mso-fareast-language:ES;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks for your help, but the main problem is the “Sender” address. My SMTP does not allows Relay –as a security measure- and the “Sender” has to be an authorized account.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So, I had to modify mail.php as I found no config.php string to define the sender.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D'> <o:p></o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img width=111 height=97 id="ecxImagen_x0020_1" src="cid:image001.jpg@01CE55FD.8423AB20" alt=RedLM></span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p></td><td width="70%" style='width:70.0%;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'>Luis-Miguel Muņoz Benito <a href="mailto:lm@redlm.com">lm@redlm.com</a></span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'> +34 911 124 203 <br><br>Madrid (Espaņa) Reino Unido (UK)<br><br></span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'> <a href="http://www.redlm.com/" target="_blank">www.redlm.com</a> </span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:blue'><a href="mailto:redlm@redlm.com">redlm@redlm.com</a></span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'> </span><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> owncloud-bounces@kde.org [mailto:owncloud-bounces@kde.org] <b>En nombre de </b>Victor Dubiniuk<br><b>Enviado el:</b> lunes, 20 de mayo de 2013 21:45<br><b>Para:</b> owncloud@kde.org<br><b>Asunto:</b> Re: [Owncloud] Problem sending links using SMTP outside my email domain<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Hi,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>On Wed, May 15, 2013 at 12:18 PM, RedLM - Luis Miguel Muņoz <<a href="mailto:lm@redlm.com" target="_blank">lm@redlm.com</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>We have Owncloud installed in a test server with a dynamic IP, but everything is working fine but this. So this is not the problem.</span><o:p></o:p></p></div><div><p class=MsoNormal>IIRC gmail doesn't accept mail sent from host with dynamic IPs. I tried to send mail from such host and got the following response:<o:p></o:p></p></div><div><p class=MsoNormal><br><em><span style='font-family:"Arial","sans-serif";color:#444444;font-style:normal'>>Connections originating from dynamically assigned IP addresses are not allowed</span></em><span style='font-family:"Arial","sans-serif";color:#444444'>. <em><span style='font-family:"Arial","sans-serif";font-style:normal'>Please use your ISP's relay servers</span></em>.</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Please consider external mail host with static IP.<o:p></o:p></p></div><div><p class=MsoNormal>Some useful links related to oC SMTP configuration:<o:p></o:p></p></div><div><p class=MsoNormal><a href="https://github.com/owncloud/core/blob/master/config/config.sample.php#L87">https://github.com/owncloud/core/blob/master/config/config.sample.php#L87</a><o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><a href="https://github.com/Synchro/PHPMailer/tree/master/examples">https://github.com/Synchro/PHPMailer/tree/master/examples</a><br><br><o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Victor<o:p></o:p></p><div><p class=MsoNormal>On Wed, May 15, 2013 at 12:18 PM, RedLM - Luis Miguel Muņoz <<a href="mailto:lm@redlm.com" target="_blank">lm@redlm.com</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Greetings from Spain.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>We are testing Owncloud for a customer, and we found a problem with sharing a link using SMTP with an external user.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>We have Owncloud installed in a test server with a dynamic IP, but everything is working fine but this. So this is not the problem.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If we share the link with a <b><a href="mailto:xxxxx@redlm.com" target="_blank">xxxxx@redlm.com</a></b> email account, it works fine, but if we try with <a href="mailto:xxxxxx@gmail.com" target="_blank">xxxxxx@gmail.com</a> account we receive an error at the SMTP server.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Mainly, the problem is the “MAIL FROM” header:</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: --> 235 Authentication successful</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: Authenticated as <a href="mailto:xxxxxxxxx@redlm.com" target="_blank">xxxxxxxxx@redlm.com</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: <-- MAIL FROM:<<a href="mailto:sharing-noreply@xxxxx.dynalias.com" target="_blank">sharing-noreply@xxxxx.dynalias.com</a>></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: --> 250 <<a href="mailto:sharing-noreply@xxxxx.dynalias.com" target="_blank">sharing-noreply@xxxxx.dynalias.com</a>>, Sender ok</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: <-- RCPT TO:<<a href="mailto:xxxxxx@gmail.com" target="_blank">xxxxxx@gmail.com</a>></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: Sender attempted to deliver message to unknown address</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: --> 550 <<a href="mailto:xxxxxx@gmail.com" target="_blank">xxxxxx@gmail.com</a>>, Recipient unknown</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: Connection closed</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Wed 2013-05-15 11:04:33: SMTP session terminated (Bytes in/out: 156/375)</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So, the question is: is there any way to configure the SMTP MAIL FROM to exchange <a href="mailto:sharing-noreply@xxxxx.dynalias.com" target="_blank">sharing-noreply@xxxxx.dynalias.com</a> in the config.php or should I modify the code?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I would rather avoiding any modification, as the upgrades will destroy them.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks in advance and kindest regards.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D'> </span><o:p></o:p></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=111 height=97 id="_x0000_i1025" src="cid:image001.jpg@01CE55FD.8423AB20" alt=RedLM></span><o:p></o:p></p></td><td width="70%" style='width:70.0%;padding:.75pt .75pt .75pt .75pt'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'>Luis-Miguel Muņoz Benito <a href="mailto:lm@redlm.com" target="_blank">lm@redlm.com</a></span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'> <a href="tel:%2B34%20911%20124%20203" target="_blank">+34 911 124 203</a> <br><br>Madrid (Espaņa) Reino Unido (UK)<br><br></span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'> <a href="http://www.redlm.com/" target="_blank">www.redlm.com</a> </span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:blue'><a href="mailto:redlm@redlm.com" target="_blank">redlm@redlm.com</a></span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:red'> </span><o:p></o:p></p></td></tr></table><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>Owncloud mailing list<br><a href="mailto:Owncloud@kde.org">Owncloud@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>