Bài đăng

Hiển thị các bài đăng có nhãn Redhat

How To Improvement Sender Must Login/Enforcing a Match Between From Address and sasl username On Zimbra 8.5

If using Zimbra 8.5, you can following this instruction su - zimbra zmprov mcf zimbraMtaSmtpdSenderLoginMaps proxy:ldap:/opt/zimbra/conf/ldap-slm.cf +zimbraMtaSmtpdSenderRestrictions reject_authenticated_sender_login_mismatch Above configuration will not accept the user to relay emails using a different email address from user to authenticate with smtp open file  /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf  and add  reject_sender_login_mismatch  after  permit_mynetworks permit_mynetworks, reject_sender_login_mismatch Above configuration will not accept if user not use authentication/password. After a minute, zmconfigd will update the postfix configuration automatically and apply the new rules. The following is example test use telnet after improve configuration sender must login/anti fake mail ahmad:~ # telnet mail.myemailserver.net 25 Trying 103.xxx.xxx.xxx Connected to mail.myemailserver.net. Escape character is '^]'. 2...

How To Restrict Users Sending to Certain Users/Domains With Policyd

Hình ảnh
Policyd has module access control. This module can use for some aims as improving anti spam reject unlisted domain like article has been wrote before. Module access control also can use for restrict users sending to certain users/domains and this article will explain how to apply. Assume you have been install and configure policyd like the following article  How To Install PolicyD on Zimbra 8.5 . For information, i have user with name user1@imanudin.net. This user can sending to domain local only (imanudin.net) and deny to other domain. Open policyd webui on http://ZimbraServer:7780/webui/index.php . First, create users and domains group. Select Groups. Add new group and given name users_local_only . Add member users to group users_local_only . Don’t forget to change status disable yes become no . Add new group and given name list_domain . Add member domains to group list_domain . Don’t forget to change status disable yes become no.  See the following pictu...

Zimbra Tips : How To Configure Rate Limit Sending Message on PolicyD

Hình ảnh
Yesterday, i have been wrote article about how to install/enable Policyd on Zimbra 8.5. Now., i am will describe how to configure rate limit sending message with Policyd. Why we must configuring rate limit sending message? If there user have compromised password, spammer will sending email to outside with random email address receipt  and very much email have been sent. Usually, public IP address will have blacklisted on any RBL and cannot sending email to outside. To prevent it, we can use Policyd and configure rate limit sending message with quotas modules on Policyd. Quotas modules can prevent user@domain or other configuration can sending some email per minutes or per hours. For example, per users can sending maximum 200 emails per hours How to configure it? This is step by step how to configure it. Assuming you have been install/enable Policyd. Access Policyd WebUI via browser http://zimbraserver:7780/webui/index.php . Ensure your Zimbra servi...

How to authenticate FreeRadius with OpneLdap

System Information: IP Address of FreeRadius Server: 192.168.2.200 IP Address of FreeRAdius Client Server: 192.168.2.100 Install FreeRadius on Server: yum install freeradius2 freeradius2-utils freeradius2-ldap Download radius ldap schema file and copy to ldap schema directory # wget http://open.rhx.it/phamm/schema/radius.schema # cp radius.schema /etc/openldap/schema/ Include file in ldap configuration file /etc/openldap/ slapd.conf include /etc/openldap/schema/radius.schema Edit /etc/raddb/modules/ldap and add below entry   vi /etc/raddb/modules/ldap ldap { server = "ldap01. example.com " #identity = "cn=Manager,dc=example,dc=com" #password = password basedn = "dc=example,dc=com" filter = "(uid=%{%{Stripped-User-Name}:-%{User-Name}})" base_filter = "(objectclass=posixAccount)" start_tls = no dictionary_mapping = ${raddbdir}/ldap.attrmap ldap...

Apache Prefork MPM Configuration

If you have installed a new  apache  web  server ( prefork  MPM ), planning to launch an online application and exptecting good amount of traffic then before going live, check apache settings for prefork mpm otherwise your server will not able to serve even 20-30 users. Why, becouse apache default setting are not optimized for high traffic, you have to adjust prefork settings based on your application and hardware(RAM,Swap etc). Before I will start explaining prefork configuration, if you are not aware of prefork mpm or how to check apache memory details then read following blogs before proceeding further: Prefork Vs Worker Apache Memory Details Open your apache config file or run following command gedit /etc/apache2/apache2.conf Search prefork setting block, which look like this ? 1 2 3 4 5 6 7 <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 <...

Fix Redhat/CentOS use only 6GB for root space

I have marked the steps with <<#>> in the block below, so the are not a part of the command. You need root permissions, so do a "sudo sh" if you are not root. <<1>> Look at the filesystem, it is 6G <<2>> Look at the disk and the partition, the disk is 21.5 GB but the partition is 6 GB (6291456 blocks) <<3>> Start fdisk for that disk (xvda, so not the partition xvda1) <<4>> Switch to sector display. <<5>> Print the partition(s), and remember the start sector (2048 in the example). <<6>> Delete the partition. <<7>> Create a new partition. <<8>> Make it primary. <<9>> First partition. <<10>> Enter the old start sector, do NOT make any typo here!!! (2048 in the example)  <<11>> Hit enter to accept the default (this is the remainder of the disk) <<12>> Print the changes and make sure the start sector is ok, if not restart at ...