Common Parameters in the Postfix configuration file main. cf
Source: Internet
Author: User
Description of common parameters in the Postfix configuration file main. cf-Linux Enterprise Application-Linux server application information. The following is a detailed description. Parameters:
Myorigin
Note:
The myorigin parameter is used to specify the domain name used by the server for external mail.
By default, myorigin uses the name of the local host (the same as the parameter myhostname ).
Suggestion: use the default configuration in a small network. In the Internet, we recommend that you keep the myorigin and mydomain parameters the same. That is to say, the domain name of the server is used.
Forwarding restrictions are very important in the mail system. C-Link configures the most secure forwarding restriction parameters by default.
There are many forwarding restrictions: see mynetworks, relay_domains, and mydestination.
System Fault Report Configuration
Parameters:
Notify_classes
Note:
This parameter is used to notify the system in which case the user is notified.
The following parameter types are available:
The bounce email is unblocked and bounce;
2 bounce sends two bounce mails to Postmaster;
Delay notifies Postmaster of the delayed mail's header information;
The policy notifies Postmaster of the Information filtered out by the system;
Protocol notifies Postmaster of protocol error messages;
The resource notifies the Postmaster of the information that fails to be delivered due to a shortage of system resources;
The software notifies the Postmaster of the failed delivery due to a soft error.
For example:
Default Value:
Policy_classes = resource, software
Host Name Configuration
Parameters:
Myhostname
Note:
The myhostname parameter is used to describe the full name of the domain name of the server running the C-Link system that complies with the rules. In many UNIX systems, C-Link automatically detects the correct name. However, manual configuration is required in some operating systems, such as TurboLinux.
The system detects it by itself. It is not currently open.
System internal network subnet Configuration
Parameters:
Mynetworks_stype
Mynetworks
Note:
Mynetworks_stype is used to set the limits of the internal subnet of the mail system. Subnet is usually used. Set it to host in single-host mode.
Within the specified subnet, emails can be forwarded in an open manner. This is useful for configuring the mail cluster. However, be careful when using this function to prevent the email system from being set to open relay.
For example:
Mynetworks_style = subnet
Mynetworks_style = host
Mynetworks = 168.100.189.0/28,127.0 .0.0/8
Internal Network Address Configuration
Parameters:
Inet_interfaces
Note:
Inet_interfaces is used to specify a specific network address.
The system is retained and is not open for the moment.
For example:
Inet_interfaces = all
Inet_interfaces = virtual. host. name (virtual domain)
Used to limit the maximum number of simultaneous connections of the SMTP service. The default value is 50. You can configure extremely wide limits based on the server configurations and operating systems.
For example:
Default_process_limit = 1024
Local simultaneous address distribution restrictions
Parameters:
Local_destination_concurrency_limit
Note:
The system is retained and is not open for the moment.
For example:
Local_destination_concurrency_limit = 2
By default, the same-address distribution is limited.
Parameters:
Default_destination_concurrency_limit
Note:
The system is retained and is not open for the moment.
For example:
Default_destination_concurrency_limit = 10
Queue retransmission cycle
Parameters:
Queue_run_delay
Note:
Used to set the scanning cycle of delayed mail by the queue processing program.
The default value is 1000 seconds.
For example:
Queue_run_delay = 1000
Maximum queue Life Cycle
Parameters:
Maximal_queue_lifetime
Note:
It is used to set the maximum retention period for stranded mails by the queue processing program.
The default value is 5 days.
For example:
Maximal_queue_lifetime = 5
Minimum delivery failure period
Parameters:
Minimal_backoff_time
Note:
It is used to set the shortest tour time for undeliverable mails by the queue handler.
The default value is 1000 seconds.
For example:
Minimal_backoff_time= 1000
Maximum delivery failure period
Parameters:
Maximal_backoff_time
Note:
This parameter is used to set the maximum number of times the queue handler can tour messages that cannot be delivered.
The default value is 4000 seconds.
For example:
Maximal_backoff_time= 4000
Error command buffer time
Parameters:
Smtpd_error_sleep_time
Note:
When the SMTP service port receives an invalid command, the system will buffer the processing interval.
This parameter is very effective for preventing malicious attacks.
For example:
Smtpd_error_sleep_time = 5
Smtpd_error_sleep_time = 0
Soft Error Tolerance count
Parameters:
Smtpd_soft_error_limit
Note:
Number of soft errors allowed by the SMTP service. This parameter is very effective for preventing malicious attacks.
The default value is 10.
For example:
Smtp_soft_error_limit = 5
Hard error tolerance count
Parameters:
Smtpd_hard_error_limit
Note:
Number of hard errors allowed by the SMTP service. This parameter is very effective for preventing malicious attacks.
Reject_unauth_destination is rejected as the authenticated destination.
Permit_mx_backup allows reverse query of MX host names.
Check_recipient_access maptype: mapname is subject to the rules set in the mapname file.
Reject_unknown_recipient_domain refuse to forward to A domain name without a dns a or MX record.
Reject_non_fqdn_recipient rejects forwarding targets that do not comply with the rules.
Reject_unknown_sender_domain rejects the sender's domain name without the IP anti-resolution record.
ETRN command limit Filter
The system is retained and not open.
Anti-Spam organization Filtering
Parameters:
Maps_rbl_domains
Note:
This is a very distinctive anti-spam function. This parameter is usually set
Maps_rbl_domains = blackholes.mail-abuse.org
If RBL lookup is enabled, the system automatically synchronizes it with the mail-abuse, a world-renowned anti-spam organization. Organize the insecure email servers listed by mail-abuse.
This function is disabled by default.
SMTP dialog line length limit Filtering
Parameters:
Line_length_limit
Note:
Set the maximum length of the lines accepted by SMTP.
The default value is 2048 bytes.
Restricted email header length filtering
Parameters:
Header_size_limit
Note:
Set the maximum length of mail header information received by SMTP.
102400 bytes by default
Limited number of recipients Filtering
Parameters:
Extract_recipient_limit
Note:
Limit the number of extended recipients. This is usually used to prevent attack behavior by using the "sendmail-t" method.
Limited email Length Filtering
Parameters:
Message_size_limit
Note:
This parameter is very important. Used to limit the maximum length of a single email received by the system.
The default value is 10240000 bytes.
For example:
Message _ size_limit = 20480000
Bounce mail Length Filtering
Parameters:
Bounce_size_limit
Note:
This parameter is very important to set the maximum size of the Bounce Message.
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