Ubuntu 20.04.3 & ISPConfig 3.2.6 email is not sent outside

Discussion in 'General' started by ABatisa, Oct 27, 2021.

  1. ABatisa

    ABatisa New Member

    Hello, A new Ubuntu & ISP installation. I can't send mail outside. I get emails. Everything works on the same server (inside). It’s not just only ability to send emails outside.

    Where to look for solutions?

    Code:
    /// Mail Queue
    EA8EEE1178     2139 Tue Oct 26 11:54:00  [email protected]
    (connect to msn-com.olc.protection.outlook.com[104.47.1.33]:25: Connection timed out)
    [email protected]
    
    7A2D5E11BA      987 Tue Oct 26 11:46:18  [email protected]
     (connect to ASPmx2.GOOGLEMAIL.com[173.194.202.27]:25: Connection timed out)
    [email protected]
    
    /// telnet alt2.gmail-smtp-in.l.google.com 25
    Trying 2607:f8b0:4023:c0b::1a...
    Trying 142.250.141.26...
    telnet: Unable to connect to remote host: Connection timed out
    
    /// traceroute to alt4.gmail-smtp-in.l.google.com (64.233.171.26), 30 hops max, 60 byte packets
    1  169.254.0.1 (169.254.0.1)  0.086 ms  0.058 ms  0.049 ms
    2  * * *
    3  * * *
    
    30  ***
        
    /// UFW
    To                         Action      From
     --                         ------      ----
    [ 3] 25/tcp                     ALLOW IN    Anywhere
    [ 6] 110/tcp                    ALLOW IN    Anywhere                                
    [ 9] 465/tcp                    ALLOW IN    Anywhere                 
    [10] 587/tcp                    ALLOW IN    Anywhere                 
    [11] 993/tcp                    ALLOW IN    Anywhere                 
    [12] 995/tcp                    ALLOW IN    Anywhere                  
    [22] 25/tcp (v6)                ALLOW IN    Anywhere (v6)             
    [25] 110/tcp (v6)               ALLOW IN    Anywhere (v6)             
    [28] 465/tcp (v6)               ALLOW IN    Anywhere (v6)             
    [29] 587/tcp (v6)               ALLOW IN    Anywhere (v6)             
    [30] 993/tcp (v6)               ALLOW IN    Anywhere (v6)             
    [31] 995/tcp (v6)               ALLOW IN    Anywhere (v6)             
    
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely port 25 is blocked by the ISP where you get the internet connection from. This is quite common if you don't host the system in a data center as most ISP's don't ant that their customers run mail servers on a DSL or cable line. Also some cloud providers like AWS block port 25 as well.

    The options are: Host your server in a data center or use a cloud provider that allows you to run a mail server or use a smart host to send your outgoing emails through.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    My signature has link to e-mail tutorial. Tutorial and comments have info on this Port 25 business.
     
  4. ABatisa

    ABatisa New Member

    This server in data center
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you verified port 25 is open outgoing?
     
    ABatisa likes this.
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Then your datacenter blocks port 25, some datacenters are doing that. Contact your data center and request that they open port 25 outgoing for your server.
     
    ABatisa likes this.
  7. ABatisa

    ABatisa New Member

    Hard to believe, but (data center) ISP has blocked 25. Now everything is OK.
    Four days of working around :/

    Thanks for company! Clicks on a way :)
     
    till likes this.

Share This Page