error
1. postdrop: warning: unable to look up public/pickup: No such file or directory
mkfifo /var/spool/postfix/public/pickup
systemctl restart postfix
2. postmap: fatal: bad string length 0 < 1: setgid_group =
vi /etc/postfixmain.cf
setgid_group= → #setgid_group=
sudo postmap /etc/postfix
3. SASL authentication failed; server smtp.gmail.com[74.125.203.109] said: 535-5.7.8 Username and Password not accepted. Learn more at?535 5.7.8 https://support.google.com/mail/?p=BadCredentials iw5-20020a170903044500b0016d5e4d29f8sm13369plb.9 - gsmt:qp
google 2차 인증 필요
https://myaccount.google.com/u/2/security
2단계 인증 → 앱 비밀번호 → 앱 선택(기타) → 생성 → 키 16자리 복사 → vi /etc/postfix/sasl_passwd → [smtp.gmail.com]:587 USERNAME@gmail.com:인증키 16자리
postmap /etc/postfix/sasl_passwd
/etc/init.d/postfix reload
4. warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
postconf -e “alias_maps = hash:/etc/aliases”
5. mail postfix/postfix-script[1545634]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
rm /etc/postfix/makedefs.out; ln /usr/share/postfix/makedefs.out /etc/postfix/makedefs.out; postfix check
6. said: 550-5.7.25 [x.x.x.x] The IP address sending this message does not have a 550-5.7.25 PTR record setup, or the corresponding forward DNS entry does not 550-5.7.25 point to the sending IP. As a policy, Gmail does not accept messages 550-5.7.25 from IPs with missing PTR records. Please visit 550-5.7.25 https://support.google.com/mail/answer/81126#ip-practices for more 550 5.7.25 information. l191-20020a6391c8000000b0041bb39443d8si13405720pge.95 - gsmtp (in reply to end of DATA command))
PTR record 등록
도메인 등록
7. said: 550-5.7.26 This message does not pass authentication checks (SPF and DKIM both 550-5.7.26 do not pass). SPF check for [mail.hostname] does not pass 550-5.7.26 with ip: [x.x.x.x].To best protect our users from spam, the 550-5.7.26 message has been blocked. Please visit 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more 550 5.7.26 information. s74-20020a63774d000000b0041bdf3cfd7dsi4076709pgc.565 - gsmtp (in reply to end of DATA command))
SPF record 등록
도메인 등록
8. mail postfix/smtp[1565039]: C7819412D6: to=mail@naver.com, relay=mx2.naver.com[125.209.238.137]:25, delay=0.16, delays=0.01/0/0.16/0, dsn=5.6.7, status=bounced (SMTPUTF8 is required, but was not offered by host mx2.naver.com[125.209.238.137])
/etc/postfix/main.cf 내용 추가
smtputf8_autodetect_classes = sendmail, verify
smtputf8_enable = no
9. Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again
/etc/resolv.conf
nameserver 8.8.8.8
'IT > linux' 카테고리의 다른 글
[linux] sftp log (0) | 2022.08.26 |
---|---|
[linux] ntp 설정 (0) | 2022.08.25 |
[linux] postfix command (0) | 2022.08.25 |
[linux] postfix 구축 (0) | 2022.08.25 |
[linux] E: could not get lock /var/lib/dpkg/lock-frontend. It is held by process (0) | 2022.08.25 |
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!