![postfix는 dovecot lmtp 대신 로컬 전달을 수행합니다.](https://rvso.com/image/762160/postfix%EB%8A%94%20dovecot%20lmtp%20%EB%8C%80%EC%8B%A0%20%EB%A1%9C%EC%BB%AC%20%EC%A0%84%EB%8B%AC%EC%9D%84%20%EC%88%98%ED%96%89%ED%95%A9%EB%8B%88%EB%8B%A4..png)
Sieve가 내 시스템에서 실행되고 있지 않으며 postfix가 dovecot을 거치지 않고 로컬 maildir 전달을 수행하는 이유인 것 같습니다.
세부정보: 시스템:Ubuntu 20.10
/etc/postfix/main.cf:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
compatibility_level = 2
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = $myhostname, example.com, localhost
myhostname = mail.example.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 <IP ADDRESSES>
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = _
relayhost =
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_pipelining reject_non_fqdn_recipient reject_unknown_recipient_domain reject_unauth_destination reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = mail.example.com
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = no
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/mailserver.crt
smtpd_tls_key_file = /etc/postfix/ssl/mailserver.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_transport = lmtp:unix:private/dovecot-lmtp
#mailbox_transport = lmtp:unix:private/dovecot-lmtp
#local_transport = lmtp:unix:private/dovecot-lmtp
대신 위에 설명된 옵션 중 하나를 시도했을 때 virtual_transport
메일을 전달할 수 없게 되기 시작했습니다.
/etc/dovecot/dovecot.conf:
!include_try /usr/share/dovecot/protocols.d/*.protocol
!include conf.d/*.conf
!include_try local.conf
protocols = lmtp imap
/etc/dovecot/conf.d/10-master.conf (발췌):
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
/etc/postfix/가상:
MAILER-DAEMON admin
postmaster admin
support admin
abuse admin
logcheck admin
root admin
example.com xxxxx
[email protected] user1
[email protected] user1
[email protected] user1
[email protected] user2
답변1
당신은 postfix를 말했어요어떻게virtual
목적지 로 우편물을 비둘기장으로 배달합니다 .
아마도 postfix에 말하지 않은 내용은 다음과 같습니다.어느대상은 를 통해 처리되고 local
으로 전달됩니다 virtual
.
예를 들어, local
운송 대상을 정의하는 방법은 다음과 같습니다.
mydestination = example.com, localhost
virtual_alias_maps =
운송 목적지를 정의하는 방법 virtual
은 다음과 같습니다.
mydestination =
virtual_alias_maps = hash:/etc/postfix/virtual
lmtp를 통해 dovecot&sieve로 이동하는 도메인을 제거하려는 것 같습니다 mydestination
. 비어 있는 것이 완벽하게 유효합니다 mydestination
. 예를 들어 다음과 같습니다.모두받은 메일은 비둘기장으로 전달됩니다.