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