After i setup ispconfig on my server i can't receive/send mails. All of my mailboxes doesnt work. I have found following log in mail que: -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 84F6D7E307 1177 Tue Apr 17 15:04:23 [email protected] (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused) [email protected] 607C87E308 5839 Tue Apr 17 14:49:55 [email protected] (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) [email protected] 6D19C7FE3F 5816 Tue Apr 17 14:49:55 [email protected] (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) [email protected] [email protected] 79DEA7FE40 5839 Tue Apr 17 14:49:55 [email protected] (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) [email protected] 7507B7FD30 5816 Tue Apr 17 14:49:55 [email protected] (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) [email protected] [email protected] 7C7A67FE41 5839 Tue Apr 17 14:49:55 [email protected] (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) [email protected] -- 29 Kbytes in 6 Requests. I checked hostname and it's correct. Also i stopped clamav and amavis but still not working.
The error means that amavis is stopped. Mail system will not work when you stop amavis. Clamav should be started as well.
Which Linux distribution and version? It might be that something in postfix master.cf is missing. You can try to do an ispconfig update with reconfigure services = yes to let the ISPConfig installer fix it.
root@xx:~# hostnamectl Static hostname: xx.xx.xx Icon name: computer-vm Chassis: vm Machine ID: xxx Boot ID: xxxx Virtualization: kvm Operating System: Ubuntu 16.04.4 LTS Kernel: Linux 4.4.0-119-generic Architecture: x86-64 Can i lose data if i update ispconfig? And which command need i use?
I have updated it with this way buts still not working; root@xx:/tmp/ispconfig3_install/install# php -q update.php -------------------------------------------------------------------------------- _____ ___________ _____ __ _ ____ |_ _/ ___| ___ \ / __ \ / _(_) /__ \ | | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ _/ / | | `--. \ __/ | | / _ \| '_ \| _| |/ _` | |_ | _| |_/\__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \ \___/\____/\_| \____/\___/|_| |_|_| |_|\__, | \____/ __/ | |___/ -------------------------------------------------------------------------------- >> Update Operating System: Ubuntu 16.04.4 LTS (Xenial Xerus) This application will update ISPConfig 3 on your server. Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: yes Creating backup of "/usr/local/ispconfig" directory... Creating backup of "/etc" directory... Checking ISPConfig database .. OK Starting incremental database update. Loading SQL patch file: /tmp/ispconfig3_install/install/sql/incremental/upd_dev_collection.sql Reconfigure Permissions in master database? (yes,no) [no]: yes Service 'xmpp_server' has not been detected (strongly recommended, currently enabled) do you want to disable it? (yes,no) [yes]: yes Reconfigure Services? (yes,no,selected) [yes]: yes Configuring Postfix Configuring Dovecot Configuring Spamassassin Configuring Getmail Configuring BIND [INFO] haveged not detected - DNSSEC can fail Configuring Pureftpd Configuring nginx Configuring Apps vhost Configuring Jailkit Configuring Ubuntu Firewall Configuring Database Updating ISPConfig Reconfigure Crontab? (yes,no) [yes]: yes Updating Crontab Restarting services ... Update finished.
Also i can't find 10026 and 10025 ports when i run netstat - tap command. root@xx:# netstat -tulpn | grep master tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 12332/master tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 12332/master tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN 12332/master tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 12332/master tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 12332/master tcp6 0 0 :::25 :::* LISTEN 12332/master tcp6 0 0 :::587 :::* LISTEN 12332/master tcp6 0 0 :::465 :::* LISTEN 12332/master Is it normal?
Code: root@server1:~# netstat -tap | grep 100 tcp 0 0 localhost:10023 0.0.0.0:* LISTEN 452/postgrey --pidf tcp 0 0 localhost:10024 0.0.0.0:* LISTEN 2927/amavisd-new (m tcp 0 0 localhost:10025 0.0.0.0:* LISTEN 2896/master tcp 0 0 localhost:10026 0.0.0.0:* LISTEN 2927/amavisd-new (m tcp 0 0 localhost:10027 0.0.0.0:* LISTEN 2896/master tcp 0 0 192.168.0.100:domain 0.0.0.0:* LISTEN 3094/named tcp 56 0 localhost:50032 localhost:10025 CLOSE_WAIT 2931/amavisd-new (c tcp 56 0 localhost:36912 localhost:10025 CLOSE_WAIT 2930/amavisd-new (c tcp6 0 0 localhost:10023 [::]:* LISTEN 452/postgrey --pidf tcp6 0 0 localhost:10024 [::]:* LISTEN 2927/amavisd-new (m tcp6 0 0 localhost:10026 [::]:* LISTEN 2927/amavisd-new (m
If you can't send you should check your postfix. dpkg-reconfigure postfix Can you access it with "telnet www.example.com 25"? If you can't receive you should check Dovecot logs.
Having a similar issue with ispconfig3 both in ubuntu 18.04 and debian 8 which is only working as a mailserver separate in a different location than the webserver. The DNS to mail.domain.tld was pointed to the specific IP of the ispconfig instance serving as a mailserver. Cannot send emails. /var/log/mail.log shows: Code: status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused) When checked whether 10026 is running as @till advised above at https://www.howtoforge.com/communit...6-connection-refused.78850/reply?quote=373278 , cannot find any instance: Code: # netstat -tap | grep 100 tcp 0 0 localhost:10025 0.0.0.0:* LISTEN 543/master tcp 0 0 localhost:10027 0.0.0.0:* LISTEN 543/master amavis and clamd appears to be running: Code: # ps aux | grep amavis postfix 30918 0.0 0.8 100568 8572 ? S 20:57 0:00 smtp -n amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o smtp_bind_address= # ps aux | grep clamd clamav 121 0.0 13.9 978292 146348 ? Ssl 08:46 0:58 /usr/sbin/clamd --foreground=true Thanks to @SamTzu for his post (https://www.howtoforge.com/community/threads/amavis-10026-connection-refused.82202/#post-389727) that updating ISPconfig manually (php -q update.php) did the trick. Thanks to @till and @SamTzu .
Solved: $ chown amavis:amavis /var/lib/dkim/ -R My situation: System: Debian 11 Bullseye Using iRedMail to set up mail server Adding second mail.domain2 Setting up DKIM signing for the new domain After setup, needed to $ chown amavis:amavis /var/lib/dkim/ -R (Otherwise Connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
Hi, this was my SOLUTION I had just installed a Lubuntu server 20.04 with ISPconfig 3.2.8p1 and (beside I followed slavishly the perfect server guide) I couldn't send and receive mails. After having hit my head up against the wall a few times trying to figure this out, I followed Till suggestion (#4): "ispconfig update with reconfigure services = yes" and it worked. Then I discovered that my previous master.cf file was exactly missing the amavis part. Code: 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 smtpd_end_of_data_restrictions= -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 -o address_verify_virtual_transport=$virtual_transport -o address_verify_transport_maps=$transport_maps 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 smtpd_end_of_data_restrictions= -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 -o address_verify_virtual_transport=$virtual_transport -o address_verify_transport_maps=$transport_maps -o milter_default_action=accept -o milter_macro_daemon_name=ORIGINATING https://help.ubuntu.com/community/PostfixAmavisNew After the ispconfig update, the postfix/master.cf was complete and everything worked. So, just to say thank you and maybe that could be useful for someone else...