In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The 1.postfix build installs itself according to this address.
Click here to enter
2.yum installation, which can be installed through the RPMForge software repository.
# yum install-y amavisd-new clamav clamav-devel clamd spamassassin
3. Check the auto boot status of the service
# chkconfig-- list | grep "amavisd\ | clamd\ | spamassassin" amavisd 0:off 1:off 2:on 3:on 4:on 5:on 6:off clamd 0:off 1:off 2:on 3:on 4:on 5:on 6:off spamassassin 0:off 1:off 2:off 3:off 4:off 5:off 6:off
The spamassassin service is not started because awavis-new uses spamassassin directly as a module.
4. Modify spamassassin configuration
# vi / etc/mail/spamassassin/local.cfrequired_hits 5report_safe 0rewrite_header Subject [SPAM] use_bayes 1bayes_auto_learn 1skip_rbl_checks 0use_razor2 1use_pyzor 0
5. Modify clamav configuration
# vim / etc/clamd.conf# uses local communication LocalSocket / var/run/clamav/clamd.sock# to comment out TCP communication port # TCPSocket 3310
6. Modify amavis configuration
# vim / etc/amavisd.conf (1). Stop checking for virus domain spam by removing comments from the following lines (since the following lines are commented out by default, viruses and spam are enabled by default) @ bypass_virus_checks_maps = (1); # controls running of anti-virus code@bypass_spam_checks_maps = (1); # controls running of anti-spam code$bypass_decode_parts = 1; # controls running of decoders&dearchivers (2). Then you can see the following lines $max_servers = 2; # num of pre-forked children (2.. 30 is common),-m$daemon_user = "amavis"; # (no default; customary: vscan or amavis),-u $daemon_group = "amavis"; # (no default; customary: vscan or amavis),-g $inet_socket_port = 10024 # listen on this local TCP port (s) # $notify_method = 'smtp: [127.0.0.1]: 10025 benchmark # $forward_method =' smtp: [127.0.0.1]: 10025' # set to undef with millisecond maxillary servers sets the number of Amavisd-new processes executed synchronously, and must match the maxproc of the amavisfeed service in / etc/postfix/master.cf. $daemon_user and $daemon_group should be used to match Amavisd-new users and groups $inet_socket_port defines which tcp port Amavisd-new will accept connections from Postfix $notify_method and $forward_method defines the way Amavisd-new reinjects mail into Postfix (3). The following must be modified $mydomain = 'meihua.info'; # I here is the free.com domain $MYHOME =' / var/amavis'; $helpers_home = "$MYHOME/var"; $lock_file = "$MYHOME/var/amavisd.lock"; $pid_file = "$MYHOME/var/amavisd.pid"; $myhostname = 'mail.meihua.info'; # I am the mail.meihua.info host (4). Here are the SpamAssassin settings to replace the preset SpamAssassin settings $sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level$sa_ kill_level_deflt = 6.9; # triggers spam evasive actions (e.g. Blocks mail) $sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent $sa_crediblefrom_dsn_cutoff_level = 18 # likewise, but for a likely valid From # $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off $penpals_bonus_score = 8; # (no effect without a @ storage_sql_dsn database) $penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam $bounce_killer_score = 100; # spam score points to add for joe-jobbed bounces$sa_mail_body_size_limit = 400 million 1024 # don't waste time on SA if mail is larger$sa_local_tests_only = 0; # only tests which do not require internet access? Note: it does not need to be modified by default, but you need to know their meaning. It can easily help us set up spam'$sa_tag_level_deflt. Specify at which level Amavisd-new starts to write X-Spam-Flag, X-Spam-Score, X-Spam-Status and other spam headers. If you want to add information headers to all emails, Set this value to-999 $sa_tag2_level_deflt to specify which level to start tagging their $sa_kill_level_deflt on the spam header to specify the level at which Amavisd-new starts intercepting and withholding messages. This is useful because SpamAssassin does not do this by default $sa_dsn_cutoff_level specifies at which level the failure notification will not be sent to the sender. Since most spammers' addresses are forged, it is most reasonable not to send obvious spam failure notifications, otherwise you will only exacerbate the problem of reverse spamming $sa_quarantine_cutoff_level specifies which level does not have to detain spam at the beginning. This option is commented out by default, meaning that all messages will be withheld (5). The following is the email address for sending advertisements (default is administrator mailbox, mailbox that receives spam notifications) $virus_admin = "postmaster\ @ $mydomain"; # notifications recip.$mailfrom_notify_admin = "postmaster\ @ $mydomain"; # notifications sender $mailfrom_notify_recip = "postmaster\ @ $mydomain"; # notifications sender $mailfrom_notify_spamadmin = "postmaster\ @ $mydomain"; # notifications sender (6). Set part # http://www.clamav.net/ of ClamAV ['ClamAV-clamd',\ & ask_daemon, ["CONTSCAN {}\ n", "/ var/run/clamav/clamd.sock"], qr/\ bOK$/m, qr/\ bFOUND$/m, qr/ ^. *?: (?! Infected Archive) (. *) FOUND$/m], indicating The setting of / var/run/clamav/clamd.sock must be consistent with the LocalSocket / var/run/clamav/clamd.sock setting we entered earlier in / etc/clamd.conf.
7. Modify postfix master.cf configuration
# vim / etc/postfix/master.cf# = # # service type private unpriv chroot wakeup maxproc command + args # # (yes) (never) # # = # # amavisfeed unix-n-2 smtp-os mtp_data_done_timeout=1200-o smtp_send_xforward_ Command=yes-o smtp_tls_note_starttls_offer=no-o disable_dns_lookups=yes-o max_use=20 description Please note that the number 2 in the maxproc column must be consistent with the $max_servers setting in / etc/amavisd.conf. For a detailed explanation of the options, see the Amavisd-new documentation (vim / usr/share/doc/amavisd-new-2.8.0/README.postfix). Then we define a dedicated service to re-inject mail into Postfix. For this reason, we add a smtp service that listens on the tcp 10025 port of localhost (127.0.0.1) (the default value of / etc/amavisd.conf) in / etc/postfix/master.cf: # = # # service type private unpriv chroot wakeup maxproc command + args# # (yes) (yes) (never) (100) # # = = 127.0.0.1purl 10025 inet n- N-- smtpd-o content_filter=-o smtpd_delay_reject=no-o smtpd_client_restrictions=permit_mynetworks Reject-o smtpd_helo_restrictions=-o smtpd_sender_restrictions=-o smtpd_recipient_restrictions=permit_mynetworks Reject-o smtpd_data_restrictions=reject_unauth_pipelining-o smtpd_end_of_data_restrictions=-o smtpd_restriction_classes=-o mynetworks=127.0.0.0/8-o smtpd_error_sleep_time=0-o smtpd_soft_error_limit=1001-o smtpd_hard_error_limit=1000-o smtpd_ Client_connection_count_limit=0-o smtpd_client_connection_rate_limit=0-o receive_override_options=no_header_body_checks No_unknown_recipient_checks,no_milters,no_address_mappings-o local_header_rewrite_clients=-o smtpd_milters=-o local_recipient_maps=
8. Modify postfix main.cf configuration
# vim / etc/postfix/main.cf#filter mailcontent_filter = amavisfeed: [127.0.0.1]: 10024
9. Restart the postfix,clamd,amavis service
# service postfix restartShutting down postfix: [OK] Starting postfix: [OK] # service clamd startStarting Clam AntiVirus Daemon: LibClamAV Warning: * * * LibClamAV Warning: * The virus database is older than 7 days! * * LibClamAV Warning: * Please update it as soon as possible. * LibClamAV Warning: * [OK] # service amavisd startStarting Mail Virus Scanner (amavisd): [OK]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.