Mail attachment filtering system based on SendMail and Perl (4)

Source: Internet
Author: User
Tags mail
Perl 1;

The filtering rule above means deleting the message with the extension listed above and notifying the sender that the message was deleted and receiving all other messages. I also change the/usr/local/bin/mimedefang.pl file so that I don't keep the mail attachment in the/var/spool/mimedefang directory, which has a detailed explanation, please edit the file to remove the portion of the deleted message attachment on the hard drive.

F. Start the system and test

Simply copy the example directory for Redhat Redhat-sendmail-init-script to/etc/rc.d/init.d/sendmail and change the SendMail startup section into

/usr/sbin/sendmail-l sm-mta-bd-q30m
/usr/sbin/sendmail-l sm-msp-queue-ac-q30m

If your mail server needs to handle thousands of emails a day, consider copying another script Redhat-sendmail-init-script-with-multiplexor to/etc/rc.d/init.d/sendmail to speed up processing.

Finally, start with/etc/rc.d/init.d/sendmail start SendMail, send the attachment with the. exe to test.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.