Ubuntu 20.04 and MailScanner+sendmail installation instructions?

Remco Barendse mailscanner at barendse.to
Fri May 28 12:01:48 UTC 2021


I am migrating all servers from CentOS -> Ubuntu since RedHat pulled the 
rug under CentOS. MailScanner is the last task on the list, but google 
revealed that Ubuntu + sendmail/mailscanner is not a very popular 
option?  Are there installation instructions anywhere ?  I am finding bits 
and pieces online but nothing complete.

Google didn't reveal much about  sendmail on Ubuntu either.

I installed Ubuntu 20.04, from the .deb file and installed MailScanner 
without major errors (CPAN doesn't like it by the way if the 
box is not connected directly to the internet but via a proxy.

I created second incoming directory :
mkdir /var/spool/mqueue.in ; chown smmta:smmsp /var/spool/mqueue.in ;
chmod 2750 /var/spool/mqueue.in

I set Incoming "Queue Dir = /var/spool/mqueue.in" in MailScanner.conf

MailScanner website mentions modification of startup script (which I 
think is stale?), a google search revealed this is what needs to be 
changed :
sed -i 's/DAEMON_PARMS=""/DAEMON_PARMS="-bd -OPrivacyOptions=noetrn 
-ODeliveryMode=queueonly -OQueueDirectory=\/var\/spool\/mqueue.in"/g' 
/etc/mail/sendmail.conf

I ran sendmailconfig, will modify sendmail.mc with all FEATUREs from 
CentOS sendmail.mc.

Anything else I overlooked?

The server will not deliver mail locally but relay everything to 
Exchange, can I enable define(`confSAFE_FILE_ENV',             `')dnl or will that 
break MailScanner?

Is DCC still used ? (https://www.dcc-servers.net/dcc/)

Thanks for any hints / tips!
Remco

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list