Why postfix wants to port 1024

Hi@all,

since today kopano refuses again his service. Better said: The server is running but no mails are delivered.

I find several errors in the logfile:

Dec 12 12:30:04 saturn kopano-monitor[428]: Logon to file:///var/run/kopano/server.sock: Remote side closed connection.
Dec 12 12:30:04 saturn kopano-monitor[428]: HrLogon server "default:" user "SYSTEM": network error
Dec 12 12:30:04 saturn kopano-monitor[428]: Unable to open an admin session: network error (80040115)

==> syslog <==
Dec 12 12:30:05 saturn kopano-search[424]: 2019-12-12 12:30:05,072 - search - ERROR - Traceback (most recent call last):
Dec 12 12:30:05 saturn kopano-search[424]:   File "/usr/lib/python3/dist-packages/kopano/log.py", line 103, in log_exc
Dec 12 12:30:05 saturn kopano-search[424]:     try: yield
Dec 12 12:30:05 saturn kopano-search[424]:   File "/usr/lib/python3/dist-packages/kopano_search/__init__.py", line 393, in incremental_sync
Dec 12 12:30:05 saturn kopano-search[424]:     new_state = self.server.sync(importer, self.state, log=self.log)
Dec 12 12:30:05 saturn kopano-search[424]:   File "/usr/lib/python3/dist-packages/kopano/server.py", line 866, in sync
Dec 12 12:30:05 saturn kopano-search[424]:     return _ics.sync(self, self.mapistore, importer, state, max_changes, window=window, begin=begin, end=end, stats=stats)
Dec 12 12:30:05 saturn kopano-search[424]:   File "/usr/lib/python3/dist-packages/kopano/ics.py", line 253, in sync
Dec 12 12:30:05 saturn kopano-search[424]:     exporter.Config(stream, flags, importer, restriction, None, None, 0)
Dec 12 12:30:05 saturn kopano-search[424]:   File "/usr/lib/python3/dist-packages/MAPICore.py", line 1906, in Config
Dec 12 12:30:05 saturn kopano-search[424]:     return _MAPICore.IExchangeExportChanges_Config(self, lpStream, ulFlags, lpUnk, lpRestriction, lpIncludeProps, lpExcludeProps, ulBufferSize)
Dec 12 12:30:05 saturn kopano-search[424]: MAPI.Struct.MAPIErrorNetworkError: MAPI error 80040115 (MAPI_E_NETWORK_ERROR)
Dec 12 12:30:05 saturn kopano-server[1344]: Error in my_thread_global_end(): 14 threads didn't exit

==> mail.warn <==
Dec 12 12:33:59 saturn kopano-gateway[677]: Client disconnected

Dec 12 12:32:52 saturn postfix/error[17364]: 555573000EE: to=<andreas@stedry.de>, relay=none, delay=9125, delays=9125/0.11/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

root@saturn:/etc/kopano# netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       Benutzer   Inode      PID/Program name    
tcp        0      0 0.0.0.0:465             0.0.0.0:*               LISTEN      0          57550      12263/master        
tcp        0      0 127.0.0.1:2003          0.0.0.0:*               LISTEN      0          16766      682/kopano-dagent   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          18477      698/sshd            
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      0          57547      12263/master        
tcp        0      0 127.0.0.1:8090          0.0.0.0:*               LISTEN      0          87541      17223/python2.7     
tcp        0      0 0.0.0.0:8095            0.0.0.0:*               LISTEN      0          21459      1433/python2.7      
tcp        0      0 0.0.0.0:32767           0.0.0.0:*               LISTEN      0          16715      690/rpc.mountd      
tcp        0      0 0.0.0.0:32768           0.0.0.0:*               LISTEN      0          19472      -                   
tcp        0      0 0.0.0.0:544             0.0.0.0:*               LISTEN      0          15491      426/inetd           
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      0          19457      -                   
tcp        0      0 0.0.0.0:5666            0.0.0.0:*               LISTEN      111        76949      14616/nrpe          
tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN      0          57628      12263/master        
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      114        21849      1016/mysqld         
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      0          57553      12263/master        
tcp        0      0 0.0.0.0:9102            0.0.0.0:*               LISTEN      0          19927      754/bareos-fd       
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          14622      399/rpcbind         
tcp6       0      0 :::8080                 :::*                    LISTEN      0          16759      678/kopano-ical     
tcp6       0      0 :::80                   :::*                    LISTEN      0          87712      17313/apache2       
tcp6       0      0 :::22                   :::*                    LISTEN      0          18479      698/sshd            
tcp6       0      0 :::443                  :::*                    LISTEN      0          87708      17313/apache2       
tcp6       0      0 :::8095                 :::*                    LISTEN      0          21458      1433/python2.7      
tcp6       0      0 :::32767                :::*                    LISTEN      0          16719      690/rpc.mountd      
tcp6       0      0 :::32768                :::*                    LISTEN      0          19474      -                   
tcp6       0      0 :::2049                 :::*                    LISTEN      0          19469      -                   
tcp6       0      0 :::993                  :::*                    LISTEN      0          18366      677/kopano-gateway  
tcp6       0      0 :::5666                 :::*                    LISTEN      111        76950      14616/nrpe          
tcp6       0      0 :::236                  :::*                    LISTEN      0          79336      15630/kopano-server 
tcp6       0      0 :::237                  :::*                    LISTEN      0          79341      15630/kopano-server 
tcp6       0      0 :::6670                 :::*                    LISTEN      0          87439      17164/python2.7     
tcp6       0      0 :::110                  :::*                    LISTEN      0          18356      677/kopano-gateway  
tcp6       0      0 :::143                  :::*                    LISTEN      0          18361      677/kopano-gateway  
tcp6       0      0 :::111                  :::*                    LISTEN      0          14625      399/rpcbind         
udp        0      0 0.0.0.0:32767           0.0.0.0:*                           0          16713      690/rpc.mountd      
udp        0      0 0.0.0.0:32768           0.0.0.0:*                           0          19471      -                   
udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          14620      399/rpcbind         
udp        0      0 192.168.1.6:123         0.0.0.0:*                           0          23466      1573/ntpd           
udp        0      0 127.0.0.1:123           0.0.0.0:*                           0          23464      1573/ntpd           
udp        0      0 0.0.0.0:123             0.0.0.0:*                           0          23460      1573/ntpd           
udp        0      0 0.0.0.0:999             0.0.0.0:*                           0          14621      399/rpcbind         
udp        0      0 0.0.0.0:2049            0.0.0.0:*                           0          19468      -                   
udp6       0      0 :::32767                :::*                                0          16717      690/rpc.mountd      
udp6       0      0 :::32768                :::*                                0          19473      -                   
udp6       0      0 :::111                  :::*                                0          14623      399/rpcbind         
udp6       0      0 fe80::5054:ff:fe56::123 :::*                                0          23470      1573/ntpd           
udp6       0      0 ::1:123                 :::*                                0          23468      1573/ntpd           
udp6       0      0 :::123                  :::*                                0          23457      1573/ntpd           
udp6       0      0 :::999                  :::*                                0          14624      399/rpcbind         
udp6       0      0 :::2049                 :::*                                0          19470      - 

