postfix behind proxy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix behind proxy

Toufik SARNI
Hello

I installed gitlab in a virtual machine upon ubuntu 16.04 server. This virtual machine is behind my compagny's proxy. 
Postfix is called by gitlab but can not send emails because of proxy - fails with timeout. I tried many options like "proxy_interfaces" in /etc/postfix/main.cf but none of them works.
Please note that this virtual machine works correctely at home where I have not proxy and all emails are sent. 

Thanks and best regards,
Toufik

                                              /\      /\
                                           __   \/   __
                                      .  /    _      _   \   .
                                     | \ |  ( o ) ( o )  | / |
+-------------------------.OOOo----oo----oOOO.--------------------------------+
| *** Please consider the environment before printing this e-mail!      |
|    Avant d'imprimer, ayez une pensée pour notre environnement!    |
+--------------------------------------------Oooo.------------------------------------+
                                     .oooO      (         )
                                    (         )      )      /
                                     \      (       ( _ /
                                      \ _ )



Reply | Threaded
Open this post in threaded view
|

Re: postfix behind proxy

Erwan David
Le 10/09/17 à 10:52, Toufik SARNI a écrit :

> Hello
>
> I installed gitlab in a virtual machine upon ubuntu 16.04 server. This
> virtual machine is behind my *compagny's proxy.* 
> Postfix is called by gitlab but can not send emails because of *proxy
> -* fails with timeout. I tried many options like "proxy_interfaces" in
> /etc/postfix/main.cf <http://main.cf> but none of them works.
> Please note that this virtual machine works correctely at home where I
> have not proxy and all emails are sent. 
>
> Thanks and best regards,
> Toufik

Maybe your company provides an internal smtp host, that your postfix
could use as a relay. Company proxys usually deal only with HTTP and HTTPS.
Reply | Threaded
Open this post in threaded view
|

Re: postfix behind proxy

Noel Jones-2
In reply to this post by Toufik SARNI
On 10/9/2017 3:52 AM, Toufik SARNI wrote:

> Hello
>
> I installed gitlab in a virtual machine upon ubuntu 16.04 server.
> This virtual machine is behind my *compagny's proxy.* 
> Postfix is called by gitlab but can not send emails because of
> *proxy -* fails with timeout. I tried many options like
> "proxy_interfaces" in /etc/postfix/main.cf <http://main.cf> but none
> of them works.
> Please note that this virtual machine works correctely at home where
> I have not proxy and all emails are sent. 

Timeouts while sending mail are almost always a firewall or network
issue.

Test outgoing connections with "telnet destination 25" where
"destination" is the host postfix is trying to connect to.  If you
get timeouts, check your network and firewall settings, or perhaps
the proxy does not allow outgoing SMTP connections.

If telnet gives a "220 ..." greeting and you need more help with
postfix, please see
http://www.postfix.org/DEBUG_README.html
and particularly
http://www.postfix.org/DEBUG_README.html#mail