title: Accessing an SMTP server when istio is enabled
body: <p>getting error <code>curl: (56) response reading failed</code> while trying to send email via smtp using curl. checked the isto-proxy logs of sidecar but don't see any <code>error</code> logs related to this host. Tried the solution mentioned in <a href="https://stackoverflow.com/questions/55627595/how-to-access-external-smtp-server-from-within-kubernetes-cluster-with-istio-ser">How to access external SMTP server from within Kubernetes cluster with Istio Service Mesh</a> as well but didn't work.</p>
  <p>service entry</p>
  <pre><code>apiVersion: networking.istio.io/v1beta1
  kind: ServiceEntry
  metadata:
    name: smtp
  spec:
    addresses:
    - 192.168.8.45/32
    hosts:
    - smtp.example.com&quot;
    location: MESH_EXTERNAL
    ports:
      - name: tcp-smtp
        number: 2255
        protocol: TCP
  </code></pre>