Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

List of postfix main.cf configuration parameters

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the "postfix main.cf configuration parameter list" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Format of the contents of the main.cf file:

Each logical line is in the form of name=value, and the spaces on both sides of the = and the spaces at the end of the logical line are ignored.

Blank lines, lines that begin with # or lines full of spaces will be ignored.

Logical lines do not start with spaces, and if a line begins with spaces, it represents the continuity of logical lines.

Some parameters may be associated with other parameters:

The expression $name or ${name} represents a variable, and undefined parameters are replaced by null values.

. . .

If the same parameter occurs multiple times, the last occurrence shall prevail.

Main.cf parameter list:

2bounce_notice_recipient (default: postmaster): the recipient when the delivery fails and cannot be returned to the sender

Access_map_defer_code (default: 450): smtp code returned by the delayed action of access (5)

The smtp code returned by the reject action of access_map_reject_code (default: 554) access (5)

Address_verify_cache_cleanup_interval (default: 12h): address check cache time

Address_verify_map (default: see "postconf-d" output): query table with persistent storage address check status

Content_filter (default: empty): when the message is queued, the entire message is sent to the transport:destination destination.

Default_destination_concurrency_limit (default: 20) the maximum number of concurrent deliveries to the same destination, targeting domain names or recipients.

Default_destination_recipient_limit (default: 50) the maximum number of recipients of a message.

Depth of hash_queue_depth (default: 1) queue directory

Hash_queue_names (default: deferred, defer) queue directory name

Header_size_limit (default: 102400) maximum number of bytes in header

Hopcount_limit (default: 50) the maximum number of Received allowed in the header to prevent potential circular delivery.

In_flow_delay (default: 1s) when the incoming rate exceeds the delivery rate, the waiting time for each new message to enter. The legal value is 0-10.

Inet_interfaces (default: all) ip that the mail system listens to

Initial_destination_concurrency (default: 5) initializes the number of delivery concurrency for each target domain name

When line_length_limit (default: 2048) receives a message, each line is divided into segments according to the maximum length, and each line is reorganized according to the maximum length when delivered.

Interval between maximal_backoff_time (default: 4000 s) delayed delivery of messages

Maximal_queue_lifetime (default: 5d) the maximum survival time of a message in the queue, which is considered undeliverable.

Message_drop_headers (default: bcc, content-length, resent-bcc, return-path) cleanup (8) will automatically remove the header before milter is called after head_check. The header name is not case sensitive.

Message_size_limit (default: 10240000) the maximum size of the message, including envelope data.

Timeout of communication between milter_command_timeout (default: 30s) and milter

Milter_connect_macros (default: see "postconf-d" output) will be sent to the milter macro when a smtp connection ends

Timeout for milter_connect_timeout (default: 30s) connection to milter

Timeout for milter_content_timeout (default: 300s) to send email content to milter

Milter_default_action (default: tempfail) actions when milter is not available:

Accept

Proceed as if the mail filter was not present.

Reject

Reject all further commands in this session with a permanent status code.

Tempfail

Reject all further commands in this session with a temporary status code.

Quarantine

Like "accept", but freeze the message in the "hold" queue. Available with Postfix 2.6 and later.

The maximum length of the mime_boundary_length_limit (default: 2048) delimiter

Mime_nesting_limit (default: 100) the number of layers of message content allowed to be nested

Mynetworks (default: see "postconf-d" output) trusted smtp client network

Maximum number of messages in the qmgr_message_active_limit (default: 20000) active queue

Maximum number of recipients maintained in memory by the qmgr_message_recipient_limit (default: 20000) queue manager

The top-level directory of the queue_directory (default: see "postconf-d" output) queue where the daemon will execute chroot

Interval between queue_run_delay (default: 300s) queue manager scanning delay queues

Ip used by smtp_bind_address (default: empty) when sending out mail

Does smtp_always_send_ehlo (default: yes) always send the ehlo command first when sending out mail?

Connection timeout when outgoing mail from smtp_connect_timeout (default: 30s)

Smtpd_authorized_verp_clients (default: $authorized_verp_clients) which clients are allowed to use XVERP commands

Smtpd_authorized_xclient_hosts (default: empty) which clients are allowed to use the XCLIENT feature

Smtpd_authorized_xforward_hosts (default: empty) which clients are allowed to use the XFORWARD feature

Smtpd_banner (default: $myhostname ESMTP $mail_name) Welcome message

The maximum number of AUTH instructions per second allowed by smtpd_client_auth_rate_limit (default: 0) to any client

Maximum number of concurrent connections per second allowed by smtpd_client_connection_count_limit (default: 50) for any client

Smtpd_client_message_rate_limit (default: 0) allows mail delivery requests per second to any client

Smtpd_recipient_limit (default: 1000) maximum number of recipients allowed per mail

Whether smtpd_sasl_auth_enable (default: no) enables sasl authentication

Configuration name of the smtpd_sasl_path (default: smtpd) sasl service

Type of smtpd_sasl_type (default: cyrus) sasl plug-in

Transport_destination_concurrency_limit (default: $default_destination_concurrency_limit) limits the number of concurrency of transfers per destination

Transport_maps (default: empty) transmits the query table, which is used to query the corresponding transmission mode of the recipient.

This is the end of the list of postfix main.cf configuration parameters. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report