내가 받은 이메일 중 실제 받은 편지함에 도착하는 이메일이 하나도 없는 것 같습니다. 그들은 루트 이메일로 이동합니다. (나의 경우는 이렇다.[이메일 보호됨])
이 내 꺼야 /var/log/maillog
:
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: warning: cannot get RSA certificate from file /etc/ssl/certs/ssl-mail.pem: disabling TLS support
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: warning: TLS library problem: 12945:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/ssl-mail.pem','r'):
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: warning: TLS library problem: 12945:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: warning: TLS library problem: 12945:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: connect from mail-qg0-f49.google.com[209.85.192.49]
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: lost connection after STARTTLS from mail-qg0-f49.google.com[209.85.192.49]
Nov 10 19:43:43 mail postfix/cleanup[12950]: 37B923FD30: message-id=<[email protected]>
Nov 10 19:43:43 mail postfix/qmgr[12940]: 37B923FD30: from=<[email protected]>, size=901, nrcpt=1 (queue active)
Nov 10 19:43:43 mail postfix/submission/smtpd[12945]: disconnect from mail-qg0-f49.google.com[209.85.192.49]
Nov 10 19:43:43 mail postfix/trivial-rewrite[12951]: warning: do not list domain example.com in BOTH mydestination and virtual_alias_domains
Nov 10 19:43:43 mail postfix/local[12952]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Nov 10 19:43:43 mail postfix/trivial-rewrite[12951]: warning: do not list domain example.com in BOTH mydestination and virtual_alias_domains
Nov 10 19:43:43 mail postfix/local[12952]: 37B923FD30: to=<[email protected]>, orig_to=<postmaster>, relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Nov 10 19:43:43 mail postfix/qmgr[12940]: 37B923FD30: removed
이 내 꺼야 /etc/postfix/main.cf
:
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/mydomains
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
# inet_interfaces = localhost
# mydestination = $myhostname, example.com, localhost
unknown_local_recipient_reject_code = 550
alias_database = hash:/etc/aliases
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
myhostname = mail.example.com
# mydestination = $myhostname
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = mail.example.com, example.com, localhost, localhost.localdomain
# mydestination = localhost $mydomain, localhost
# mydestination = localhost.$mydomain, localhost, mail.example.com
mydomain = example.com
myorigin = $mydomain
home_mailbox = mail/
mynetworks = 127.0.0.0/8
inet_interfaces = all
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, smtpd_client_restrictions, reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtp_use_tls = yes
smtpd_tls_received_header = yes
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_auth_only = yes
tls_random_source = dev:/dev/urandom
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
milter_protocol = 2
내 파일에 어떤 설정도 없습니다 /etc/postfix/virtual
. 그것이 지금 당장 중요한지는 잘 모르겠습니다.
이것은 /etc/aliases
:
# Basic system aliases -- these MUST be present.
mailer-daemon: postmaster
postmaster: root
# General redirections for pseudo accounts.
bin: root
daemon: root
adm: root
lp: root
sync: root
shutdown: root
halt: root
mail: root
news: root
uucp: root
operator: root
games: root
gopher: root
ftp: root
nobody: root
radiusd: root
nut: root
dbus: root
vcsa: root
canna: root
wnn: root
rpm: root
nscd: root
pcap: root
apache: root
webalizer: root
dovecot: root
fax: root
quagga: root
radvd: root
pvm: root
amandabackup: root
privoxy: root
ident: root
named: root
xfs: root
gdm: root
mailnull: root
postgres: root
sshd: root
smmsp: root
postfix: root
netdump: root
ldap: root
squid: root
ntp: root
mysql: root
desktop: root
rpcuser: root
rpc: root
nfsnobody: root
ingres: root
system: root
toor: root
manager: root
dumper: root
abuse: root
newsadm: news
newsadmin: news
usenet: news
ftpadm: ftp
ftpadmin: ftp
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
webmaster: root
noc: root
security: root
hostmaster: root
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster
# trap decode to catch security attacks
decode: root
# Person who should get root's mail
#root: marc
답변1
- 경고에 대해서는 오류 로그를 확인하십시오.
Nov 10 19:43:43 mail postfix/trivial-rewrite[12951]: warning: do not list
domain dougbeney.com in BOTH mydestination and virtual_alias_domains
그것이 바로 그것이 말하는 것입니다. 그러지 마세요. 도메인은 에 위치할 수도 mydestination
있고 의 가상 도메인일 수도 있습니다 virtual_alias_domains
. 둘 다 갖는 것은 불가능합니다.
- 당신의 밀트리에는 무엇이 들어있나요? 수신 메시지를 루트에 전달하여 격리합니까?