.png)
포괄적인 기능은 기존 사서함에는 잘 작동하지만 임의 사서함에는 작동하지 않습니다. 뭐가 잘못 되었 니?
존재하지 않는 사서함으로 보내면 ( /etc/log/maillog
):
Dec 27 23:09:42 vps40198 postfix/smtpd[18623]: NOQUEUE: reject: RCPT from mail-oa0-f47.google.com[209.85.219.47]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-oa0-f47.google.com>
내 메일 서버가 존재하지 fake.tld
않는 random
사용자입니다.
관련 /etc/postfix/*.cf
파일은 다음과 같습니다.
#mysql-domains.cf
host = localhost
user = postfix
password = xxxx
dbname = postfix
query = SELECT 1 FROM domain WHERE domain = '%s'
#mysql-email2email.cf
host = localhost
user = postfix
password = xxxx
dbname = postfix
query = SELECT username FROM user WHERE username = '%s'
#mysql-forwards.cf
host = localhost
user = postfix
password = xxxx
dbname = postfix
query = SELECT dst FROM forward WHERE src = '%s'
#mysql-mailboxes.cf
host = localhost
user = postfix
password = xxxx
dbname = postfix
query = SELECT CONCAT(SUBSTRING_INDEX(username,'@',-1),'/mail/',username,'/') FROM user WHERE username = '%s'
사용자의 도메인이 데이터베이스에 존재합니다.
뭐가 잘못 되었 니?
편집하다:
메일을 저장할 디렉토리가 필요하다고 가정합니다. 메일을 디스크에 저장하지 않고 리디렉션하려면 어떻게 해야 합니까?
답변1
virtual_alias_maps 대신 virtual_mailbox_alias_maps를 사용한 것으로 나타났습니다. 전자는 존재하지 않지만 Postfix는 불평하지 않았습니다. 어떻게 이런 일이 발생했는지 전혀 모르겠습니다. 잘못된 가이드이거나 제가 잘못 입력했을 수도 있습니다.