Dears, I already setup ubuntu and ISPCONFIG this is the first i do it by ubuntu and ISPCONFIG I use this article :rosehosting.com/blog/how-to-install-ispconfig-3-on-ubuntu-18-04/#Step-1-Log-in-via-SSH-and-Update-the-System Firstly, I need to check the server working well or not after install Ubuntu and ISPCONFIG then I want configure email server how can I do that, and any one can help me to open with me remotely to see what I do or can give me the steps to configure email server and follow with me step by step .
Why do you use a completely outdated OS which is already 5 years old (this makes no sense at all), and why don't you use official install instructions for ISPConfig, which can be found at ispconfig.org like this guide: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ for Ubuntu 20.04 or 22.04? And guides on how to configure a mail system can be found on the ispconfig.org documentation page as well. E.g.: https://www.howtoforge.com/ispconfig-email-account/
First let me thank you for your support and let me ask you if I setup Ubuntu and ISCPCONFIG by local Ip and I have domain on GoDaddy like geoadly.com and I want link this domain by mail server how can I do that Can you tell me what can I use Ubuntu Server 22.04.3 LTS or Ubuntu desktop 22.04.3 LTS thanks
use server 22.04.3 LTS.. desktop version will automatically have loads of other software installed.. i don't know if any of that will impact the ispconfig auto-install script.. but the other software, and gui environment will increase system resource usage unnecessarily, and also increase possible attack vectors for hackers to target.. you have ispconfig installed with a local (private?) ip.. do you have a fixed static ip for your internet? if so, then you'll have to configure port forwarding on your internet facing router/firewall. if you have multiple static ip's, you could assign one (or more) to your ispconfig server(s) if you don't have a static ip you're going to have to use a dynamic dns service. either way. you'll need to tell your domain registrar what the nameservers are for your domain. (and create glue records if you run the dns service under the same domain) then you need to create the dns zone and dns records, A, NS and MX records at minimum, AAAA records if you use ipv6. SPF, DKIM, and DMARC records once you have the mailserver installed and are starting to configure maildomains / mailboxes. https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ https://www.howtoforge.com/tutorial/ispconfig-multiserver-setup-debian-ubuntu/ (says 20.04, but works fine on 22.04 as well)
for now, it looks like just set the data field for the A record to the public ip for your ispconfig server or internet router/firewall. and create an mx record type:mx name: mail-travel.com data: eg mail.mail-travel.com / mx01.mail-travel.com or similar. you should also ask whoever assigned the public ip you're using to create a PTR record for you for that ip, pointing to the FQDN you used as the data field for the mx record. and create the mail domain mail-travel.com in the ispconfig interface. then create a mailbox for a user on this maildomain.. spf/dkim/dmarc records can be left until you've confirmed the mailserver can receive mail and deliver it to the inbox of the mailbox you've created.
If I am using local host name:mailserver.finalcall.com and I have this public domain mail-travel.com and I put public Ip by port forwarding :154.128.80.153, and I use public Ip with public domain in configuration GoDaddy DNS records like photos should I do anything else. Thanks a lot
ok. then you should have a dns zone somewhere for finalcall.com. you should create an mx record in there for mailserver.finalcall.com and an A record in the same zone for the name mailserver. then you should remove the A record for mail.mail-travel.com and change the mx record so the data is mailserver.finalcall.com
I don't have Domain mailserver.finalcall.com I just write it put I want to use it to send and receive is mail-travel.com
ok. then you can't use mailserver.finalcall.com then. that is what your mailserver is going to identify itself as, that is what other mailservers reverse lookups are going to find as the fdqn when they check what name the ip resolves to. plus finalcall.com is already registered, and has it's own mx records.. so any mail would be directed to their mailserver, not yours. at the very least, you're going to have to edit /etc/mailname, and /etc/postfix/main.cf and replace any instances of mailserver.finalcall.com with mail.mail-travel.com and restart postfix. you may also need to edit the rspamd configs and restart that.. i'm never had to bother doing anything with the rspamd configs, so not sure about that. you'll also need to double check your A records.. your images so the server using 154.128.80.153 but your nameservers are returning: Name: mail-travel.com Address: 34.102.136.180 Name: mail-travel.com Address: 197.44.213.242 that may be due to the A record pointing to 'Parked', you should delete that record. you'll probably want to change the server hostname.. and force update ispconfig to update all the service configs, otherwise you're going to have to leave the control panel on an unencrypted port, or use a self-signed cert.. letsencrypt will never create a cert on there for anything using finalcall.com, and you won't be able to symlink the postfix certificate to the ispconfig certificate if you are using a different name for the mailserver configs
You mean replace any instances from mailserver.finalcall.com to mail.mail-travel.com or mail-travel.com and if can you give list of records what should I write. thanks a lot
and if I will setup the server again what the name should I write 127.0.1.1 mail.mail-travel.com mail and if write like this how can link that to DNS records can explain to me. or 127.0.1.1 mail-travel.com if I write like this how can write in nano /etc/hostname and how can link that to DNS records thanks a lot
Yes I think it is better for you to fresh setup the server and this time, properly. The server should use sub.domain.tld and not just domain.tld, so the first one should work except you should use your static public IP there, if your server is connected directly to the internet, otherwise, static private IP, if your server is behind a NAT router.
Follow these instructions to rule out the usual suspects and get some context: https://forum.howtoforge.com/threads/please-read-before-posting.58408/ Have you read my tutorial on setting up e-mail server with ISPConfig (link in my signature)?
I asked you to read this: https://forum.howtoforge.com/threads/please-read-before-posting.58408/ It says at the beginning: So, where is the output of that test script?
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: 18:37:08 up 8:48, 2 users, load average: 0.04, 0.01, 0.00 [INFO] memory: total used free shared buff/cache available Mem: 19Gi 2.1Gi 14Gi 72Mi 3.4Gi 17Gi Swap: 8.0Gi 0B 8.0Gi [INFO] systemd failed services status: UNIT LOAD ACTIVE SUB DESCRIPTION 0 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 346227) [INFO] I found the following mail server(s): Postfix (PID 195205) [INFO] I found the following pop3 server(s): Dovecot (PID 195220) [INFO] I found the following imap server(s): Dovecot (PID 195220) [INFO] I found the following ftp server(s): PureFTP (PID 195363) ##### LISTENING PORTS ##### (only () Local (Address) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:53 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [localhost]:953 (195475/named) [anywhere]:4190 (195220/dovecot) [anywhere]:587 (195205/master) [anywhere]:995 (195220/dovecot) [anywhere]:993 (195220/dovecot) [localhost]:6011 (370133/sshd:) [localhost]:6010 (1363/sshd:) [anywhere]:143 (195220/dovecot) [anywhere]:110 (195220/dovecot) [anywhere]:25 (195205/master) [anywhere]:22 (189200/sshd:) [anywhere]:21 (195363/pure-ftpd) [anywhere]:465 (195205/master) [localhost]:6379 (47784/redis-server) [anywhere]:3306 (194545/mariadbd) ***.***.***.***:53 (965/systemd-resolve) [localhost]:10023 (48034/postgrey) [localhost]:11211 (157902/memcached) [localhost]:11334 (195213/rspamd:) [localhost]:11333 (195213/rspamd:) [localhost]:11332 (195213/rspamd:) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) ***.***.***.***:53 (195475/named) *:*:*:*::*:4190 (195220/dovecot) *:*:*:*::*:8080 (346227/apache2) *:*:*:*::*:8081 (346227/apache2) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::**:*:*:*::*53 (195475/named) *:*:*:*::*:587 (195205/master) *:*:*:*::*:995 (195220/dovecot) *:*:*:*::*:993 (195220/dovecot) [localhost]43 (195220/dovecot) *:*:*:*::*:80 (346227/apache2) [localhost]10 (195220/dovecot) *:*:*:*::*:25 (195205/master) *:*:*:*::*:22 (189200/sshd:) *:*:*:*::*:21 (195363/pure-ftpd) *:*:*:*::*:465 (195205/master) *:*:*:*::*:443 (346227/apache2) *:*:*:*::*:3306 (194545/mariadbd) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:953 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:53 (195475/named) *:*:*:*::*:6379 (47784/redis-server) *:*:*:*::*:6010 (1363/sshd:) *:*:*:*::*:6011 (370133/sshd:) ##### 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 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 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 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 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy PHP 8.1.22 (cli) (built: Aug 14 2023 05:32:33) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.22, Copyright (c) Zend Technologies with Zend OPcache v8.1.22, Copyright (c), by Zend Technologies
Login to webmail on your ispconfig server, then send an email to the same address that you are currently logged in to webmail, this email should arrive in a few seconds. if that's the case, then your mail system works fine and you have an external problem. According to your error message, you try to relay emails through an external mail server without authentication. So your email system has not been configured to send emails by itself but to use an external mail system to relay mail trough and this external mail system requests that you have set a proper username and password for relaying.