Answer the question
In order to leave comments, you need to log in
How to set up a domain in postfix?
I have a domain test.kz. In the DNS setup, I specified the mail.test.kz machine with the MX flag for mail service. With a separate entry in the DNS with the A flag, I indicated the IP for this machine.
I set up receiving mail in postfix, letters come to [email protected], but letters leave already in the form [email protected]
postfix config
myorigin = test.kz
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl snakeoil.key--cert
smtpd_use_tls = yes
or The smtpd_tls_session_cache_database = the btree: $ {} data_directory / smtpd_scache
smtp_tls_session_cache_database = the btree: $ {} data_directory / smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.test.kz the
mydomain = test.kz
alias_maps = hash: /etc/aliases
alias_database = hash:/etc/aliases
mydestination = test.kz, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8[::ffff:127.0.0.0]/104[::1]/128 172.17.0.0/16
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,reject_unauth_destination
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question