postfix를 설정하려고하는데 "임시 조회 실패"오류가 발생합니다.
main.cf :
inet_protocols = ipv4
inet_interfaces = all
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = ns0.dzervas.gr
mydomain = dzervas.gr
myorigin = dzervas.gr
mynetworks_style = host
mydestination = localhost, localhost.$mydomain, $myhostname, $mydomain, mail.$mydomain, www.$mydomain
virtual_mailbox_base = /var/mail/vhost
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 1000
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_alias_maps = hash:/etc/postfix/valias
smtp_generic_maps = hash:/etc/postfix/generic
vmailbox :
dzervas@dzervas.gr dzervas.gr/dzervas
dna@dzervas.gr dzervas.gr/dna
dzervas@ns0.dzervas.gr ns0.dzervas.gr/dzervas
용맹 :
webmaster@dzervas.gr dzervas@dzervas.gr
hostmaster@dzervas.gr dzervas@dzervas.gr
postmaster@dzervas.gr dzervas@dzervas.gr
#dzervas@ns0.dzervas.gr dzervas@dzervas.gr
일반적인:
dzervas@dzervas.gr root
텔넷 테스트 :
Trying <ip>...
Connected to <ip>.
Escape character is '^]'.
220 ns0.dzervas.gr ESMTP Postfix
ehlo test.com
250-ns0.dzervas.gr
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: testing@test.com
250 2.1.0 Ok
rcpt to: dzervas@dzervas.gr
451 4.3.0 <dzervas@dzervas.gr>: Temporary lookup failure
quit
221 2.0.0 Bye
Connection closed by foreign host.
journalctl 보고서 :
May 09 15:09:22 ns0 postfix/smtpd[7754]: error: open database /etc/aliases.db: No such file or directory
May 09 15:09:22 ns0 postfix/smtpd[7754]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
May 09 15:09:22 ns0 postfix/smtpd[7754]: connect from <client-ip>
May 09 15:09:43 ns0 postfix/smtpd[7754]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: No such file or directory
May 09 15:09:43 ns0 postfix/smtpd[7754]: warning: hash:/etc/aliases lookup error for "dzervas@dzervas.gr"
May 09 15:09:43 ns0 postfix/smtpd[7754]: NOQUEUE: reject: RCPT from <client-ip>: 451 4.3.0 <dzervas@dzervas.gr>: Temporary lookup failure; from=<testing@test.com> to=<dzervas@dzervas.gr> proto=ESMTP helo=<test.com>
May 09 15:09:52 ns0 postfix/smtpd[7754]: disconnect from <client-ip>
아직 DNS 레코드를 설정하지 않았 음을 지적해야합니다 (dzervas.gr이 아직 새 서버를 가리 키지 않습니다) 또한 아치 리눅스 x86_64에 있습니다.
편집 : 빈 / etc / aliases를 만든 다음 newaliases
새로운 문제 (telnet에서) :
rcpt to: dzervas@dzervas.gr
550 5.1.1 <dzervas@dzervas.gr>: Recipient address rejected: User unknown in local recipient table
그러나!:
rcpt to: root@localhost
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
hhahahahha
.
250 2.0.0 Ok: queued as <some-code>
편집 2 : main.cf에서 Recipient address rejected: User unknown in local recipient table
설정 local_recipient_maps =
하여 문제를 해결했습니다. 그러나 이제 dzervas@dzervas.gr에 대한 내 메일이 대기됩니다! 그것은 /var/mail/vmail/dzervas.gr/dzervas/에 가지 않습니다!
dzervas.gr
구성 되어 있는지 확인하고 있습니다. DNS가 작동하도록 설정 한 다음 테스트하십시오.