I want setup mail server

Discussion in 'Installation/Configuration' started by Geoadly, Aug 20, 2023.

  1. Geoadly

    Geoadly Member

    Firstly, let me thank you for your support
    Secondly, about send an email to the same address I already did that and it working very well as screenshot, and what about external mail system and how can set a proper username and password for relaying how can I do that can you give me the steps PLZ.
    Thanks a lot
     

    Attached Files:

  2. Geoadly

    Geoadly Member

    Firstly, let me thank you for your support
    Secondly, about send an email to the same address I already did that and it working very well as screenshot, and what about external mail system and how can set a proper username and password for relaying how can I do that can you give me the steps PLZ.
    Thanks a lot
     

    Attached Files:

  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Do you know what the username and password are?
    Why are you setting up relaying via external e-mail server?
     
  4. Geoadly

    Geoadly Member

    username and password for ISPCONFIG OR what ?
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You asked:
    I asked if you knew those.
     
  6. Geoadly

    Geoadly Member

    no I don't and how can I do that ?
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    How could anyone on this forum know your passwords?
    Ask the party that offers you the relaying e-mail server, what is the username and password needed for that service.
    Or think if you actually need to relay outgoing e-mails at all.
    My signature has link to e-mail setup with ISPConfig tutorial, maybe it offers some help?
     
  8. Geoadly

    Geoadly Member

    I buy only domain form GoDaddy and do the DNS records and setup up server ISPCONFIG and linked between them by do port forwarding to my private IP to Public IP that's all I did and I don't know about relaying email server and how can I get that or from where can advise me how can I get that
    Note: that is the first time I do email server so I don't know all steps or what should I do
    thanks for your support,
     
  9. Geoadly

    Geoadly Member

    Dears,
    I need your help I don't know what is the authentication for relaying and how can I get that from where
    just I need send the email from my domain mail-travel to another domains like google, outlook , yahoo, any domains In this moment I can't, can any one experts explain to me what should I do by steps.
    Thanks for always support.
     
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Google is your friend. First learn what is the meaning of such term(s) and its related things e.g. email, email server, email server requirements, email ports, email relay, email username/address, email password, email authentication etc.

    Without proper knowledge, setting up an email server is definitely not as easy as 123 as many newbies would like to think. A lot must be learned and understood (like some of the terms I mentioned) before you can succeed in building one. Running and maintaining it will be another issues altogether. Only serious server admins will do that.

    That said, if you need to send email from your domain, the easiest way is to use any web hosting services which normally have it ready. The other one is to use email paid service like google where you can also use your own domain to send emails, like what web hosting services have.

    Otherwise, if you really want to send it on your own, there will be two options, setup an email server (not advisable for total newbies) or use a relay. The latter is easier, since you only need a working free public email that offers such a relay service. How it works? Refer to that public email documentations and google more on it.

    And please do not PM me for help. If I am helping in here, I do not intend to help only a single user but the whole public, so please make use of the forum and do not abuse it. I might ignore those who do the latter.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    If you run your server in a datacenter that does not restrict access to and from port 25, then you do not have to relay emails. I guess you probably either run your system at home (and most internet access providers for home or office use restrict mail sending) or you use a datacenter or cloud provider that does not allow direct mail sending, in such a case you need a mail relay. A mail relay is a server in the internet that will send the emails for your server as your server can not send the emails itself due to external restrictions of the internet access provider (like a firewall with port 25 closed). If you have to use a mail relay server, then you can set its details like server hostname, username and password in ISPConfig under system > server config > mail.
     
    ahrasis likes this.
  12. Geoadly

    Geoadly Member

    Really thanks for this information let me ask you can I add port 26 to send with 25, if it can help and how can I do that
    Note: when I do the configuration email on outlook it is valid as photo it is refer to anything or not and I did telnet from inside network on server and outside network. are that refer to anything?
     

    Attached Files:

    Last edited: Aug 24, 2023
  13. Geoadly

    Geoadly Member

    Firstly, thanks for your support
    Secondly, I am not use anything to support or help when I send to you private I send because I guess you in your work and I don't know you can see all posts or not so I did that.
     
  14. pyte

    pyte Well-Known Member HowtoForge Supporter

    There is quiet a good book to get into it by Alistair McDonald , Magnus Back and David Rusenko it's called "Linux Email" published by Packt.

    May start there or any other free resource, and read into the topic.
     
    ahrasis likes this.
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Port 25 is needed incoming and outgoing if you want to operate your own mail system without a relay server. You can not chose a different port as no other mail system on the internet would know it, any system will try to connect to your system on port 25 and your system (or the relay server) must connect to other mail servers on port 25.
     
    ahrasis likes this.
  16. Geoadly

    Geoadly Member

    let me ask you if I do telnet outside on server by port 25 and it is successful that 's refer port 25 working well maybe telnet successful but it's blocked from ISP so I can't send emails to any different domains. but when I add the config to outlook it give me the port successful as photos, and I think this error from server can you check with me again this server working very well or not.
    Can you see the report I see failed and invalid
    [INFO] systemd failed services status:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ufw-logging-deny all -- [anywhere]/0 [anywhere]/0 ctstate INVALID
    DROP all -- [anywhere]/0 [anywhere]/0 ctstate INVALID
    RETURN all -- [anywhere]/0 [anywhere]/0 ctstate INVALID limit: avg 3/min burst 10
     

    Attached Files:

    Last edited: Aug 24, 2023
  17. Geoadly

    Geoadly Member

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 22.04.3 LTS
    
    [INFO] uptime:  19:08:55 up 7 min,  1 user,  load average: 0.00, 0.14, 0.11
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:            19Gi       2.0Gi        16Gi        57Mi       880Mi        17Gi
    Swap:          8.0Gi          0B       8.0Gi
    
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.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.11
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 8.1.22
    [INFO] php-cgi (used for cgi php in default vhost!) is version 8.1.22
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 1729)
    [INFO] I found the following mail server(s):
            Postfix (PID 2189)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 1005)
    [INFO] I found the following imap server(s):
            Dovecot (PID 1005)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1728)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    ***.***.***.***:53              (991/systemd-resolve)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    ***.***.***.***:53              (1170/named)
    [localhost]:10023               (1400/postgrey)
    [localhost]:11332               (1210/rspamd:)
    [localhost]:11333               (1210/rspamd:)
    [localhost]:11334               (1210/rspamd:)
    [localhost]:11211               (1012/memcached)
    [localhost]:6010                (2576/sshd:)
    [localhost]:6379                (1042/redis-server)
    [anywhere]:4190         (1005/dovecot)
    [anywhere]:3306         (1169/mariadbd)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:53          (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [localhost]:953         (1170/named)
    [anywhere]:465          (2189/master)
    [anywhere]:143          (1005/dovecot)
    [anywhere]:110          (1005/dovecot)
    [anywhere]:25           (2189/master)
    [anywhere]:22           (1107/sshd:)
    [anywhere]:21           (1728/pure-ftpd)
    [anywhere]:995          (1005/dovecot)
    [anywhere]:993          (1005/dovecot)
    [anywhere]:587          (2189/master)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:53           (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:953          (1170/named)
    *:*:*:*::*:6010         (2576/sshd:)
    *:*:*:*::*:6379         (1042/redis-server)
    *:*:*:*::*:8080         (1729/apache2)
    *:*:*:*::*:8081         (1729/apache2)
    *:*:*:*::*:4190         (1005/dovecot)
    *:*:*:*::*:3306         (1169/mariadbd)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::**:*:*:*::*53          (1170/named)
    *:*:*:*::*:465          (2189/master)
    *:*:*:*::*:443          (1729/apache2)
    [localhost]43           (1005/dovecot)
    [localhost]10           (1005/dovecot)
    *:*:*:*::*:80           (1729/apache2)
    *:*:*:*::*:25           (2189/master)
    *:*:*:*::*:22           (1107/sshd:)
    *:*:*:*::*:21           (1728/pure-ftpd)
    *:*:*:*::*:995          (1005/dovecot)
    *:*:*:*::*:993          (1005/dovecot)
    *:*:*:*::*:587          (2189/master)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target     prot opt source               destination
    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 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            udp dpt:137
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:138
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:139
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:445
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:67
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:68
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCA
    ST
    
    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,ESTABLISHED
    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,ESTABLISHED
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    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,ESTABLISHED
    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 limit: 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 dst-type LOCAL
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type MULTICAST
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-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:20
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:26
    
    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 p
    refix "[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 #####
    acme.sh is installed in /root/.acme.sh/acme.sh
    
    
     
  18. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    telnetting to your mail server on port 25 is one thing.. your mail server connecting to other mail servers on port 25 is another thing entirely. you mail server needs to be able to receive connections on it's own port 25, and make connections to other servers on their port 25.

    this does not mean your mail server makes the outbound connection from port 25, (it'll use a random port number) just that the destination port is 25. this is what the isp may be blocking, outbound connections from any port on your ip, to another servers port 25.

    you've also configured your mail client to connect to port 25 on your mailserver, with no encryption.. you should not do this. for mail clients outbound connections, set it to use port 465 or 587 and SSL/TLS or STARTTLS.
    only smtp between MX servers should use port 25.
     
  19. Geoadly

    Geoadly Member

    firstly, there any error in server did you see the report ?
    how can I check that ISP block the port ?
    Thanks a lot
     
    Last edited: Aug 24, 2023
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you have to use a relay host for your server or do not host your server in a data center and not at home.

    The lxd service is not used by ISPConfig on your system and its also not related to email, so it does not matter if it failed. not any error you see matters for a specific issue.

    First, take care telnet is installed on your server:

    Code:
    sudo apt install telnet
    Then run this command to test outgoing email connections:

    Code:
    telnet gmail-smtp-in.l.google.com 25
    If the connection was established successfully, then you can close it using the command quit.

    The result should look like this if its successful:

    mail-test.png
     

Share This Page