Email Roundcube not working on home server, but what if other ports are accessible?

Discussion in 'General' started by jjsjjs, Nov 7, 2021.

Tags:
  1. jjsjjs

    jjsjjs Member

    Hello,
    When port 25 is not open at the ISP provider where the domain name is registered, then this could give a SMTP 250 or 220 error or -1 depending on settings in config.inc.php.
    via the telnet command or some testwebpage you can check if the port is open. Port 25 and 587 are closed, but port 465,993,995 are open.
    I've read a bunch of things here and elsewhere about adjusting the config file, like adjust the smtp server from localhost to the nameserver ns1.website.com. Adjusting the portnr from 25 to tls://465 or just 465 etcetera. None of these do help in getting the email working.
    Yes there is the possibility to request the provider to open port 25 or use a forwarding service like from Dynu.com.
    But is it not possible somehow to use these open ports to be able to get the email working?

    Thanks for any help.
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.3 LTS
    
    [INFO] uptime:  22:41:20 up  3:48,  1 user,  load average: 0.12, 0.14, 0.11
    
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          7.6Gi       2.0Gi       4.2Gi        17Mi       1.4Gi       5.5Gi
    Swap:            0B          0B          0B
    
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
    
    ● snap.lxd.activate.service loaded failed failed Service for snap application lx
    d.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    1 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.7p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.3
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections y
    ou have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 16270)
    [INFO] I found the following mail server(s):
            Postfix (PID 3464)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 1980)
    [INFO] I found the following imap server(s):
            Dovecot (PID 1980)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 2523)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:143          (1980/dovecot)
    [anywhere]:465          (3464/master)
    [anywhere]:21           (2523/pure-ftpd)
    ***.***.***.***:53              (1989/named)
    [localhost]:53          (1989/named)
    ***.***.***.***:53              (1899/systemd-resolv)
    [anywhere]:22           (2100/sshd:)
    [anywhere]:25           (3464/master)
    [localhost]:953         (1989/named)
    [anywhere]:993          (1980/dovecot)
    [anywhere]:995          (1980/dovecot)
    [localhost]:10023               (2211/postgrey)
    [localhost]:10024               (3251/amavisd-new)
    [localhost]:10025               (3464/master)
    [localhost]:10026               (3251/amavisd-new)
    [localhost]:10027               (3464/master)
    [localhost]:11211               (1988/memcached)
    [anywhere]:110          (1980/dovecot)
    [localhost]43           (1980/dovecot)
    *:*:*:*::*:8080         (16270/apache2)
    *:*:*:*::*:80           (16270/apache2)
    *:*:*:*::*:8081         (16270/apache2)
    *:*:*:*::*:465          (3464/master)
    *:*:*:*::*:21           (2523/pure-ftpd)
    *:*:*:*::*:53           (1989/named)
    *:*:*:*::*:22           (2100/sshd:)
    *:*:*:*::*:25           (3464/master)
    *:*:*:*::*:953          (1989/named)
    [localhost]7178         (1983/java)
    *:*:*:*::*:443          (16270/apache2)
    [localhost]7179         (1985/java)
    *:*:*:*::*:993          (1980/dovecot)
    *:*:*:*::*:995          (1980/dovecot)
    *:*:*:*::*:10024                (3251/amavisd-new)
    *:*:*:*::*:10026                (3251/amavisd-new)
    *:*:*:*::*:3306         (2149/mysqld)
    [localhost]10           (1980/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target     prot opt source               destination
    f2b-sshd   tcp  --  [anywhere]/0            [anywhere]/0            multiport dports
    22
    ufw-before-logging-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-before-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-logging-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-reject-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-track-input  all  --  [anywhere]/0            [anywhere]/0
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination
    ufw-before-logging-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-before-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-logging-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-reject-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-track-forward  all  --  [anywhere]/0            [anywhere]/0
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    ufw-before-logging-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-before-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-logging-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-reject-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-track-output  all  --  [anywhere]/0            [anywhere]/0
    
    Chain f2b-sshd (1 references)
    target     prot opt source               destination
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-po
    rt-unreachable
    REJECT     all  --  ***.***.***.***      [anywhere]/0            reject-with icmp-por
    t-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-after-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-after-input (1 references)
    target     prot opt source               destination
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            ud
    p dpt:137
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            ud
    p dpt:138
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tc
    p dpt:139
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tc
    p dpt:445
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            ud
    p dpt:67
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            ud
    p dpt:68
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0            AD
    DRTYPE match dst-type BROADCAST
    
    Chain ufw-after-logging-forward (1 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min
    burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-input (1 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min
    burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-after-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-forward (1 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,E
    STABLISHED
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ufw-user-forward  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-before-input (1 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,E
    STABLISHED
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            ctstate IN
    VALID
    DROP       all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp spt:67 dpt:68
    ufw-not-local  all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***          udp dpt:5353
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***      udp dpt:1900
    ufw-user-input  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-before-logging-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-logging-input (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-logging-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-output (1 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,E
    STABLISHED
    ufw-user-output  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-logging-allow (0 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min
    burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "
    
    Chain ufw-logging-deny (2 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID l
    imit: avg 3/min burst 10
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min
    burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-not-local (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match ds
    t-type LOCAL
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match ds
    t-type MULTICAST
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match ds
    t-type BROADCAST
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            limit: avg
     3/min burst 10
    DROP       all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-reject-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-reject-input (1 references)
    target     prot opt source               destination
    
    Chain ufw-reject-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-skip-to-policy-forward (0 references)
    target     prot opt source               destination
    DROP       all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-skip-to-policy-input (7 references)
    target     prot opt source               destination
    DROP       all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-skip-to-policy-output (0 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-track-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-track-input (1 references)
    target     prot opt source               destination
    
    Chain ufw-track-output (1 references)
    target     prot opt source               destination
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    
    Chain ufw-user-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-user-input (1 references)
    target     prot opt source               destination
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:21
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:22
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:80
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:110
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:143
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:443
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:465
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:587
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:993
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:995
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:3306
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:4190
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8080
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8081
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            multiport dports
    40110:40210
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:17178
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:17178
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:17179
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:17179
    
    Chain ufw-user-limit (0 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min
    burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    REJECT     all  --  [anywhere]/0            [anywhere]/0            reject-with icmp-
    port-unreachable
    
    Chain ufw-user-limit-accept (0 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-user-logging-forward (0 references)
    target     prot opt source               destination
    
    Chain ufw-user-logging-input (0 references)
    target     prot opt source               destination
    
    Chain ufw-user-logging-output (0 references)
    target     prot opt source               destination
    
    Chain ufw-user-output (1 references)
    target     prot opt source               destination
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I assume you want to run your own mail server at home or office, right? If port 25 is closed, then you can't do that as any mail server on the net will try to connect to your server on port 25, they will not try any other ports.
     
  3. jjsjjs

    jjsjjs Member

    Yes indeed. So if they do not open 25, it will never work?
    If so then having the server at home has no longer any use as I need the email to work.
    Hopefully they will open port 25, and else I need to hire a VPS.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It won't work without port 25, there are workarounds that would require another server on the internet to receive the emails for you and then route the mails to a different port. But to be honest, then you can simply use that other server (vps) as your mail server directly :)
     
  5. jjsjjs

    jjsjjs Member

    I saw Dyna.com has such service to forward the email.
    I had a VPS before with another project which also was used as the email server, but now I wanted it to try at home, except for email it runs Perfect.
    So I'll wait for an answer from the provider.
    Thanks very much for your reply, and have a great day!
     
  6. jjsjjs

    jjsjjs Member

    Too bad, I'm only getting their mail server address and to use ports. Which are the same as setting your email client 993, 995, 465.
    So probably there is no way to set the DNS on their settings to their mail server and use local roundcube for emailing I guess.
    As I'm only bough an IP, I have no plesk or whatever at their site, so I can't create email addresses. They give no answer on port 25, except "that it does'nt work that way."

    Thanks.
     

Share This Page