<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">ok gentlemen - here is the solution (can't have trailing "." end of hostname)</div><div dir="ltr"><br></div><div dir="ltr"><div><br></div><div>STEP-1</div><div>cp /etc/ngcp-config/templates/etc/hosts.tt2 /etc/ngcp-config/templates/etc/hosts.customtt.tt2</div><div><br></div><div>edit this:</div><div>"127.0.0.2 ${hostname}. ${hostname}\n";<br></div><div>to</div><div>"127.0.0.2 ${hostname} ${hostname}\n";<br></div><div><br></div><div>ngcpcfg apply 'fix hostname'</div><div><br></div><div>STEP-2 </div><div><br></div><div>cp /etc/ngcp-config/templates/etc/exim4/update-exim4.conf.conf.tt2 /etc/ngcp-config/templates/etc/exim4/update-exim4.conf.conf.customtt.tt2</div><div><br></div><div>change the following</div><div>dc_eximconfig_configtype='[% email.smarthost.hostname == '' ? 'local' : 'satellite' %]'<br></div><div>to</div><div>dc_eximconfig_configtype='internet'</div><div><br></div><div>also change:</div><div>dc_other_hostnames='[% hostnames.join(';') %]'<br></div><div>to</div><div>dc_other_hostnames='<a href="http://put.the.full.domain.name.of.your.server.com">put.the.full.domain.name.of.your.server.com</a>'</div><div><br></div><div>you should have email working</div><div><br></div><div>NOTE: if its a read only file, just force the write</div><div> </div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2019 at 8:39 AM Andy Clark <<a href="mailto:andyclark05251978@gmail.com">andyclark05251978@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">2019-03-12 08:26:11 1h3jIA-0004c4-U2 ** <a href="mailto:support@remotedomain.com" target="_blank">support@remotedomain.com</a> R=dnslookup T=remote_smtp H=<a href="http://remotedomain-com.mail.protection.outlook.com" target="_blank">remotedomain-com.mail.protection.outlook.com</a> [104.47.36.36]: SMTP error from remote mail server after HELO spce.: 501 5.5.4 Invalid domain name [<a href="http://SN1NAM02FT037.eop-nam02.prod.protection.outlook.com" target="_blank">SN1NAM02FT037.eop-nam02.prod.protection.outlook.com</a>]<br></div><div dir="ltr"><br></div><div>i believe the issue is, when spce is trying to connect to office356 its sending the server name as "spce." and office365 is doesn't like that. I should be sending spce or <a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a> (no trailing dot)</div><div><br></div><div>i could be completely wrong - but any input would be appreciated</div><div><br></div><div>Thank you</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2019 at 6:34 AM Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <tt>yes, because it must called </tt>update-exim4.conf.conf.customtt.tt2<br>
    <br>
    <br>
    <pre class="gmail-m_-1666081385906944041gmail-m_3401264737740211202moz-signature" cols="72">--
Daniel Grotti

Head of Customer Support                               Sipwise GmbH
e: <a class="gmail-m_-1666081385906944041gmail-m_3401264737740211202moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>                               Europaring F15
t: +43(0)130120332                          A-2345 Brunn Am Gebirge
w: <a class="gmail-m_-1666081385906944041gmail-m_3401264737740211202moz-txt-link-abbreviated" href="http://www.sipwise.com" target="_blank">www.sipwise.com</a>          FN: 305595f      FG: LG Wiener Neustadt
</pre>
    <div class="gmail-m_-1666081385906944041gmail-m_3401264737740211202moz-cite-prefix">On 3/12/19 2:32 PM, Andy Clark wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">i have made copied "update-exim4.conf.conf" to
            "update-exim4.conf.customtt.conf"</div>
          <div dir="ltr"><br>
          </div>
          <div>after applying the config, its simply ignoring the custom
            config</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Cat of update-exim4.conf.conf</div>
          <div><br>
          </div>
          <div>
            <div>dc_eximconfig_configtype='local'</div>
            <div>dc_other_hostnames='spce;<a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a>'</div>
            <div>dc_local_interfaces='127.0.0.1;::1;55.55.24.6'</div>
            <div>dc_readhost='
              <a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a> 
              '</div>
            <div>dc_relay_domains=''</div>
            <div>dc_minimaldns='false'</div>
            <div>dc_relay_nets=''</div>
            <div>dc_smarthost=''</div>
            <div>CFILEMODE='644'</div>
            <div>dc_use_split_config='false'</div>
            <div>dc_hide_mailname='true'</div>
            <div>dc_mailname_in_oh='true'</div>
            <div>dc_localdelivery='mail_spool'</div>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2019 at 6:14
          AM Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF"> <tt>Hi,<br>
              you probably need to patch the config file customtt.<br>
              Can you cat your /etc/exim4/update-exim4.conf.conf ?<br>
              <br>
              <br>
            </tt>
            <pre class="gmail-m_-1666081385906944041gmail-m_3401264737740211202gmail-m_-3945040057272751370moz-signature" cols="72">--
