Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

AlmaLinux 9.1 ; Anti-virus(Clamav) , Mail Server

Clamav (anti-virus software)Install

1.Clam AntiVirus install

2.Clam AntiVirus  Configuration File Edit

3.Virus definition file update settings

4.Virus definition file update
5.Virus definition file update
6.Conducted virus scan
■Download a test virus and perform a virus scan
7.Deployment of virus scan auto-execution scripts
8.Virus scan exclusion directory settings
9.Scheduled virus scan execution

Mail Server Install

1. Postfix

1.1 Install
Install Postfix and build an SMTP server

Confirm Postfix is installed

1.2 Register Postfix to the service

1.3Backup postfix configuration files, and files

1.4 Edit postfix configuration file
To prevent unauthorized mail relay, configure Postfix to require authentication for outgoing mail as well, using Dovecot's SASL function.

Allow SMTP port (port 25)

1.5 Start Postfix


2.1 dovecot install

2.2 Edit dovecot.conf file

2.3 Edit 10-auth.conf file

2.4 Edit 10-mail.conf file

2.5 Edit 10-master.conf file

2.6 Edit 10-ssl.conf file

2.7 Register dovecot as a service and start it

2.8 Allow POP/IMAP services in Firewalld Port Allow
POP is [110/TCP], IMAP is [143/TCP].

3.Create mail user and check operation

3.1 advance preparation
①new user
When a new user is added, set up the system to automatically send and receive e-mail.

②Existing users
Configure the already created users to be able to send and receive e-mail.
3.2 User Account Creation
3.3 operation check ①
①Log in as an email user and send a test email.
②Email Confirmation
3.4 operation check ②

Set up and confirm your account in Mozilla Thunderbird(For OS user huong as mail user)

①Start Thunderbird
Your full name : Any name
Email addtess :
Password : Password for huong
Enter each and click "Configure manually".

➁Set "INCOMMING SERVER" and "OUTGOING SERVER" as shown below and click "Re-test".

➂The following settings were found by probinfg the given server

After clicking "Done", the following "Warning" appears, but there is no problem, so click "Confirm".

④Click "Finish" when "Account syccessfuly created" is displayed.

Mail Serever : Postfix + Clamav + Amavisd+SpamAssassin

1.Real-time scanning of e-mails

①Amavisd ,Clamav Server install
➁Configuration File Editing
➂Setup and start Amavisd
④Postfix Configuration
⑤Confirmed by Thunderbird
I sent a test email to myself in Thunderbird, and the following appears in the header display of the received email
"X-Virus-Scanned: amavisd-new at"

2.Email spam protection

 ①SpamAssassin installed to prevent spam
②SpamAssassin Settings
③SpamAssassin configuration file modernization script
Grant execute permission to the spamassassin-update script and run it
Check that the SpamAssassin configuration file in the /etc/mail/spamassassin directory has been created with the current date.
Set up cron to automatically run a script daily that updates the SpamAssassin configuration file
④Integrate SpamAssassin into Postfix
⑤Restart postfix
⑥If you send an e-mail to yourself in Thunderbird with the following information in the body, the following will appear in the header.
Copied title and URL