Answer the question
In order to leave comments, you need to log in
How to configure posfix to forward mail from gitlab?
I need postfix to simply forward mail from gitlab via smtp through a mailbox created on Yandex.
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = pvevmgitlab.bt.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, pvevmgitlab, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 51200000
recipient_delimiter = +
inet_interfaces = all
default_transport = smtp
relay_transport = smtp
inet_protocols = ipv4
myorigin = /etc/mailname
disable_dns_lookups = yes
# pdd.yandex.ru: SMTP-Relay config
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
smtp_sasl_mechanism_filter = login
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
sender_canonical_maps = hash:/etc/postfix/canonical
smtp_generic_maps = hash:/etc/postfix/generic
# Яндекс не принимает plain-text сообщений, только зашифрованные
smtp_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
Answer the question
In order to leave comments, you need to log in
I haven't done it myself, but maybe this will give you an idea .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question