
내가 설치한 Digital Ocean VPS가 있습니다.접미사. 나하고 싶어메일 전달.
postfix를 설치할 때 선택했습니다.구성 없음옵션. 나중에 다음을 설정했습니다.
내가 만들었다main.cf
~에/etc/postfix
virtual_alias_domains = gintegraconstruccion.com
virtual_alias_maps = hash:/etc/postfix/virtual
만들어진virtual
그런 다음 postfix를 다시 시작했습니다.
내 DNS 구성에서(나는대디) 나는 그랬다:
생성됨기록:
Host Points to
contacto 107.XX.XX.XX
생성됨MX 레코드:
Host Points to
@ contacto.gintegraconstruccion.com
그러나 나는 그것을 시도했고 내 Gmail받은 편지함에 메일을 받았습니다.
출력은 다음과 dig gintegraconstruccion.com
같습니다.
; <<>> DiG 9.8.1-P1 <<>> gintegraconstruccion.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34297
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;gintegraconstruccion.com. IN MX
;; ANSWER SECTION:
gintegraconstruccion.com. 599 IN MX 0 contacto.gintegraconstruccion.com.
;; Query time: 93 msec
;; SERVER: 8.8.4.4#53(8.8.4.4)
;; WHEN: Wed May 14 13:01:53 2014
;; MSG SIZE rcvd: 67
참고로 저는 마이그레이션하지 않았기 때문에 현재 Openshift를 사용하여 사이트를 호스팅하고 있습니다.
확인 중/etc/log/mail.log
내가 찾은 것 :
May 14 11:52:51 localhost postfix/postfix-script[24478]: fatal: the Postfix mail system is not running
May 14 12:02:05 localhost postfix/postfix-script[24600]: fatal: the Postfix mail system is not running
May 14 12:02:27 localhost postfix/master[24724]: daemon started -- version 2.9.6, configuration /etc/postfix
May 14 12:02:31 localhost postfix/master[24724]: reload -- version 2.9.6, configuration /etc/postfix
May 14 13:06:07 localhost postfix/smtpd[24865]: error: open database /etc/aliases.db: No such file or directory
May 14 13:06:07 localhost postfix/smtpd[24865]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
May 14 13:06:07 localhost postfix/smtpd[24865]: connect from f.qw.se[109.74.194.71]
May 14 13:06:13 localhost postfix/smtpd[24865]: disconnect from f.qw.se[109.74.194.71]
May 14 13:06:44 localhost postfix/smtpd[24865]: connect from f.qw.se[109.74.194.71]
May 14 13:07:07 localhost postfix/smtpd[24865]: 5F052432EF: client=f.qw.se[109.74.194.71]
May 14 13:07:15 localhost postfix/smtpd[24865]: disconnect from f.qw.se[109.74.194.71]
May 14 13:10:36 localhost postfix/anvil[24867]: statistics: max connection rate 2/60s for (smtp:109.74.194.71) at May 14 13:06:44
May 14 13:10:36 localhost postfix/anvil[24867]: statistics: max connection count 1 for (smtp:109.74.194.71) at May 14 13:06:07
May 14 13:10:36 localhost postfix/anvil[24867]: statistics: max cache size 1 at May 14 13:06:07
May 14 13:14:20 localhost postfix/master[24724]: reload -- version 2.9.6, configuration /etc/postfix
May 14 13:18:29 localhost postfix/master[24724]: reload -- version 2.9.6, configuration /etc/postfix
May 14 13:21:04 localhost postfix/smtpd[24982]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
May 14 13:21:04 localhost postfix/smtpd[24982]: connect from mail-wi0-f175.google.com[209.85.212.175]
May 14 13:21:05 localhost postfix/smtpd[24982]: 1BC40432EF: client=mail-wi0-f175.google.com[209.85.212.175]
May 14 13:21:05 localhost postfix/cleanup[24987]: 1BC40432EF: message-id=<[email protected]$
May 14 13:21:05 localhost postfix/qmgr[24976]: 1BC40432EF: from=<[email protected]>, size=2670, nrcpt=1 (queue active)
May 14 13:21:05 localhost postfix/smtpd[24982]: disconnect from mail-wi0-f175.google.com[209.85.212.175]
May 14 13:21:05 localhost postfix/smtp[24988]: connect to gmail-smtp-in.l.google.com[2607:f8b0:400e:c01::1a]:25: Network is unreachable
May 14 13:21:06 localhost postfix/smtp[24988]: 1BC40432EF: to=<[email protected]>, orig_to=<[email protected]$
May 14 13:21:06 localhost postfix/qmgr[24976]: 1BC40432EF: removed
로그의 마지막 줄(핫메일에서 보낸 메일이 작동한 후):
May 14 13:52:19 localhost postfix/smtpd[25133]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
May 14 13:52:19 localhost postfix/smtpd[25133]: connect from col0-omc1-s18.col0.hotmail.com[65.55.34.28]
May 14 13:52:20 localhost postfix/smtpd[25133]: 22ED0432EF: client=col0-omc1-s18.col0.hotmail.com[65.55.34.28]
May 14 13:52:20 localhost postfix/cleanup[25137]: 22ED0432EF: message-id=<[email protected]>
May 14 13:52:20 localhost postfix/qmgr[25091]: 22ED0432EF: from=<[email protected]>, size=1528, nrcpt=1 (queue active)
May 14 13:52:20 localhost postfix/smtpd[25133]: disconnect from col0-omc1-s18.col0.hotmail.com[65.55.34.28]
May 14 13:52:22 localhost postfix/smtp[25138]: 22ED0432EF: to=<[email protected]>, orig_to=<[email protected]>$
May 14 13:52:22 localhost postfix/qmgr[25091]: 22ED0432EF: removed
답변1
가상 지도는 파일 을 생성한 후 유형(구성 줄에서 hash
으로 지정됨 )이므로 를 실행하여 지도를 생성해야 합니다 .hash:
virtual
postmap /etc/postfix/virtual
postalias /etc/aliases
로그의 오류로 판단하면 파일이 없다고 불평하기 때문에 실행해야 합니다 aliases.db
.
구성 줄 에 오타가 있습니다 virtual_alias_domains
. 도메인의 첫 글자는 G가 아닌 Q입니다.
virtual_alias_domains = qintegraconstruccion.com
이것이 실제 구성 파일에 존재하고 여기 질문의 오타가 아닌 경우에도 수정이 필요합니다.
마지막으로 귀하가 제공한 로그 샘플에는 성공적으로 전달된 이메일이 1개 있는 것 같습니다. 메시지가 1BC40432EF
Google로 성공적으로 전송되었습니다. Google은 이메일을 수락한 후 해당 이메일을 폐기했을 수도 있지만했다그것을 받아들이십시오.
일반 배송 가능성당신에게 중요할 것입니다. Google Apps for Business를 실행하고 있지 않기 때문에 Google 내에서 IP 주소를 허용할 방법이 없습니다. 따라서 일반적인 모범 사례를 모두 준수해야 합니다. 모든 정보가 정확하다면 Gmail은 메일을 거부하지 않을 것입니다.
- 현재 귀하의 IP 주소에 대한 역방향 조회가 없습니다. 이에 대해서는 DigitalOcean에 문의해야 합니다. 이는
myhostname
postfix 구성의 지시문 과 동일해야 합니다 .contacto.gintegraconstruccion.com
이미 올바른 IP 주소를 가리키고 있으므로 사용하는 것이 좋습니다 . - 귀하는 현재 SpamHaus의 PBL에 없습니다. 좋은 일이지만 운이 좋았습니다. Amazon EC2 주소~이다귀하가 Amazon에 귀하의 PBL을 제거하도록 요청하지 않는 한 PBL에 있습니다. 클라우드 제공업체(및 주거용 제공업체)는 해당 IP 주소에서 메일을 보내서는 안 된다는 정책 때문에 PBL에 있을 가능성이 높습니다.
- 넌 ~가 없다SPF 레코드.
- DKIM 레코드가 있을 가능성은 거의 없습니다.
- DMARC 레코드가 없습니다. 이는 일부 제공업체가 귀하의 메일을 거부하는 이유를 이해하는 데 도움이 될 것입니다. SPF 또는 DKIM 레코드를 잘못 구성하면 DMARC 보고서에서 알려드립니다.
- 보낸 사람: 주소는 @gmail.com 주소입니다. 귀하의 봉투 발신자 주소가 어떻게 될지는 모르겠지만 만약 그렇다면
gmail.com
SPF를 지원하는 호스트는 귀하의 IP 주소가 Gmail의 SPF 레코드에 없기 때문에 귀하의 메일을 거부할 것입니다. 봉투 발신 주소는smtp_helo_name
postfix 구성의 행에 의해 설정됩니다.