AVC on "create" popping up when exim is used as an alternative to postfix for sendmail

Solution Verified - Updated -

Issue

  • After installing exim package from EPEL, an AVC is seen when exim sends mail

    type=AVC ...: avc:  denied  { create } for  pid=XXX comm="sendmail" name="v" scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:exim_spool_t:s0 tclass=dir permissive=0
    type=SYSCALL ...: arch=x86_64 syscall=mkdir success=no exit=EACCES ... auid=0 uid=93 gid=93 euid=93 suid=93 fsuid=93 egid=93 sgid=93 fsgid=93 ... comm=sendmail exe=/usr/sbin/exim subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null)
    type=CWD ...: cwd=/var/spool/exim
    type=PATH ...: item=0 name=/var/spool/exim/input/ ... mode=040750 ouid=93 ogid=93 rdev=00:00 obj=system_u:object_r:exim_spool_t:s0 nametype=PARENT cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0
    type=PATH ...: item=1 name=/var/spool/exim/input/v nametype=CREATE cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0
    

Environment

  • Red Hat Enterprise Linux 7, 8 and 9
    • exim

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content