Construction of SendMail under Linux system

Source: Internet
Author: User
Tags imap

Learn bird brother Linux private cuisine obtained

SendMail

You can use the Rpm-qa |grep sendmail to see if SENDMAIL-CF and SendMail are installed if the Yum-y install SENDMAIL-CF installation is not installed

(Note: After self-test, found that the yum command to download SENDMAIL-CF will also be installed SendMail)

(RPM parameter:-Q is the meaning of query queries, A is all meaning)

Use Rpm-qa|grep M4 to see if M4 is installed, M4 is a program that transforms the SendMail settings document.

Using Rpm-q mailx to see if MAILX is installed, MAILX is the simplest package for mail and delivery.

Use RPM-QA |grep IMAP to see how IMAP is installed, and IMAP is POP3 that main package. You can use the Yum-y install Dovecot for installation POP3 authentication.

Profiles (almost all under/etc/mail.)

/ETC/MAIL/SENDMAIL.CF This is the main profile of SendMail, all of which are in the management (the official cautioned not to edit manually).

/etc/mail/local-host-name: This is primarily used to handle the host name of a host that hosts multiple host names at the same time.

/etc/mail/access.db This is to specify who can use this mail server database, to be transferred to this database with Makemap and/etc/mail/access files. This file can be said to be the most important user rights management data in SendMail.

Execution file:

/usr/sbin/sendmail: SendMail is the main execution file, it will read sendmail.cf this file set content. (Enable this program, the default port is 25)

/usr/sbin/makemap: The main execution file that makes access into a access.db database.

/usr/sbin/mailstats:/etc/mail/statistics file read out of a program, you can see how sendmail work so far to transmit, how many messages received.

/usr/bin/newaliases: Turn/etc/mail/aliases into/etc/mail/aliases.db's execution file.

/USR/BIN/MAILQ: An instruction that is used to observe the data of/var/spool/mqueue this message staging directory.

/USR/BIN/M4: This is the main execution file that turns the *.MC file into a *.cf file. Need to match SendMail's original code, or SENDMAIL-CF this kit. (Note that SendMail originally did not include M4 in the kit)

Mail related directories

/var/spool/mail The directory that is placed by each consumer message after the message is received.

/var/spool/mquene: When the mail due to the other host or network problems can not be issued, then the message will be temporarily stored in this directory, and then the host every 30-60 minutes to retry the transmission, usually set within 5 days to send out, will be returned to the sender.

/var/spool/clientmqueue This is the queue directory where the new sendmail will appear.

Establish M4 parameter file: (can find quite a lot of sample files in/USR/SHARE/SENDMAIL-CF/CF)

Drivert (-1) means that if you have an annotation symbol in the *.MC file, you do not want to output the data when you output it.

OSTYPE (' Linux ') This feature is set in the operating system category used. /usr/share/sendmail-cf/ostype the supported operating system mode is found in this directory.

Define (' Alias_file ', '/etc/aliases ') places the mail alias file under/etc/aliases.

Undefine (' Uucp_relay '), in contrast to define, can be used to remove unwanted items.

FEATURE (' access_db ', ' hash-o/etc/mail/access.db ') This component FEATURE will set out sendmail additional tasks, the SendMail access to set the file, that is/etc/ Mail/access.db

Mailer This component is set to use the Mail host Transfer agent (MDA), if you want to let the host above the entity users can log in to the host environment to use SendMail, then you must start local mail delivery function, usually defined as mailer (local) and mailer (SMTP)

M4 the execution of the program, it must be read into the relevant parameter items before the line. This parameter item is in the/usr/share/sendmail-cf/m4/cf.m4 file,

Construction of SendMail under Linux system

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.