
# File	: postfix_with_users
# By	: Maarten.deboer@Atos.net, 190917
# Subject	: sudoers file for postfix config
#(190918)	: Add; journalctl, a604348
#
Cmnd_Alias POSTFIX = /bin/yum install postfix ,\
		/bin/yum update postfix ,\
		/bin/tail * /var/log/maillog ,\
		/bin/cp /etc/postfix/main.cf /etc/postfix/main.cf_old ,\
		/bin/sudoedit /etc/postfix/main.cf ,\ 
		/bin/cp /etc/postfix/master.cf /etc/postfix/master.cf_old ,\
		/bin/sudoedit /etc/postfix/master.cf ,\
		/bin/systemctl restart postfix.service ,\
		/bin/journalctl -xe

# Users nl17410 (Andre.Hilgersom), nl19471 (Maarten.deBoer) & a604348 (cristian-ion.simonea) at ALL-systems with NOpasswd able to run command from POSTFIX alias
nl17410 ALL=NOPASSWD:POSTFIX
nl19471 ALL=NOPASSWD:POSTFIX
a604348 ALL=NOPASSWD:POSTFIX

