On Sun, 12 Apr 2020 14:44:44 -0700 Samuel Sieb <samuel@xxxxxxxx> wrote: > On 4/12/20 11:56 AM, Ranjan Maitra wrote: > > I have selinux enforcing and postfix for mail delivery. It turns out that postfix does not "work" if selinux is enabled (setenforce 0 selinux sets it to work again). > > You need to describe how you have it configured and what isn't working. > I've been using postfix for many years and never had any selinux issues. I spoke too soon: it does not send e-mail from my office machine. From my home machine, it appears to send e-mail. I don't know what to send but here are the differences in the two cases for the office.machine and home.machine, followed by selinux in permissive mode and then all mail (including accumulated mail getting delivered). Any suggestions. I would like to get to the bottom of this. I wonder if in the home machine, it still works because the postfix was running when selinux was enabled, whereas in the office machine I restarted postfix and enabling selinux. This is just an uniformed musing. Thanks again, Ranjan sudo systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2020-04-12 19:35:33 CDT; 9min ago Process: 565037 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Process: 565041 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 565043 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) Process: 565202 ExecReload=/usr/sbin/postfix reload (code=exited, status=0/SUCCESS) Main PID: 565114 (master) Tasks: 3 (limit: 77040) Memory: 9.5M CPU: 749ms CGroup: /system.slice/postfix.service ├─565114 /usr/libexec/postfix/master -w ├─565115 pickup -l -t unix -u └─565217 qmgr -l -t unix -u Apr 12 19:42:41 office.machine postfix/master[565114]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling Apr 12 19:43:00 office.machine postfix/master[565114]: warning: unix_trigger_event: read timeout for service public/pickup Apr 12 19:43:41 office.machine postfix/cleanup[565256]: fatal: open lock file pid/unix.cleanup: cannot open file: Permission den> Apr 12 19:43:42 office.machine postfix/master[565114]: warning: process /usr/libexec/postfix/cleanup pid 565256 exit status 1 Apr 12 19:43:42 office.machine postfix/master[565114]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling Apr 12 19:44:00 office.machine postfix/master[565114]: warning: unix_trigger_event: read timeout for service public/pickup Apr 12 19:44:42 office.machine postfix/cleanup[565316]: fatal: open lock file pid/unix.cleanup: cannot open file: Permission den> Apr 12 19:44:43 office.machine postfix/master[565114]: warning: process /usr/libexec/postfix/cleanup pid 565316 exit status 1 Apr 12 19:44:43 office.machine postfix/master[565114]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling Apr 12 19:45:00 office.machine postfix/master[565114]: warning: unix_trigger_event: read timeout for service public/pickup lines 1-26/26 (END) --------- home machine: $ sudo systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor pre> Active: active (running) since Thu 2020-04-09 06:23:47 CDT; 3 days ago Main PID: 1004 (master) Tasks: 4 (limit: 18820) Memory: 22.9M CPU: 15.339s CGroup: /system.slice/postfix.service ├─ 1004 /usr/libexec/postfix/master -w ├─ 1006 qmgr -l -t unix -u ├─ 3058 tlsmgr -l -t unix -u └─180983 pickup -l -t unix -u Apr 12 19:27:04 home.machine postfix/pickup[180983]: 55F372278D: uid=1> Apr 12 19:27:04 home.machine postfix/cleanup[182068]: 55F372278D: mess> Apr 12 19:27:04 home.machine postfix/qmgr[1006]: 55F372278D: from=<mai> Apr 12 19:27:04 home.machine postfix/local[182071]: 55F372278D: to=<ma> Apr 12 19:27:04 home.machine postfix/qmgr[1006]: 55F372278D: removed Apr 12 19:34:22 home.machine postfix/pickup[180983]: D2DCE2278D: uid=1> Apr 12 19:34:22 home.machine postfix/cleanup[184925]: D2DCE2278D: mess> Apr 12 19:34:22 home.machine postfix/qmgr[1006]: D2DCE2278D: from=<mai> Apr 12 19:34:22 home.machine postfix/local[184927]: D2DCE2278D: to=<ma> Apr 12 19:34:22 home.machine postfix/qmgr[1006]: D2DCE2278D: removed So, then I decided to $sudo setenforce 0 $ sudo systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2020-04-12 19:35:33 CDT; 19min ago Process: 565037 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, sta> Process: 565041 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited,> Process: 565043 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCC> Process: 565202 ExecReload=/usr/sbin/postfix reload (code=exited, status=0/SU> Main PID: 565114 (master) Tasks: 12 (limit: 77040) Memory: 21.9M CPU: 1.021s CGroup: /system.slice/postfix.service ├─565114 /usr/libexec/postfix/master -w ├─565217 qmgr -l -t unix -u ├─565448 cleanup -z -t unix -u ├─565449 trivial-rewrite -n rewrite -t unix -u ├─565450 smtp -t unix -u ├─565451 smtp -t unix -u ├─565452 scache -l -t unix -u ├─565453 bounce -z -n trace -t unix -u ├─565454 local -t unix ├─565455 cleanup -z -t unix -u ├─565456 local -t unix └─565457 pickup -l -t unix -u Apr 12 19:53:52 office.machine postfix/local[565454]: B079D161EB3:> Apr 12 19:53:52 office.machine postfix/qmgr[565217]: B079D161EB3: > Apr 12 19:53:52 office.machine postfix/qmgr[565217]: A533B16108C: > Apr 12 19:53:52 office.machine postfix/smtp[565451]: B59F1161E08: > Apr 12 19:53:52 office.machine postfix/cleanup[565455]: D3E2416073> Apr 12 19:53:52 office.machine postfix/bounce[565453]: B59F1161E08> Apr 12 19:53:52 office.machine postfix/qmgr[565217]: D3E2416073B: > Apr 12 19:53:52 office.machine postfix/qmgr[565217]: B59F1161E08: > Apr 12 19:53:52 office.machine postfix/local[565454]: D3E2416073B:> Apr 12 19:53:52 office.machine postfix/qmgr[565217]: D3E2416073B: > _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx