You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
... I have understood that answers are voluntary and community-driven, and not commercial support.
... I have verified that my issue has not been already answered in the past. I also checked previous issues.
Description
Rspamd rejects external mails that should be forwarded due to a forward rule created in SoGo. The local copy passes cleanly.
The main reason for the reject is "FREEMAIL_POLICY_FAILURE” with a score of 16. Since the IP 172.22.1.250 reported by rspamd belongs to sieve (dovecot container) it should pass.
I've given a more detailed description [here].(https://community.mailcow.email/d/4096-forward-gets-rejected)
Maybe `!SIEVE_HOST` should be part of at least all rspamd rules containing `!WHITELISTED_FWD_HOST`.
Logs:
postfix-mailcow-1 | 2024-10-09T12:53:47.137976953Z Oct 9 14:53:47 a3865add0dfb postfix/postscreen[971]: CONNECT from [FORWARDING_HOST_IP]:49105 to [172.19.199.6]:25
postfix-mailcow-1 | 2024-10-09T12:53:47.169354667Z Oct 9 14:53:47 a3865add0dfb whitelist_forwardinghosts: Look up FORWARDING_HOST_IP on whitelist, result 200 PERMIT
postfix-mailcow-1 | 2024-10-09T12:53:47.169395615Z Oct 9 14:53:47 a3865add0dfb postfix/postscreen[971]: ALLOWLISTED [FORWARDING_HOST_IP]:49105
postfix-mailcow-1 | 2024-10-09T12:53:47.192235005Z Oct 9 14:53:47 a3865add0dfb postfix/smtpd[980]: connect from mail-relay.DOMAIN.DE[FORWARDING_HOST_IP]
postfix-mailcow-1 | 2024-10-09T12:53:47.205430474Z Oct 9 14:53:47 a3865add0dfb postfix/smtpd[980]: Anonymous TLS connection established from mail-relay.DOMAIN.DE[FORWARDING_HOST_IP]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)
postfix-mailcow-1 | 2024-10-09T12:53:47.291599140Z Oct 9 14:53:47 a3865add0dfb postfix/smtpd[980]: 46C138240A34: client=mail-relay.DOMAIN.DE[FORWARDING_HOST_IP]
postfix-mailcow-1 | 2024-10-09T12:53:47.295563767Z Oct 9 14:53:47 a3865add0dfb postfix/cleanup[982]: 46C138240A34: message-id=<[email protected]>
rspamd-mailcow-1 | 2024-10-09T12:53:47.924673182Z 2024-10-09 14:53:47 #43(normal) <62985e>; task; finalize_item: slow asynchronous rule: URIBL_MULTI(593): 334.66 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:47.928651689Z 2024-10-09 14:53:47 #43(normal) <62985e>; task; finalize_item: slow asynchronous rule: RBL_SEM(539): 339.66 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:47.949290747Z 2024-10-09 14:53:47 #43(normal) <62985e>; task; rspamd_task_write_log: id: <[email protected]>, qid: <46C138240A34>, ip: FORWARDING_HOST_IP, from: <[email protected]>, (default: F (no action): [0.72/15.00] [IP_REPUTATION_HAM(-0.60){asn: 8365(-0.31), country: DE(-0.01), ip: FORWARDING_HOST_IP(-0.28);},MX_INVALID(0.50){},R_PARTS_DIFFER(0.50){100.0%;},BAYES_SPAM(0.28){70.71%;},R_MIXED_CHARSET(0.14){subject;},MIME_GOOD(-0.10){multipart/alternative;text/plain;},ARC_NA(0.00){},ARC_SIGNED(0.00){MAILCOW_DOMAIN:s=dkim:i=1;},ASN(0.00){asn:8365, ipnet:130.83.0.0/16, country:DE;},BCC(0.00){},DMARC_NA(0.00){t-online.de;},FREEMAIL_ENVFROM(0.00){t-online.de;},FREEMAIL_FROM(0.00){t-online.de;},FROM_EQ_ENVFROM(0.00){},FROM_HAS_DN(0.00){},MID_RHS_MATCH_FROM(0.00){},MIME_TRACE(0.00){0:+;1:+;2:~;},PREVIOUSLY_DELIVERED(0.00){testmailuser@MAILCOW_DOMAIN;},RCPT_COUNT_ONE(0.00){1;},RCPT_MAILCOW_DOMAIN(0.00){MAILCOW_DOMAIN;},RCVD_COUNT_THREE(0.00){4;},RCVD_IN_DNSWL_NONE(0.00){FORWARDING_HOST_IP:from;194.25.134.82:received;},RCVD_TLS_LAST(0.00){},R_DKIM_NA(0.00){},TO_DN_ALL(0.00){},TO_MATCH_ENVRCPT_ALL(0.00){},WHITELISTED_FWD_HOST(0.00){FORWARDING_HOST_IP;},WL_FWD_HOST(0.00){}]), len: 2149, time: 639.347ms, dns req: 35, digest: <4c460a895dccc586d5e541e0870f14ef>, rcpts: <testmailuser@MAILCOW_DOMAIN>, mime_rcpts: <testmailuser@MAILCOW_DOMAIN>
rspamd-mailcow-1 | 2024-10-09T12:53:47.949357093Z 2024-10-09 14:53:47 #43(normal) <62985e>; task; rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 4 regexps matched, 3511 regexps total, 3246 regexps cached, 0B scanned using pcre, 2.82KiB scanned total
postfix-mailcow-1 | 2024-10-09T12:53:47.961449527Z Oct 9 14:53:47 a3865add0dfb postfix/qmgr[343]: 46C138240A34: from=<[email protected]>, size=2625, nrcpt=1 (queue active)
postfix-mailcow-1 | 2024-10-09T12:53:47.961494536Z Oct 9 14:53:47 a3865add0dfb postfix/smtpd[980]: disconnect from mail-relay.DOMAIN.DE[FORWARDING_HOST_IP] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
postfix-mailcow-1 | 2024-10-09T12:53:48.080057746Z Oct 9 14:53:48 a3865add0dfb postfix/sogo/smtpd[984]: connect from mailcowdockerized-dovecot-mailcow-1.mailcowdockerized_mailcow-network[172.22.1.250]
postfix-mailcow-1 | 2024-10-09T12:53:48.194971993Z Oct 9 14:53:48 a3865add0dfb postfix/sogo/smtpd[984]: 2D43C8243D54: client=mailcowdockerized-dovecot-mailcow-1.mailcowdockerized_mailcow-network[172.22.1.250]
postfix-mailcow-1 | 2024-10-09T12:53:48.207396785Z Oct 9 14:53:48 a3865add0dfb postfix/cleanup[985]: 2D43C8243D54: replace: header Received: from 5161f64ea532 (mailcowdockerized-dovecot-mailcow-1.mailcowdockerized_mailcow-network [172.22.1.250])??by MAILCOW_HOST (Postcow) with ESMTP id 2D43C8243D54??for <thorst from mailcowdockerized-dovecot-mailcow-1.mailcowdockerized_mailcow-network[172.22.1.250]; from=<testmailuser@MAILCOW_DOMAIN> to=<FORWARD_ADDRESS> proto=ESMTP helo=<5161f64ea532>: Received: from sieve (sieve [172.22.1.250]) by MAILCOW_HOST (Postcow) with ESMTP id 2D43C8243D54??for <FORWARD_ADDRESS>; Wed, 9 Oct 2024 14:53:48 +0200 (CEST)
postfix-mailcow-1 | 2024-10-09T12:53:48.208349286Z Oct 9 14:53:48 a3865add0dfb postfix/cleanup[985]: 2D43C8243D54: message-id=<[email protected]>
rspamd-mailcow-1 | 2024-10-09T12:53:48.245916567Z 2024-10-09 14:53:48 #43(normal) <390ce2>; lua; dkim_signing.lua:105: signing failure: cannot make request to load DKIM selector for domain t-online.de: nil
rspamd-mailcow-1 | 2024-10-09T12:53:48.506805402Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: URIBL_MULTI(593): 300.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.516203020Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: HISTORY_SAVE(441): 309.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.516365005Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: EXPORT_METADATA_PUSHOVERMAIL(443): 309.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.527702992Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: EXPORT_METADATA_QUARANTINE(445): 318.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.527912095Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: NEURAL_LEARN(511): 318.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.527922475Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: RATELIMIT_UPDATE(526): 318.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.527926206Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: REPLIES_SET(641): 318.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.527929424Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; finalize_item: slow asynchronous rule: IP_REPUTATION_IDEMPOTENT(647): 318.36 ms; no idle timer is needed
rspamd-mailcow-1 | 2024-10-09T12:53:48.527932654Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; rspamd_task_write_log: id: <[email protected]>, qid: <2D43C8243D54>, ip: 172.22.1.250, from: <testmailuser@MAILCOW_DOMAIN>, (default: T (reject): [20.02/15.00] [FREEMAIL_POLICY_FAILURE(16.00){},FORGED_W_BAD_POLICY(3.00){},R_PARTS_DIFFER(0.50){100.0%;},BAYES_SPAM(0.28){70.71%;},R_MIXED_CHARSET(0.14){subject;},ARC_REJECT(0.10){signature check failed: fail, {[1] = sig:MAILCOW_DOMAIN:dns request to dkim._domainkey.MAILCOW_DOMAIN failed: no records with this name};},MIME_GOOD(-0.10){multipart/alternative;text/plain;},RCVD_NO_TLS_LAST(0.10){},BCC(0.00){},FORGED_SENDER(0.00){[email protected];testmailuser@MAILCOW_DOMAIN;},FORGED_SENDER_FORWARDING(0.00){},FORWARDED(0.00){testmailuser@MAILCOW_DOMAIN;},FROM_HAS_DN(0.00){},FROM_NEQ_ENVFROM(0.00){[email protected];testmailuser@MAILCOW_DOMAIN;},MID_RHS_MATCH_FROM(0.00){},MIME_TRACE(0.00){0:+;1:+;2:~;},PREVIOUSLY_DELIVERED(0.00){testmailuser@MAILCOW_DOMAIN;},RCPT_COUNT_ONE(0.00){1;},RCPT_MAILCOW_DOMAIN(0.00){FORWARD_DOMAIN;},RCVD_COUNT_FIVE(0.00){6;},SIEVE_HOST(0.00){172.22.1.250;},TO_DN_ALL(0.00){}]), len: 5587, time: 308.750ms, dns req: 12, digest: <4c460a895dccc586d5e541e0870f14ef>, rcpts: <FORWARD_ADDRESS>, mime_rcpts: <testmailuser@MAILCOW_DOMAIN>
rspamd-mailcow-1 | 2024-10-09T12:53:48.527938474Z 2024-10-09 14:53:48 #43(normal) <390ce2>; task; rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 4 regexps matched, 3511 regexps total, 3246 regexps cached, 0B scanned using pcre, 4.07KiB scanned total
postfix-mailcow-1 | 2024-10-09T12:53:48.529237004Z Oct 9 14:53:48 a3865add0dfb postfix/cleanup[985]: 2D43C8243D54: milter-reject: END-OF-MESSAGE from mailcowdockerized-dovecot-mailcow-1.mailcowdockerized_mailcow-network[172.22.1.250]: 5.7.1 This message does not meet our delivery requirements; from=<testmailuser@MAILCOW_DOMAIN> to=<FORWARD_ADDRESS> proto=ESMTP helo=<5161f64ea532>
postfix-mailcow-1 | 2024-10-09T12:53:48.530744437Z Oct 9 14:53:48 a3865add0dfb postfix/sogo/smtpd[984]: disconnect from mailcowdockerized-dovecot-mailcow-1.mailcowdockerized_mailcow-network[172.22.1.250] ehlo=1 mail=1 rcpt=1 data=0/1 quit=1 commands=4/5
postfix-mailcow-1 | 2024-10-09T12:53:48.585161954Z Oct 9 14:53:48 a3865add0dfb postfix/lmtp[983]: 46C138240A34: to=<testmailuser@MAILCOW_DOMAIN>, relay=dovecot[172.22.1.250]:24, delay=1.3, delays=0.71/0.02/0.01/0.6, dsn=2.0.0, status=sent (250 2.0.0 <testmailuser@MAILCOW_DOMAIN> aHiPOtt8Bmc3KgAAFtnIKg Saved)
postfix-mailcow-1 | 2024-10-09T12:53:48.589928527Z Oct 9 14:53:48 a3865add0dfb postfix/qmgr[343]: 46C138240A34: removed
Steps to reproduce:
1. Create a forward rule in SoGo to an external address, keep local copy
2. Send an e-mail from an external freemailer to the mailbox with the forward created above
3. The e-mail is delivered to the local mailbox but the forward is rejected
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Ubuntu 24.04.1 LTS
Server/VM specifications:
Memory: 12G, 4 CPU Cores
Is Apparmor, SELinux or similar active?
yes
Virtualization technology:
KVM
Docker version:
27.3.1
docker-compose version or docker compose version:
v2.29.7
mailcow version:
2024-08a
Reverse proxy:
none
Logs of git diff:
Disabled IPv6 in docker-compose.yml:
`enable_ipv6: false`
(and commented out IPv6 subnet)
Contribution guidelines
I've found a bug and checked that ...
Description
Logs:
Steps to reproduce:
Which branch are you using?
master
Which architecture are you using?
x86
Operating System:
Ubuntu 24.04.1 LTS
Server/VM specifications:
Memory: 12G, 4 CPU Cores
Is Apparmor, SELinux or similar active?
yes
Virtualization technology:
KVM
Docker version:
27.3.1
docker-compose version or docker compose version:
v2.29.7
mailcow version:
2024-08a
Reverse proxy:
none
Logs of git diff:
Logs of iptables -L -vn:
Logs of ip6tables -L -vn:
Logs of iptables -L -vn -t nat:
Logs of ip6tables -L -vn -t nat:
DNS check:
The text was updated successfully, but these errors were encountered: