@echo off
set /p kaynakdosyayol=Full path to the source img file :
set /p kaynakdosya=Full name of source img file :
cd C:\Program Files\Oracle\VirtualBox 
VBoxManage convertdd %kaynakdosyayol%\%kaynakdosya% %homepath%\Desktop\%kaynakdosya%.vdi
echo VDI file saved to your desktop


zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes
zmprov mcf zimbraMtaSmtpdRejectUnlistedSender yes
zmprov mcf zimbraMtaSmtpdSenderLoginMaps  proxy:ldap:/opt/zimbra/conf/ldap-slm.cf +zimbraMtaSmtpdSenderRestrictions reject_authenticated_sender_login_mismatch

vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf

Add reject_sender_login_mismatch to the the line

permit_mynetworks, reject_sender_login_mismatch

zmmtactl restart 
zmconfigdctl restart

Test your SMTP Configuration from this site https://www.wormly.com/test-smtp-server

Adding ntfs to usbmount

  1. Install usbmount with sudo apt-get install usbmount.
  2. Install NTFS driver package ntfs-3g with sudo apt-get install ntfs-3g.

  3. Configure usbmount to mount specified filesystems by opening the usbmount file with sudo nano /etc/usbmount/usbmount.conf.

In here there is a line called FILESYSTEMS="". Only filesystems specified in this line are mounted via usbmount, so we change it to : FILESYSTEMS="vfat ntfs fuseblk ext2 ext3 ext4 hfsplus"

If you want usbmount to mount NTFS Filesystems, be sure to add ntfs and fuseblk to the line. NTFS devices are sometimes listed as fusblk by the ntfs-3g package, so...

Proftpd TLS connection requires passive mode ports to be open if you are using a firewall.In this case UFW.

In the proftpd.conf file, find the below line and remove # from the start.You can narrow the ephemeral port range if you like.

PassivePorts   startport endport

restart proftpd then add a firewall rule to that port range.

ufw allow startport:endport/tcp
ufw disable && ufw enable

VMware ESXi disabling IOMMU

Date : 16/06/2017

If you encountered freeze or halt while running ESXi installer on your system then probably your motherboard doesn't have Input–output memory management unit or it's disabled in the bios.So this is what you must do for it.When you boot from ESXi you must input a command at bootloader, which is "noiommu".This way you can boot your installer and install the system on the drive.

After the setup on first bootup, again you need to enter the "noiommu" command to your bootloader.After the system bootup you need to ssh into ESXi to change boot arguments indefinitely.First enable SSH to ESXi or on the shell 

vi /bootbank/boot.cfg

add the option "noiommu" to the "kernelopt" line and save it.