Daniel Grotti

Head of Customer Support                               Sipwise GmbH
e: <a class="gmail-m_-1666081385906944041gmail-m_3401264737740211202gmail-m_-3945040057272751370moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>                               Europaring F15
t: +43(0)130120332                          A-2345 Brunn Am Gebirge
w: <a class="gmail-m_-1666081385906944041gmail-m_3401264737740211202gmail-m_-3945040057272751370moz-txt-link-abbreviated" href="http://www.sipwise.com" target="_blank">www.sipwise.com</a>          FN: 305595f      FG: LG Wiener Neustadt
</pre>
            <div class="gmail-m_-1666081385906944041gmail-m_3401264737740211202gmail-m_-3945040057272751370moz-cite-prefix">On
              3/12/19 2:04 PM, Andy Clark wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div class="gmail_quote">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">Hi Daniel,
                        <div>i'm not using a smart host - just want to
                          directly send email out from SPCE 6.5.3</div>
                        <div><br>
                        </div>
                        <div>I agree on older versions, simple run "<span style="white-space:pre-wrap">dpkg-reconfigure exim4-config" and it would work perfectly</span></div>
                        <div><br>
                        </div>
                        <div>i have set it up config.yml to reflect</div>
                        <div><br>
                        </div>
                        <div><span style="font-family:monospace">email:</span><br style="font-family:monospace">
                          <span style="font-family:monospace">  domain:
                            ''</span><br style="font-family:monospace">
                          <span style="font-family:monospace"> 
                            hostname: </span><a href="http://spce.mydomain.com/" style="font-family:monospace" target="_blank">spce.mydomain.com</a><br style="font-family:monospace">
                          <span style="font-family:monospace"> 
                            smarthost:</span><br style="font-family:monospace">
                          <span style="font-family:monospace">   
                            hostname:</span><br style="font-family:monospace">
                          <span style="font-family:monospace">   
                            password: ''</span><br style="font-family:monospace">
                          <span style="font-family:monospace">   
                            reverse_hostnames: []</span><br style="font-family:monospace">
                          <span style="font-family:monospace">   
                            username: ''</span><br style="font-family:monospace">
                        </div>
                        <div><span style="font-family:monospace"><br>
                          </span></div>
                        <div><font face="monospace">and this is what my
                            logs are showing when i try to send out
                            email</font></div>
                        <div><font face="monospace"><br>
                          </font></div>
                        <div><font face="monospace">/var/log/exim4/mainlog<br>
                          </font></div>
                        <div><font face="monospace"><br>
                          </font></div>
                        <div><font face="monospace">
                            <div>2019-03-12 05:46:12 1h3gnM-00078r-CG
                              <= <a href="mailto:support@mydomain.com" target="_blank">support@mydomain.com</a>
                              U=www-data P=local S=664</div>
                            <div>2019-03-12 05:46:12 1h3gnM-00078r-CG **
                              <a href="mailto:support@remotedomain.com" target="_blank">support@remotedomain.com</a>
                              R=nonlocal: Mailing to remote domains not
                              supported</div>
                            <div>2019-03-12 05:46:12 1h3gnM-00078t-Dh
                              <= <> R=1h3gnM-00078r-CG
                              U=Debian-exim P=local S=1852</div>
                            <div>2019-03-12 05:46:12 1h3gnM-00078r-CG
                              Completed</div>
                            <div>2019-03-12 05:46:12 1h3gnM-00078t-Dh **
                              <a href="mailto:support@mydomain.com" target="_blank">support@mydomain.com</a>
                              R=nonlocal: Mailing to remote domains not
                              supported</div>
                            <div>2019-03-12 05:46:12 1h3gnM-00078t-Dh
                              Frozen (delivery error message)</div>
                            <div><br>
                            </div>
                          </font></div>
                        <div><font face="monospace">try it our self</font></div>
                        <div><font face="monospace">1. change the
                            config.yml (just put the hostname WITHOUT
                            the smarthost)</font></div>
                        <div><font face="monospace">2. run "</font><span style="white-space:pre-wrap">dpkg-reconfigure exim4-config" - you'll then be able to verify what changes config.yml did</span></div>
                        <div><span style="white-space:pre-wrap">3. look at the logs - and you'll see it can't route mail outside itself</span></div>
                        <div><span style="white-space:pre-wrap">
</span></div>
                        <div><span style="white-space:pre-wrap">I want to go into production and start replacing my old SPCE but a few things are holding me back, including this</span></div>
                        <div><span style="white-space:pre-wrap">
</span></div>
                        <div><span style="white-space:pre-wrap">
</span></div>
                        <div><font face="monospace">Thank you</font></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>
</blockquote></div>