Click here for "Error Codes for Commercial Air Conditioners".(Japanese Version)

Fedora36 ; Clam AntiVirus , Mail Server

Install Clamav ( anti-virus software )

1.Install Clam AntiVirus

2.Edit Clam AntiVirus configuration file

3.Virus definition file update settings

4.Virus definition file update
5.Launch Clam AntiVirus
6.Conducted virus scan
■Download a test virus and perform a virus scan
7.Deployment of virus scan auto-execution scripts
Create clamscan.sh in /var/www/system with the following contents
8.Virus scan exclusion directory settings
9.Scheduled virus scan

Mail Server Install

1. Install Postfix

1.1 Install
Install Postfix and build an SMTP server

Check if Postfix is installed

1.2 Register Postfix to the service

1.3 Backup postfix configuration files, main.cf and master.cf files

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

Release SMTP port (port 25)

1.5 Start Postfix

2.Dovecot Installation

2.1 Install

2.2 Edit dovecot.conf file

2.3 Edit 10-auth.conf file

2.3 Edit 10-mail.conf file

2.4 Edit 10-master.conf file

2.5 Edit 10-ssl.conf file

2.6 Register dovecot as a service and start

2.7 Permission port opening for POP/IMAP service with firewalld
POP is [110/TCP], IMAP is [143/TCP].

3.Create mail user and check operation

3.1 User Account Creation

Mail client installation

Mailboxes are set to refer to Maildir

Add user "linux"

3.2 operation check ①
Log in as an email user and send a test email.

3.3 operation check ②
Set up and confirm your account in Mozilla Thunderbird
①Start Thunderbird, "Tools", "Account Settings".
②"Account Actions," "Add Email Account."
③"Your full name" is an arbitrary name
The "Email address" is "linux@korodes.com," which I just added.
Password is user (linux) password
Click on "Configure Manually"
④Set "Incoming Server" and "Outgoing Server" as shown below and click "Re-test".
⑤The "Server Found" message appears.
After clicking "Done" the following "Warning" appears, but there is no problem, so click "Confirm.
⑥Click "Finish"
⑦Your account has been created.

Mail Server : Postfix + Clamav + Amavisd+SpamAssassin

1.Real-time scanning of E-mails

①Install Amavisd and Clamav Server

➁Configuration File Edit

➂Setup and start Amavisd

④Postfix Configuration

⑤I sent a test email to myself in Thunderbird, and in the header display section of the received email, I see the following
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

Make sure that the SpamAssassin configuration file in the /etc/mail/spamassassin directory is created with the current day's 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.

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

Copied title and URL