Bug 2253647
| Summary: | Report function broken, because of missing SELinux rules | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Frank Büttner <bugzilla> |
| Component: | opendmarc | Assignee: | Kevin Fenzi <kevin> |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel9 | CC: | abo, kevin |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Description of problem: OpenDMARC can't send mails when request by the DMARC DNS records. Version-Release number of selected component (if applicable): opendmarc-1.4.2-10.el9.x86_64 How reproducible: Any time when an SPF fails happens with an "Failure report URI" DNS entry Steps to Reproduce: 1. deliver an fake mail to postfix from an sender which use SPF with report set. Actual results: OpenDMARC detect it, but can't send the requested mail because of SELinux errors. Expected results: That the mail request by the SPF holder are send on SPAM event. Additional info: opendmarc-check: opendmarc-check facebook.com DMARC record for facebook.com: Sample percentage: 100 DKIM alignment: relaxed SPF alignment: relaxed Domain policy: reject Subdomain policy: unspecified Aggregate report URIs: a.com Failure report URIs: fb-dmarc.com So facebook request an mail on failure. Log OpenDMARC: Dez 08 16:03:14 opendmarc[337848]: implicit authentication service: XXXX Dez 08 16:03:14 opendmarc[337848]: 726218ECB719: SPF(mailfrom): facebook.com fail Dez 08 16:03:14 opendmarc[337963]: sendmail: fatal: open /etc/postfix/main.cf: Permission denied Dez 08 16:03:14 postfix/sendmail[337963]: fatal: open /etc/postfix/main.cf: Permission denied Dez 08 16:03:14 opendmarc[337848]: 726218ECB719: pclose() exited with status 75 Dez 08 16:03:14 opendmarc[337848]: 726218ECB719: facebook.com fail Log audit: type=AVC msg=audit(1702047924.918:22137): avc: denied { search } for pid=338016 comm="sendmail" name="postfix" dev="dm-0" ino=134779488 scontext=system_u:system_r:dkim_milter_t:s0 tcontext=system_u:object_r:postfix_etc_t:s0 tclass=dir permissive=0 type=SYSCALL msg=audit(1702047924.918:22137): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=558efee37ad0 a2=0 a3=0 items=0 ppid=337848 pid=338016 auid=4294967295 uid=981 gid=980 euid=981 suid=981 fsuid=981 egid=980 sgid=980 fsgid=980 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.postfix" subj=system_u:system_r:dkim_milter_t:s0 key=(null)ARCH=x86_64 SYSCALL=openat AUID="unset" UID="opendmarc" GID="opendmarc" EUID="opendmarc" SUID="opendmarc" FSUID="opendmarc" EGID="opendmarc" SGID="opendmarc" FSGID="opendmarc" type=PROCTITLE msg=audit(1702047924.918:22137): proctitle=2F7573722F7362696E2F73656E646D61696C002D74002D6F6471