gives me this back Code: [email protected]:~# hostname webitalia.it [email protected]:~# hostname -f webitalia.it
Off the top of my head (ie. I might be forgetting something?), change /etc/hosts, /etc/hostname, /etc/mailname, then reconfigure services in ispconfig. You might want to change the name in the server table as well, though I don't know that it's actually used for anything.
when I updated ispconfig it was also updated postfix, in fact now I can't receive or send, I guess the various files have been changed in the update, I would like to post everything to make a little account of the situation hoping not to bother me because of my incompetence.. Code: [email protected]:~# less /etc/postfix/master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (no) (never) (100) # ========================================================================== smtp inet n - y - - smtpd #smtp inet n - y - 1 postscreen #smtpd pass - - y - - smtpd #dnsblog unix - - y - 0 dnsblog #tlsproxy unix - - y - 0 tlsproxy submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o smtpd_tls_auth_only=yes # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - y - - qmqpd pickup unix n - y 60 1 pickup cleanup unix n - y - 0 cleanup qmgr unix n - n 300 1 qmgr #qmgr unix n - n 300 1 oqmgr tlsmgr unix - - y 1000? 1 tlsmgr rewrite unix - - y - - trivial-rewrite : Code: [email protected]:~# less /etc/postfix/main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = /usr/share/doc/postfix # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on # fresh installs. compatibility_level = 2 # TLS parameters smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination myhostname = webitalia.it alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases myorigin = /etc/mailname mydestination = webitalia.it, localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all html_directory = /usr/share/doc/postfix/html : Code: [email protected]:~# less /var/log/mail.log Oct 18 00:00:10 webitalia postfix/smtpd[31632]: warning: unknown[212.70.149.53]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:10 webitalia postfix/smtpd[31630]: warning: unknown[212.70.149.84]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:10 webitalia postfix/smtpd[31630]: disconnect from unknown[212.70.149.84] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:11 webitalia postfix/smtpd[31632]: disconnect from unknown[212.70.149.53] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:11 webitalia postfix/smtpd[32732]: connect from unknown[212.70.149.5] Oct 18 00:00:17 webitalia postfix/smtpd[31891]: warning: unknown[212.70.149.21]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:17 webitalia postfix/smtpd[31891]: disconnect from unknown[212.70.149.21] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:18 webitalia postfix/smtpd[32732]: warning: unknown[212.70.149.5]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:18 webitalia postfix/smtpd[32732]: disconnect from unknown[212.70.149.5] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:25 webitalia postfix/smtpd[31630]: connect from unknown[212.70.149.84] Oct 18 00:00:25 webitalia postfix/smtpd[31632]: connect from unknown[212.70.149.53] Oct 18 00:00:32 webitalia postfix/smtpd[31891]: connect from unknown[212.70.149.21] Oct 18 00:00:33 webitalia postfix/smtpd[31630]: warning: unknown[212.70.149.84]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:33 webitalia postfix/smtpd[32732]: connect from unknown[212.70.149.5] Oct 18 00:00:34 webitalia postfix/smtpd[31630]: disconnect from unknown[212.70.149.84] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:34 webitalia postfix/smtpd[31632]: warning: unknown[212.70.149.53]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:34 webitalia postfix/smtpd[31632]: disconnect from unknown[212.70.149.53] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:40 webitalia postfix/smtpd[31891]: warning: unknown[212.70.149.21]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:40 webitalia postfix/smtpd[32732]: warning: unknown[212.70.149.5]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:40 webitalia postfix/smtpd[31891]: disconnect from unknown[212.70.149.21] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:40 webitalia postfix/smtpd[32732]: disconnect from unknown[212.70.149.5] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:00:48 webitalia postfix/smtpd[31632]: connect from unknown[212.70.149.53] Oct 18 00:00:53 webitalia postfix/smtpd[31630]: connect from unknown[212.70.149.84] Oct 18 00:00:55 webitalia postfix/smtpd[32732]: connect from unknown[212.70.149.21] Oct 18 00:00:55 webitalia postfix/smtpd[31891]: connect from unknown[212.70.149.5] Oct 18 00:00:57 webitalia postfix/smtpd[31632]: warning: unknown[212.70.149.53]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:00:57 webitalia postfix/smtpd[31632]: disconnect from unknown[212.70.149.53] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:01 webitalia postfix/smtpd[31630]: warning: unknown[212.70.149.84]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:01 webitalia postfix/smtpd[31630]: disconnect from unknown[212.70.149.84] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:02 webitalia postfix/smtpd[32732]: warning: unknown[212.70.149.21]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:03 webitalia postfix/smtpd[32732]: disconnect from unknown[212.70.149.21] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:03 webitalia postfix/smtpd[31891]: warning: unknown[212.70.149.5]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:03 webitalia postfix/smtpd[31891]: disconnect from unknown[212.70.149.5] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:12 webitalia postfix/smtpd[31630]: connect from unknown[212.70.149.53] Oct 18 00:01:12 webitalia postfix/smtpd[32732]: connect from unknown[212.70.149.84] Oct 18 00:01:17 webitalia postfix/smtpd[31891]: connect from unknown[212.70.149.5] Oct 18 00:01:18 webitalia postfix/smtpd[1307]: connect from unknown[212.70.149.21] Oct 18 00:01:20 webitalia postfix/smtpd[32732]: warning: unknown[212.70.149.84]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:20 webitalia postfix/smtpd[31630]: warning: unknown[212.70.149.53]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:20 webitalia postfix/smtpd[31630]: disconnect from unknown[212.70.149.53] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:21 webitalia postfix/smtpd[32732]: disconnect from unknown[212.70.149.84] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:25 webitalia postfix/smtpd[31891]: warning: unknown[212.70.149.5]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:25 webitalia postfix/smtpd[1307]: warning: unknown[212.70.149.21]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Oct 18 00:01:25 webitalia postfix/smtpd[31891]: disconnect from unknown[212.70.149.5] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:25 webitalia postfix/smtpd[1307]: disconnect from unknown[212.70.149.21] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Oct 18 00:01:35 webitalia postfix/smtpd[31630]: connect from unknown[212.70.149.53] Oct 18 00:01:35 webitalia postfix/smtpd[32732]: connect from unknown[212.70.149.84] :
Code: [email protected]:~# hostname webitalia.it [email protected]:~# hostname -f webitalia.it [email protected]:~# less /etc/hosts # Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in /etc/cloud/templates/hosts.debian.tmpl # b.) change or remove the value of 'manage_etc_hosts' in # /etc/cloud/cloud.cfg or cloud-config from user-data # 78.46.185.161 webitalia.it 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts /etc/hosts (END) [email protected]:~# less /etc/hostname webitalia.it /etc/hostname (END) [email protected]:~# less /etc/mailname webitalia.it /etc/mailname (END) I am sending you the images of the settings on the server, and of the mx record configuration that I had made before the update
Wrong hostname and FQDN cause the e-mail server configuration that ISPConfig does to fail. This is explained in the e-mail setup tutorial, link in my signature. Installing a new system from the beginning carefully following the Perfect Server Guide and the e-mail setup tutorial in my signature would get you a working system. If that is not possible, fix the hostname and hostname -f outputs, see Perfect Server Guide. While you are at it, check everything the Perfect Server Guide tells you to do. Then force reconfigure services, that might get you a working e-mail system.
I cannot reinstall the whole system, now I have been able to do this if it is of any use .. Code: [email protected]:~# hostname -f incoming.webitalia.it [email protected]:~# hostname incoming.webitalia.it then later I also modified line 11 in the main.cf file nothing has changed... Code: [email protected]:~# less /etc/postfix/main.cf # TLS parameters smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination myhostname = incoming.webitalia.it alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases myorigin = /etc/mailname mydestination = webitalia.it, localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all html_directory = /usr/share/doc/postfix/html virtual_alias_domains = proxy:mysql:/etc/postfix/mysql-virtual_alias_domains.cf virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /var/vmail virtual_uid_maps = proxy:mysql:/etc/postfix/mysql-virtual_uids.cf virtual_gid_maps = proxy:mysql:/etc/postfix/mysql-virtual_gids.cf sender_bcc_maps = proxy:mysql:/etc/postfix/mysql-virtual_outgoing_bcc.cf smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_restriction_classes = greylisting greylisting = check_policy_service inet:127.0.0.1:10023 smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, reject_unlisted_recipient, check_recipient_access proxy:mysql:/etc/postfix/mysql-verify_recipients.cf, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_recipient_access proxy:mysql:/etc/postfix/mysql-virtual_recipient.cf, check_recipient_access mysql:/etc/postfix/mysql-virtual_policy_greylist.cf, check_policy_service unix:private/quota-status smtpd_tls_security_level = may transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf relay_domains = proxy:mysql:/etc/postfix/mysql-virtual_relaydomains.cf relay_recipient_maps = proxy:mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-virtual_sender_login_maps.cf proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $sender_bcc_maps $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $virtual_uid_maps $virtual_gid_maps $smtpd_client_restrictions $smtpd_sender_restrictions $smtpd_recipient_restrictions : now I can send the mail ..
what is this ip in your hosts file? if this is the same server that's doing your mail, ie incoming.webitalia.it, nslookup shows that ip as being 80.83.161.22 is it the same server? a different server? does it have multiple ip's? /etc/hostname should contain 'incoming' /etc/hosts should contain '78.46.185.161 incoming.webitalia.it incoming' ** /etc/mailname should contain 'incoming.webitalia.it' ** assuming 78.46.185.161 is the servers local ip, and 80.83.161.22 is an assigned static public ip.
The hostname output is still not what the Perfect Server Guide in chapter 4 Configure the Hostname shows. Did you actually follow that guide? How did you install your system? https://www.howtoforge.com/perfect-...cot-ispconfig-3-1/#-configure-thenbsphostname
I confirm that 78.46.185.161 the ip of my local server.. Code: login as: [email protected]'s password: Linux incoming.webitalia.it 4.19.0-11-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 20 11:03:47 2020 from 87.21.26.138 [email protected]:~# less /etc/hostname incoming.webitalia.it /etc/hostname (END) ##################################################################################################### login as: root [email protected]'s password: Linux incoming.webitalia.it 4.19.0-11-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 20 11:41:47 2020 from 87.21.26.138 [email protected]:~# /etc/hosts should -bash: /etc/hosts: Permission denied [email protected]:~# less /etc/hosts should # Your system has configured 'manage_etc_hosts' as True. # As a result, if you wish for changes to this file to persist # then you will need to either # a.) make changes to the master file in /etc/cloud/templates/hosts.debian.tmpl # b.) change or remove the value of 'manage_etc_hosts' in # /etc/cloud/cloud.cfg or cloud-config from user-data # 78.46.185.161 webitalia.it 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts /etc/hosts (file 1 of 2) (END) - Next: should ##############################################################àà login as: root [email protected]'s password: Linux incoming.webitalia.it 4.19.0-11-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Oct 20 11:44:10 2020 from 87.21.26.138 [email protected]:~# /etc/mailname -bash: /etc/mailname: Permission denied [email protected]:~# less /etc/mailname webitalia.it /etc/mailname (END)
I followed this guide https://www.howtoforge.com/tutorial/ispconfig-install-script-debian/ I missed a single step during the installation and it is the following "Due to a bug in dbconfig-common we can't automate PHPMyAdmin installation for now, so hit 'enter' and on the next question select 'NO' (attention because the default is 'YES'). " unfortunately in that step I ran "yes"
The install script tutorial you linked to works on Debian version 7 and 8. There is a version of that tutorial meant for Debian 9. But if you want current Debian version 10 there is the Perfect Server Guide. So, what version of debian do you have now? Code: lsb_release -a
That script is not maintained by the ISPConfig devs but imo it's better to install manually following the perfect server guide for your OS, so you know what is installed and why. So please go through that now, as it is not correctly set up right now.
actually it's version 10 so the only solution is to reinstall everything ?? Code: [email protected]:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster