This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:postfix [2019/01/04 02:07] – [Logging] tmade | linux:postfix [2019/10/31 12:34] – [Set Sender] tmade | ||
---|---|---|---|
Line 27: | Line 27: | ||
/ | / | ||
+ | |||
+ | ====generic===== | ||
+ | If you run a postfix host without a signed domain such as " | ||
+ | | ||
+ | Content file "/ | ||
+ | |||
+ | myaccount@myserver mymailadresse@domain.net | ||
+ | |||
+ | Execute: | ||
+ | |||
+ | postmap / | ||
+ | | ||
+ | ====sasl_password==== | ||
+ | |||
+ | Content "/ | ||
+ | |||
+ | mail.domain.net myuser@domain.net: | ||
+ | |||
+ | Execute: | ||
+ | |||
+ | postmap hash:/ | ||
+ | | ||
+ | |||
+ | ====main.cf==== | ||
+ | |||
+ | / | ||
+ | |||
+ | < | ||
+ | # See / | ||
+ | |||
+ | |||
+ | # Debian specific: | ||
+ | # line of that file to be used as the name. The Debian default | ||
+ | # is / | ||
+ | #myorigin = / | ||
+ | |||
+ | smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) | ||
+ | biff = no | ||
+ | |||
+ | # appending .domain is the MUA's job. | ||
+ | append_dot_mydomain = no | ||
+ | |||
+ | # Uncomment the next line to generate " | ||
+ | # | ||
+ | |||
+ | readme_directory = no | ||
+ | |||
+ | # TLS parameters | ||
+ | smtpd_tls_cert_file=/ | ||
+ | smtpd_tls_key_file=/ | ||
+ | smtpd_use_tls=yes | ||
+ | smtpd_tls_session_cache_database = btree: | ||
+ | smtp_tls_session_cache_database = btree: | ||
+ | |||
+ | # See / | ||
+ | # information on enabling SSL in the smtp client. | ||
+ | |||
+ | smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination | ||
+ | myhostname = test.local | ||
+ | alias_maps = hash:/ | ||
+ | alias_database = hash:/ | ||
+ | myorigin = / | ||
+ | mydestination = $myhostname, | ||
+ | relayhost = mail.test.net: | ||
+ | mynetworks = 127.0.0.0/8 [:: | ||
+ | mailbox_size_limit = 0 | ||
+ | recipient_delimiter = + | ||
+ | inet_interfaces = loopback-only | ||
+ | inet_protocols = all | ||
+ | |||
+ | # required if you want to send mails to a mailprovider | ||
+ | sender_canonical_maps = hash:/ | ||
+ | smtp_generic_maps = hash:/ | ||
+ | |||
+ | smtp_tls_security_level = may | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | smtp_sasl_security_options = noanonymous | ||
+ | # | ||
+ | </ | ||
+ | |||
| | ||
==== Transport ==== | ==== Transport ==== |