Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th March 2010, 06:08 PM
rjcroasdale Offline
Registered User
 
Join Date: Mar 2010
Posts: 1
windows_98_nt_2000firefox
Exclamation postfix and selinux [selinux updates broke postfix?]

Hi all, I've been looking at this again, your input will be appreciated

I did a "yum update" to install selinux updates
Code:
Mar 10 05:34:54 Updated: selinux-policy-3.3.1-135.fc9.noarch
Mar 10 05:35:17 Updated: selinux-policy-targeted-3.3.1-135.fc9.noarch
Now postfix wont sendmails with selinux enabled;

I want to get postfix sending emails without having to disable selinux :S
I can start postfix and it sends emails with selinux off | SETENFORCE 0
If i then SETENFORCE 1 without stopping postfix the service still runs but doesnt sendmail :S

Code:
Mar 11 05:24:38 HOSTNAME postfix/cleanup[27957]: fatal: open lock file pid/unix.cleanup: cannot open file: Permission denied
Mar 11 05:24:39 HOSTNAME postfix/master[27911]: warning: process /usr/libexec/postfix/cleanup pid 27957 exit status 1
Mar 11 05:24:39 HOSTNAME postfix/master[27911]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling
^^^ OK WHATS THIS?? Permission denied? - IF I CAN FIX THIS IT SHOULD WORK! ^^^


BACKGROUND INFO

Hi all, all this is done by looking at forums/docs on the net;

So my server has been running fine for a year or so, i use postfix and dovecot;
I wanted to update some mailboxes so i added a user

Code:
adduser -s /sbin/nologin sales; passwd info
(later realising that there was in a config file aliases)

Code:
sales:		postmaster
so i changed that by commenting it out.

Code:
#sales:		postmaster
Futher reading showed I then needed to update this by using

Code:
newaliases
and
Code:
/etc/init.d/postfix restart
but postfix wouldent shutdown to startup again;
futher reading and log file viewing showed an avc: denied message so i turned of selinux
Code:
setenforce 0
and
Code:
/etc/init.d/postfix restart
worked,

great, reading futher i did a "yum update" to install selinux updates
Code:
Mar 10 05:34:54 Updated: selinux-policy-3.3.1-135.fc9.noarch
Mar 10 05:35:17 Updated: selinux-policy-targeted-3.3.1-135.fc9.noarch
but i still cant start or stop postfix with selinux turned on;



ok so after the SELINUX update, now POSTFIX wont send mails if SELINUX is turned on !!

I found this on bugzilla
Code:
https,//bugzilla.redhat,com/show_bug.cgi?id=553492
^^ had to replace : and . with , cos i'm not allowed to post links yet

"Bug 553492 - New selinux packages broke Postfix "

"One of my mailservers running postfix has suddenly stopped sending mail"

Same problem as me, postfix has stopped sending emails with selinux turned on after selinux updates!

Can anyone help cos the bugzilla posts freak me out, i have no-idea about below

Code:
Create a file called mypostfix.te with the following content.

=================================cut =========================================
policy_module(mypostfix, 1.0)

gen_require(`
 type sendmail_t;
')

allow postfix_postdrop_t sendmail_t:unix_stream_socket { getattr read write
ioctl };
=============================================================================

# make -f /usr/share/selinux/devel/Makefile
# semodule -i mypostfix.pp
i have no-idea if this is a fix or not, its bugzilla posts has confuzzled me!

Help a nub out please

Regards
Reply With Quote
  #2  
Old 3rd April 2010, 08:29 AM
kyryder
Guest
 
Posts: n/a
linuxfedorafirefox
Re: postfix and selinux [selinux updates broke postfix?]

Hello,
There is a boolean for postfix in SELinux. Make sure that boolean has a check by it in the SELinux Administration tool.or is set.

Ky
Reply With Quote
Reply

Tags
broke, postfix, selinux, updates

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix, selinux and .forward smokinjoe Security and Privacy 2 23rd December 2006 07:11 AM
FC5 Selinux and Postfix chroot vettezuki Security and Privacy 0 12th May 2006 12:12 AM
Postfix, lmtp and SELinux ibbo Servers & Networking 0 21st April 2006 08:41 AM
Apache, PHP, Postfix & SELinux problem heffe2001 Servers & Networking 1 31st March 2005 10:11 PM


Current GMT-time: 08:37 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat