1
24.7 Production Series / Postfix/rspamd
« on: November 11, 2024, 07:35:56 pm »
Hello,
I have configured Postfix on OPNsense 24.7.8-amd64 as a smarthost for my internal network devices. All devices send their mails to Postfix and via smarthost outside.
My config:
Postfix - General:
- Listen ip: all
- ListenPort: 25
- Trusted Networks: 192……../24
- TLS Server compatibility: intermediate
- TLS client compatibility: intermediate
- TLS wrapper mode: yes
- Smart Host: smtp.providername.de:465
- Server certificate: mycertificate
- RootCA: myrootCA
- Smtp client security: encrypt
- Smarthost: smtp.servername.de:465
- EnableSMTP Authentication: yes
- Authentication Username: user@domain.de
- Authentication Password: UserPW
Postfix - AntiSpam:
Enable Rspamd integration: yes
Milter default action: accept
One day I noticed that my E-mails were no longer passing through the smarthost. The postfix log shows:
Warning postfix/smtpd warning: milter unix:/var/run/rspamd/milter.sock: read error in initial handshake
Warning postfix/smtpd warning: milter unix:/var/run/rspamd/milter.sock: can't read SMFIC_OPTNEG reply packet header: Operation timed out
Warning postfix/cleanup warning: milter unix:/var/run/rspamd/milter.sock: can't read SMFIC_BODYEOB reply packet header: Operation timed out
I tried to connect rspamd: http://OPNSenseIP:11334 but it failed with a timeout-error.
I then unchecked „Enable Rspamd Integration“ and the smarthost worked fine again.
It looks weird to me. Any help would be appreciated.
I have configured Postfix on OPNsense 24.7.8-amd64 as a smarthost for my internal network devices. All devices send their mails to Postfix and via smarthost outside.
My config:
Postfix - General:
- Listen ip: all
- ListenPort: 25
- Trusted Networks: 192……../24
- TLS Server compatibility: intermediate
- TLS client compatibility: intermediate
- TLS wrapper mode: yes
- Smart Host: smtp.providername.de:465
- Server certificate: mycertificate
- RootCA: myrootCA
- Smtp client security: encrypt
- Smarthost: smtp.servername.de:465
- EnableSMTP Authentication: yes
- Authentication Username: user@domain.de
- Authentication Password: UserPW
Postfix - AntiSpam:
Enable Rspamd integration: yes
Milter default action: accept
One day I noticed that my E-mails were no longer passing through the smarthost. The postfix log shows:
Warning postfix/smtpd warning: milter unix:/var/run/rspamd/milter.sock: read error in initial handshake
Warning postfix/smtpd warning: milter unix:/var/run/rspamd/milter.sock: can't read SMFIC_OPTNEG reply packet header: Operation timed out
Warning postfix/cleanup warning: milter unix:/var/run/rspamd/milter.sock: can't read SMFIC_BODYEOB reply packet header: Operation timed out
I tried to connect rspamd: http://OPNSenseIP:11334 but it failed with a timeout-error.
I then unchecked „Enable Rspamd Integration“ and the smarthost worked fine again.
It looks weird to me. Any help would be appreciated.