mail  centos 7

mail server on centos 7


[root@mail ~]#     vi /etc/selinux/config 


# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:#     enforcing - SELinux security policy is enforced.#     permissive - SELinux prints warnings instead of enforcing.#     disabled - No SELinux policy is loaded.SELINUX=disabled#SELINUX=enforcing# SELINUXTYPE= can take one of three values:#     targeted - Targeted processes are protected,#     minimum - Modification of targeted policy. Only selected processes are protected.#     mls - Multi Level Security protection.SELINUXTYPE=targeted

[root@mail ~]#     vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4::1         localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.81.191  mail.worldcm.net        mail
# nmtuiâ Set system hostname  â Hostname mail.worldcm.net________________________ â                                                     <OK>                                <Cancel> 

#  yum -y install quota*

[root@mail ~]# mount | grep ' / '

/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,noquota)

# cp /etc/default/grub /etc/default/grub.ORG


[root@mail ~]#  vi /etc/default/grub

GRUB_TIMEOUT=5GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"GRUB_DEFAULT=savedGRUB_DISABLE_SUBMENU=trueGRUB_TERMINAL_OUTPUT="console"GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet rootflags=uquota,pquota"GRUB_DISABLE_RECOVERY="true"
[root@mail ~]#  cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig[root@mail ~]#   grub2-mkconfig -o /boot/grub2/grub.cfg

**The path on some OSs has been changed to  E F I [ EFI BOOT ] ** 

# /boot/efi/EFI/centos/grub.cfg  

 [root@mail ~]#   cp /boot/efi/EFI/centos/grub.cfg /boot/efi/EFI/centos/grub.cfg.ORG

 [root@mail ~]#   grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg


# reboot

[root@mail ~]#  mount | grep ' / '

/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,usrquota,prjquota)

Then Go to webmin----->

1. Disk and Network --->/ (Root filesystem) or home ---> Enable user & groups quotas ---> save

2.  Disk Quotas ---->/ (users) / (groups) ---> ok