#!/bin/bash #first we set postfix sendmail as default one /usr/sbin/alternatives --set mta /usr/sbin/sendmail.postfix # we add qpsmtpd to the group to allow to send email to postfix sockets /usr/sbin/usermod -a -G postdrop qpsmtpd