Hello, I have a clean ISPConfig installation in the latest version. The problem is that I can't send or receive anything via webmail. Loading after attempting to send an email lasts indefinitely and fails. I cannot receive e-mails either. Can anyone help me? mail.log Code: Nov 22 17:38:18 host postfix/smtps/smtpd[1748]: SSL_accept error from unknown[92.118.38.38]: -1 Nov 22 17:38:18 host postfix/smtps/smtpd[1748]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332: Nov 22 17:38:18 host postfix/smtps/smtpd[1748]: lost connection after CONNECT from unknown[92.118.38.38] Nov 22 17:38:18 host postfix/smtps/smtpd[1748]: disconnect from unknown[92.118.38.38] commands=0/0 Nov 22 17:38:22 host postfix/smtps/smtpd[1845]: warning: hostname ip-38-38.ZervDNS does not resolve to address 92.118.38.38: Name or service not known Nov 22 17:38:22 host postfix/smtps/smtpd[1845]: connect from unknown[92.118.38.38] Nov 22 17:38:53 host postfix/smtps/smtpd[1845]: SSL_accept error from unknown[92.118.38.38]: -1 Nov 22 17:38:53 host postfix/smtps/smtpd[1845]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332: Nov 22 17:38:53 host postfix/smtps/smtpd[1845]: lost connection after CONNECT from unknown[92.118.38.38] Nov 22 17:38:53 host postfix/smtps/smtpd[1845]: disconnect from unknown[92.118.38.38] commands=0/0 Nov 22 17:38:57 host postfix/smtps/smtpd[3442]: warning: hostname ip-38-38.ZervDNS does not resolve to address 92.118.38.38: Name or service not known Nov 22 17:38:57 host postfix/smtps/smtpd[3442]: connect from unknown[92.118.38.38] mail.err Code: Nov 22 16:10:13 host amavis[10014]: (10014-01) (!!)AV: ALL VIRUS SCANNERS FAILED
It works with another client? Which webmail are you using (version?). What are in the logs of the webmailer? Which settings to connect to your server? Looks like you are not connecting from localhost, but from your IP, which has no rDNS? (or your dns does not work).
How I can check my version of used settings? Roundcube Webmail Version 1.3.6 RoundCube error log: Code: [22-Nov-2019 16:36:54 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 16:36:54 +0100]: <7lmk8vkv> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574436718571&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 16:39:13 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 16:39:13 +0100]: <7lmk8vkv> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574436857598&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 17:16:31 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 17:16:31 +0100]: <lccunjt2> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574439095741&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 17:22:28 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 17:22:28 +0100]: <lccunjt2> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574439452388&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 17:28:03 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 17:28:03 +0100]: <lccunjt2> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574439787632&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 17:31:50 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 17:31:50 +0100]: <lccunjt2> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574440014126&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 23:24:01 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 23:24:01 +0100]: <mt3djekc> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574461145496&_lang=undefined&_framed=1&_action=send) [22-Nov-2019 23:28:42 Europe/Berlin] ERROR: Invalid response code received from server (-1) [22-Nov-2019 23:28:42 +0100]: <mt3djekc> SMTP Error: Connection failed: Invalid response code received from server in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1667 (POST /webmail/?_task=mail&_unlock=loading1574461426677&_lang=undefined&_framed=1&_action=send)
Basic check for mail server is port 25, whether it is opened by your server and ISP, then only you troubleshoot other matters. Based on OP I can see that you might have SSL / TLS problems for your web server, so how did you set it up and whether you have set it up properly, probably may need to be checked.
I noticed this also yesterday and today I intend to perform SSL reconfiguration Code: # # 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 - y - - 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 - y - - 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 bounce unix - - y - 0 bounce defer unix - - y - 0 bounce trace unix - - y - 0 bounce verify unix - - y - 1 verify flush unix n - y 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - y - - smtp relay unix - - y - - smtp -o syslog_name=postfix/$service_name # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - y - - showq error unix - - y - - error retry unix - - y - - error discard unix - - y - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - y - - lmtp anvil unix - - y - 1 anvil scache unix - - y - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender} # # ==================================================================== # # Recent Cyrus versions can use the existing "lmtp" master.cf entry. # # Specify in cyrus.conf: # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4 # # Specify in main.cf one or more of the following: # mailbox_transport = lmtp:inet:localhost # virtual_transport = lmtp:inet:localhost # # ==================================================================== # # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 # #cyrus unix - n n - - pipe # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} # # ==================================================================== # Old example of delivery via Cyrus. # #old-cyrus unix - n n - - pipe # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} # # ==================================================================== # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o smtp_bind_address= 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10027 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtp_send_xforward_command=yes -o milter_default_action=accept -o milter_macro_daemon_name=ORIGINATING -o disable_dns_lookups=yes
You wrote that webmail does not work, but I suspect mail does not work at all. Compare the master.cf file to the instructions in ISPConfig Perfect Server Guide. At least errors are that you have commented out submission inet and smtps inet lines.
I followed the advice above and now I am sending messages from a webmail mailbox. They reach the addressee after a few minutes. Can this time be shortened? In addition, I noticed that there is nothing going to write to the mailbox address because the messages are not coming, GMAIL informs that it could not be sent. E-Mail content: Code: This is the mail system at host theszymek.ga. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <[email protected]>: unknown user: "admin" ---------- Forwarded message ---------- From: "Szymek_ ." <[email protected]> To: [email protected] Cc: Bcc: Date: Sat, 23 Nov 2019 21:42:47 +0100 Subject: ***UNCHECKED*** ReRe TEST2
Have you configured a mail user named [email protected]? Yes. But not with the information you provided. Send a message and post the header of the mail to see which server is the bottleneck. Since your server is new, it could be you are greylisted, which means that mails are delayed to prevent spam.
Either you missed to add the mailbox as @Steini86 suggested or you are using a wrong server hostname or mailname, the server hostname or mailname must be a subdomain as shown in the install guides, if you would have used theszymek.ga as server hostname instead of e.g. server1.theszymek.ga, then you will not be able to receive any emails.
I change line in main.cf from "mydestination = [email protected], localhost, localhost.localdomain" to "mydestination = localhost, localhost.localdomain" and all works fine now Code: Delivered-To: [email protected] Received: by 2002:ac8:1001:0:0:0:0:0 with SMTP id z1csp1242198qti; Sat, 23 Nov 2019 15:09:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwaBJHHPL2HaW5gxY/PIoLf9LLORZpCyt4GjL/J4ISKMxFNl6l7E2UPHtLT6DdakxctoLtT X-Received: by 2002:adf:e5ce:: with SMTP id a14mr3147338wrn.214.1574550541386; Sat, 23 Nov 2019 15:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574550541; cv=none; d=google.com; s=arc-20160816; b=WDRbmev2b6roDWU9cIqoRWKe+bSQ3iGC3pevkamLnGZJ7kSyzC700EaCv5CodFszeb UMPTbuV5enwRXSzDiR2PUiOANwYkjaWnZOervu3/hnn1ufk9GF15iGsEPjLZV9RzSJTi hZkknIVlVorcV09P0q8+Vfg2cUTH39UwqkGa4zLaRIMGColhjRvcl6cNBKd55EA9HPQq iv+TVfecv0MTKfH3GCPlfm0vtta/mawxiWbrShuSnRgyLWhCSJI+luEGpwF0q7a6NUB6 DldbbwO90oBu3IsLQ59NlgW2x4mfSc42TNV8bQ0HKDPi7yh9MQ8sIAK7AuVBsumD+2fj FkzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:subject:to:from:date :content-transfer-encoding:mime-version; bh=DL3qya5E2ouby6wMKEvy19wBuvVlEKsm6wPFYcg7Ig0=; b=UEOijB1U59FoSIIU6aTqTGaOf6Cu1ASNALUC1iqM7wleyJu4UrgjfDph/tGf5SBQZX lfDg18djwk1zCWYsCol0QKCoHBFSffxR/DCgVLWZGTU7d3quvNMxPk7rPnt+fcLD4LZa iKLs96CAtY3UI01iJervHOH92zrpaeGWnijoTPIuRVlyjsBEgsurX4v/dqusyyoZDdSQ Y2WwE6HwHsSTOEpKTMBzMyIYe7O1W7mBanILfR8dej0PgWCJX6CZA7plRmYELro5+OhA GiU68BZ+s0AB/bzX5hvUrcyELYLGt9611rVm7Bzxwp26PGpjG7snvHWPiY+tBliIzIB7 EH8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of [email protected] designates 80.211.240.30 as permitted sender) [email protected] Return-Path: <[email protected]> Received: from theszymek.ga ([80.211.240.30]) by mx.google.com with ESMTPS id v10si2269821wrm.506.2019.11.23.15.09.00 for <[email protected]> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Nov 2019 15:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of [email protected] designates 80.211.240.30 as permitted sender) client-ip=80.211.240.30; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 80.211.240.30 as permitted sender) [email protected] Received: from localhost (localhost [127.0.0.1]) by theszymek.ga (Postfix) with ESMTP id ACF635FE5F for <[email protected]>; Sun, 24 Nov 2019 00:08:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theszymek.ga Received: from theszymek.ga ([127.0.0.1]) by localhost (theszymek.ga [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zMyI-fbJ9Ekg for <[email protected]>; Sun, 24 Nov 2019 00:07:31 +0100 (CET) Received: from 80.211.240.30 (localhost [IPv6:::1]) (Authenticated sender: [email protected]) by theszymek.ga (Postfix) with ESMTPA id 0F5AF60CEC for <[email protected]>; Sat, 23 Nov 2019 23:54:50 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 23 Nov 2019 23:54:50 +0100 From: [email protected] To: [email protected] Subject: RERE Message-ID: <[email protected]> X-Sender: [email protected] User-Agent: Roundcube Webmail/1.3.6 WebMail E-Mail from WebMail to my private mailbox on gmail. The last problem is the long delivery time and the fact that they go to the spam inbox.
Reading full headers of an e-mail shows what has happened to the e-mail when it travels from sending e-mail server to the destination. The e-mail client can show the full headers, for example Thunderbird has option for this in View menu or using hot key Control-U. Google has tool for analyzing e-mail headers. That tool seems to be available in several languages, there is language menu at bottom of page. MXToolbox.com has an Email Header Analyzer. Use Internet Search Engines with "analyze e-mail headers" to find more information and tools.
From your logs: You have sent the mail to your server at 23:54 13 minutes later it is transferred to amavis for virus/spam scanning. (much too long, seems to be the first problem) Amavis needs 1:30min to scan the mail and give it back to postfix (pretty long) The mail successfully is delivered to Google 2 seconds later (like it should be) The problems seems to be amavis. It is either misconfigured, a software hangs (probably virus scanner -> clamd?) or your server is not powerful enough for virus scanning. What does the syslog/mail.log tell you at these times? (23:54:50 +0100 and 00:07:31 +0100)
A couple common things to check are if you're out of memory, if your dns resolution is broken, and simply the amount of mail being processed (eg. if your server is getting abused be spammers currently).