
mx2.mycorp.com
에 대한 메일을 받는 메일 릴레이( )가 있습니다 [email protected]
. 이러한 게시물은 해당 도메인에 대한 게시물을 허용하는 Sympa 메일링 리스트 서버로 전달됩니다 mycorp.com
.
이것은 이전 버전의 Sympa 및 Ubuntu 14.04에서 꽤 오랫동안 작동해 왔지만 문제는 두 스택 모두 업그레이드가 필요했고 두 소프트웨어 조각 모두에서 사용 중단으로 인해 많은 설정이 중단되었다는 것입니다.
Ubuntu 18.04로 다시 시작하지만 lists.mycorp.com
Sympa가 메일링 리스트에 대한 게시를 수락하는 방식으로 Sympa 서버에 중계하기 위해 postfix 전송을 얻는 방법을 잘 알 수 없습니다. 현재 Sympa 서버는 'lists.mycorp.com (only
mycorp.com'에 대한 메일을 허용하도록 구성되지 않았기 때문에 단순히 송신 메일 서버로 게시를 중계하고 있습니다. 이는 허영심 때문에 구성되었습니다. 프로젝트의 이해관계자는 메일링 리스트에 대한 하위 도메인을 원하지 않습니다.
대상 도메인을 다시 작성하기 위해 postfix를 얻는 방법이 있습니까?~ 후에메시지를 어디로 전달해야 하는지 알아냈나요?
postconf -n
및 내용 postconf -M
:
# postconf -n
alias_database = hash:/etc/aliases,hash:/etc/mail/sympa/aliases
alias_maps = mysql:/etc/postfix/mysql-sympa-lists-with-exclusions.cf,mysql:/etc/postfix/mysql-sympa-owners.cf,mysql:/etc/postfix/mysql-sympa-request.cf,mysql:/etc/postfix/mysql-sympa-u
nsubscribe.cf,hash:/etc/mail/sympa/aliases,hash:/etc/aliases
biff = no
default_privs = sympa
home_mailbox = .maildir/
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
mailbox_size_limit = 60000000
mailbox_transport = smtp:[mx1.mycorp.com]:2525
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, lists.mycorp.com, lists.test.mycorp.com
mydomain = mycorp.com
myhostname = lists.mycorp.com
mynetworks = 127.0.0.0/8 10.140.136.0/23
myorigin = $mydomain
readme_directory = no
recipient_canonical_maps = hash:/etc/postfix/myrecipientmap
recipient_delimiter = +
relay_domains = $mydestination, lists.mycorp.com
smtp_destination_concurrency_limit = 5
smtp_destination_rate_delay = 1s
smtp_extra_recipient_limit = 5
smtp_host_lookup = native,dns
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination
smtpd_sender_restrictions = hash:/etc/postfix/sender_access
sympa_destination_recipient_limit = 1
sympabounce_destination_recipient_limit = 1
transport_maps = regexp:/etc/postfix/transport_regexp
unknown_local_recipient_reject_code = 450
virtual_alias_maps = hash:/etc/postfix/virtual
# postconf -M
smtp inet n - n - - smtpd -v
pickup unix n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr unix n - n 300 1 qmgr
tlsmgr unix - - y 1000? 1 tlsmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
trace unix - - y - 0 bounce
verify unix - - y - 1 verify
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
showq unix n - y - - showq
error unix - - y - - error
retry unix - - y - - error
discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
anvil unix - - y - 1 anvil
scache unix - - y - 1 scache
maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
sympa unix - n n - - pipe flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
sympabounce unix - n n - - pipe flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${recipient}
답변1
내가 쓴 기사가 이 문제와 관련이 있는지는 모르겠지만 tu ubuntu 22.04를 업그레이드하고 mailman2를 교체할 때 비슷한 문제가 있었고 솔루션을 문서화해야 했습니다.여기다른 솔루션에 대한 링크가 있습니다.