Title: Theory / Unimportant / CS / Softw / Server / postfix
Tags: hasNotNewEffectReturnsMeaning computer_to_instruction FromInstruction FromVariables fromCommandLine declaration Variable_missing_meaning hasNotNewEffectReturnsMeaningn some_instruction
On every note of this deck, unless a note says otherwise:
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html

Name: Configuration files of postfix
Definition: /etc/postfix/main.cf
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html
Chapter: Introduction

Instruction: $var
Effect: The content of the variable var
Chapter: Introduction

Question: Difference between unix and postfix variables ?
Answer: No quote for postfix, and variables are lazy. Looked only when needed. Hence can be used before their definition
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html
Chapter: Introduction

Instruction: postfix reload
Effect: Tell postfix to read again the configuration files
Chapter: Introduction

Variable: myorigin
Meaning: The domain that appears in mail that is posted on this machine.
Also the domain name that is appended to an unqualified recipient address.
Chapter: Introduction
Initialization: $myhostname

Variable: mydomain
Meaning: The parent domain of the machine name.
Chapter: Introduction

Variable: mydestination
Meaning: What domains this machine will deliver locally, instead of forwarding to another machine. Separated by variables.
Chapter: Introduction
Initialization: Receive mail for the machine itself

Variable: mynetworks
Meaning: A list of networks, separated by spaces, of the form ip/n
The networks for which the mail should be send.
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.htmlF
Section: mynetworks_style
Chapter: Introduction
Typ: variable

Instruction: mynetworks_style=host
Effect: Postfix should forward mail from only the local machine.
Chapter: Introduction
Section: mynetworks_style

Instruction: mynetworks_style=subnet
Effect: Postfix should forward mail from SMTP clients in the same IP subnetworks as the local machine. On Linux, this works correctly only with interfaces specified with the "ifconfig" command.
Chapter: Introduction
Section: mynetworks_style

Instruction: mynetworks_style=class
Effect: Postfix should forward mail from SMTP clients in the same IP class A/B/C networks as the local machine. Don't do this with a dialup site - it would cause Postfix to "trust" your entire provider's network. Instead, specify an explicit mynetworks list by hand.
Chapter: Introduction
Section: mynetworks_style

Question: If both mynetworks_style and mynetworks are defined, what happens ?
Answer: mynetworks_style is ignored
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html
Chapter: Introduction
Section: mynetworks_style

Variable: mynetworks_style
Section: What clients to relay mail from
Chapter: Introduction
Initialization: subnet

Variable: relay_domains
Meaning: The list of domains to which postfix forwards mail from stranger.
Section: What destinations to relay mail to
Chapter: Introduction
Initialization: $mydestination

Variable: relayhost
Meaning: The domain by which mail must be sent. Enclosed in [] to eliminates DNS MX lookups.
Section: What delivery method: Direct or indirect ?
Chapter: Introduction
Initialization: direct delivery to internet

Variable: /etc/aliases
Meaning: The database of aliases for postfix
Section: What trouble to report to the postmaster
Chapter: Introduction
Typ: file

Instruction: foo:bar
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html
Meaning: State that foo is an alias for bar
Chapter: Introduction
Section: What trouble to report to the postmaster
Context: /etc/aliases

Instruction: newaliases
Effect: Read the alias configuration file of postfix
Context: /etc/aliases
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes
Effect: comma separated list of events to report to postmaster
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=bounce
Effect: Inform the postmaster of undeliverable mail. Either send the postmaster a copy of undeliverable mail that is returned to the sender, or send a transcript of the SMTP session when Postfix rejected mail. For privacy reasons, the postmaster copy of undeliverable mail is truncated after the original message headers. This implies "2bounce" (see below). See also the luser_relay feature. The notification is sent to the address specified with the bounce_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=2bounce
Effect: When Postfix is unable to return undeliverable mail to the sender, send it to the postmaster instead (without truncating the message after the primary headers). The notification is sent to the address specified with the 2bounce_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=delay
Effect: Inform the postmaster of delayed mail. In this case, the postmaster receives message headers only. The notification is sent to the address specified with the delay_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=policy
Effect: Inform the postmaster of client requests that were rejected because of (UCE) policy restrictions. The postmaster receives a transcript of the SMTP session. The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=protocol
Effect: Inform the postmaster of protocol errors (client or server side) or attempts by a client to execute unimplemented commands. The postmaster receives a transcript of the SMTP session. The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=resource
Effect: Inform the postmaster of mail not delivered due to resource problems (for example, queue file write errors). The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: notify_classes=software
Effect: Inform the postmaster of mail not delivered due to software problems. The notification is sent to the address specified with the error_notice_recipient configuration parameter (default: postmaster).
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What trouble to report to the postmaster

Instruction: proxy_interface
Effect: the proxy/NAT external network address
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: Proxy/NAT external network addresses

Instruction: postfix check
Effect: causes Postfix to report file permission/ownership discrepancies.
Context: /etc/postfix/main.cf
Chapter: Introduction
Section: What you need to know about Postfix logging

Variable: myhostname
Meaning: fully-qualified domain name that the mail system should use.
Section: my own domain name
Chapter: Introduction
Initialization: Local machine name

Variable: inet_interfaces parametr
Meaning: specifies all network interface addresses that the Postfix system should listen on
Section: What you need to know about Postfix logging
Chapter: Introduction
Initialization: List on all active interfaces

Instruction: foo = var
Page: http://www.postfix.org/BASIC_CONFIGURATION_README.html
Meaning: Create a variable foo whose value is var
Chapter: Introduction
Context: postfix
Identifier: foo