1. Modify the main. cf configuration file. The red part is the part to be commented out.
Vim/etc/Postfix/Main. cf
# Smtpd related config
Smtpd_recipient_restrictions =
Permit_mynetworks,
Permit_sasl_authenticated,
Reject_non_fqdn_hostname,
Reject_non_fqdn_sender,
Reject_non_fqdn_recipient,
Reject_unauth_destination,
Reject_unauth_pipelining,
Reject_invalid_hostname #
# Check_policy_service Inet: 127.0.0.1: 10030
# Header_checks = Regexp:/etc/Postfix/dspam_header_checks
# Content-Filter
# Content_filter = SMTP-amavis: [127.0.0.1]: 10024
# Receive_override_options = no_address_mappings
2. Modify the master. cf configuration file. The red part is the part to be commented out.
Vim/etc/Postfix/master. cf
#
# Dspam training settings
#
# Retrain Unix-N-pipe
# Flags = RHQ user = dspam argv =/usr/bin/dspam -- client -- mode = teft -- class = $ nexthop # -- source = corpus -- User extmail -- deliver = spam, innocent
# Spamtrap Unix-N-pipe
# Flags = RHQ user = dspam argv =/usr/bin/dspam -- client -- mode = teft -- class = spam # -- source = inoculation -- User extmail
# SMTP-amavis Unix--N-3 SMTP
#-O smtp_data_done_timeout = 1200
#-O smtp_send_xforward_command = Yes
#-O disable_dns_lookups = Yes
#-O max_use = 10
How does emos disable anti-virus and anti-spam functions?