The following topic explains how to start Amavis again:

ok, the spam filter seems to be the problem:

root@saturn:/etc/spamassassin# systemctl restart spamassassin.service
Job for spamassassin.service failed because the control process exited with error code.
See "systemctl status spamassassin.service" and "journalctl -xe" for details.
root@saturn:/etc/spamassassin# journalctl -xe
Journal file /var/log/journal/8b94b1b556164ceca7b47d1074e012fa/system@8cf76bbc01174a0ebdf3dc8128f1476f-0000000000408702-000596bc36db06b9.journal is truncated, ignoring file.
Dez 12 13:33:48 saturn systemd[1]: spamassassin.service: Control process exited, code=exited status=255
Dez 12 13:33:48 saturn systemd[1]: Failed to start Perl-based spam filter using text analysis.
-- Subject: Unit spamassassin.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit spamassassin.service has failed.
-- 
-- The result is failed.
Dez 12 13:33:48 saturn systemd[1]: spamassassin.service: Unit entered failed state.
Dez 12 13:33:48 saturn systemd[1]: spamassassin.service: Failed with result 'exit-code'.
Dez 12 13:33:48 saturn systemd[1]: spamassassin.service: Service hold-off time over, scheduling restart.
Dez 12 13:33:48 saturn systemd[1]: Stopped Perl-based spam filter using text analysis.
-- Subject: Unit spamassassin.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit spamassassin.service has finished shutting down.
Dez 12 13:33:48 saturn systemd[1]: Starting Perl-based spam filter using text analysis...
-- Subject: Unit spamassassin.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit spamassassin.service has begun starting up.
Dez 12 13:33:48 saturn spamd[16871]: logger: removing stderr method
Dez 12 13:33:48 saturn spamd[16873]: config: no rules were found! Do you need to run 'sa-update'?
Dez 12 13:33:49 saturn spamd[16871]: child process [16873] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 3034.
Dez 12 13:33:49 saturn systemd[1]: spamassassin.service: Control process exited, code=exited status=255
Dez 12 13:33:49 saturn systemd[1]: Failed to start Perl-based spam filter using text analysis.
-- Subject: Unit spamassassin.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit spamassassin.service has failed.
-- 
-- The result is failed.
Dez 12 13:33:49 saturn systemd[1]: spamassassin.service: Unit entered failed state.
Dez 12 13:33:49 saturn systemd[1]: spamassassin.service: Failed with result 'exit-code'.
Dez 12 13:33:49 saturn systemd[1]: spamassassin.service: Service hold-off time over, scheduling restart.
Dez 12 13:33:49 saturn systemd[1]: Stopped Perl-based spam filter using text analysis.
-- Subject: Unit spamassassin.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit spamassassin.service has finished shutting down.
Dez 12 13:33:49 saturn systemd[1]: Starting Perl-based spam filter using text analysis...
-- Subject: Unit spamassassin.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit spamassassin.service has begun starting up.
Dez 12 13:33:50 saturn spamd[16875]: logger: removing stderr method
Dez 12 13:33:50 saturn spamd[16877]: config: no rules were found! Do you need to run 'sa-update'?

I try:

root@saturn:/etc/spamassassin# sa-update 
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed

how do I get this started again?

Mastodon