Centos7 / Postfix / Dovecot не получает внешнюю электронную почту

Я настраиваю свой личный почтовый сервер, через некоторое время я смог отправлять электронные письма с правильными настройками DKIM / SPF.sal@paolo9785.com ):

maillogs:

Jun 22 12:31:12 vps258570 postfix/smtpd[12250]: connect from mail-oi0-f50.google.com[------]
Jun 22 12:31:12 vps258570 postfix/trivial-rewrite[12254]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
Jun 22 12:31:12 vps258570 postfix/smtpd[12250]: NOQUEUE: reject: RCPT from mail-oi0-f50.google.com[-----]: 550 5.1.1 <sal@paolo9785.com>: Recipient address rejected: User unknown in local recipient table; from=<paolo9785@gmail.com> to=<sal@paolo9785.com> proto=ESMTP helo=<mail-oi0-f50.google.com>
Jun 22 12:31:12 vps258570 postfix/smtpd[12250]: disconnect from mail-oi0-f50.google.com[-------]

Хотя если я отправлю его на существующий почтовый ящик ( info @ .. ), оно не войдет в него.

Jun 22 12:40:12 ----------- postfix/smtpd[12331]: connect from mail-oi0-f65.google.com[-----------]
Jun 22 12:40:13 ----------- postfix/trivial-rewrite[12335]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
Jun 22 12:40:13 ----------- postfix/smtpd[12331]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
Jun 22 12:40:13 ----------- postfix/smtpd[12331]: 1B42E2477: client=mail-oi0-f65.google.com[-----------]
Jun 22 12:40:13 ----------- postfix/cleanup[12336]: 1B42E2477: message-id=<CAMPevOntYfFn76uihBhfvahFJi0HZqm3+PKhtzr-nfp+7gi_DQ@mail.gmail.com>
Jun 22 12:40:13 ----------- opendkim[888]: 1B42E2477: mail-oi0-f65.google.com [-----------] not internal
Jun 22 12:40:13 ----------- opendkim[888]: 1B42E2477: not authenticated
Jun 22 12:40:13 ----------- opendkim[888]: 1B42E2477: DKIM verification successful
Jun 22 12:40:13 ----------- postfix/qmgr[12237]: 1B42E2477: from=<-----------@gmail.com>, size=2536, nrcpt=1 (queue active)
Jun 22 12:40:13 ----------- postfix/trivial-rewrite[12335]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
Jun 22 12:40:13 ----------- postfix/local[12337]: 1B42E2477: to=<postmaster@paolo9785.com>, orig_to=<info@paolo9785.com>, relay=local, delay=0.23, delays=0.18/0.02/0/0.03, dsn=5.4.6, status=bounced (alias database loop for postmaster)
Jun 22 12:40:13 ----------- postfix/cleanup[12336]: 511A9DFB: message-id=<20180622104013.511A9DFB@-----------.ovh.net>
Jun 22 12:40:13 ----------- postfix/qmgr[12237]: 511A9DFB: from=<>, size=4516, nrcpt=1 (queue active)
Jun 22 12:40:13 ----------- postfix/bounce[12338]: 1B42E2477: sender non-delivery notification: 511A9DFB
Jun 22 12:40:13 ----------- postfix/qmgr[12237]: 1B42E2477: removed
Jun 22 12:40:13 ----------- postfix/smtpd[12331]: disconnect from mail-oi0-f65.google.com[-----------]
Jun 22 12:40:13 ----------- postfix/smtp[12339]: 511A9DFB: host gmail-smtp-in.l.google.com[108.177.15.27] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentication checks. To best protect our users from spam, the 421-4.7.0 message has been blocked. Please visit 421-4.7.0  https://support.google.com/mail/answer/81126#authentication for more 421 4.7.0 information. f18-v6si7346729wre.357 - gsmtp (in reply to end of DATA command)
Jun 22 12:40:13 ----------- postfix/smtp[12339]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c09::1a]:25: Network is unreachable
Jun 22 12:40:13 ----------- postfix/smtp[12339]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4010:c08::1b]:25: Network is unreachable
Jun 22 12:40:14 ----------- postfix/smtp[12339]: 511A9DFB: to=<-----------@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[64.233.165.27]:25, delay=1.1, delays=0/0.01/0.67/0.45, dsn=4.7.0, status=deferred (host alt1.gmail-smtp-in.l.google.com[64.233.165.27] said: 421-4.7.0 This message does not have authentication information or fails to pass 421-4.7.0 authentication checks. To best protect our users from spam, the 421-4.7.0 message has been blocked. Please visit 421-4.7.0  https://support.google.com/mail/answer/81126#authentication for more 421 4.7.0 information. p186-v6si2956365lfp.402 - gsmtp (in reply to end of DATA command))
Jun 22 12:40:37 ----------- postfix/smtpd[12331]: connect from mail-oi0-f42.google.com[-----------]
Jun 22 12:40:37 ----------- postfix/smtpd[12331]: 6604E24A6: client=mail-oi0-f42.google.com[-----------]
Jun 22 12:40:37 ----------- postfix/cleanup[12336]: 6604E24A6: message-id=<CAMPevOkhjCUZ8_7vzC26w-ryWV3s6NNtGrPjUik1vYV0bM-CAA@mail.gmail.com>
Jun 22 12:40:37 ----------- opendkim[888]: 6604E24A6: mail-oi0-f42.google.com [-----------] not internal
Jun 22 12:40:37 ----------- opendkim[888]: 6604E24A6: not authenticated
Jun 22 12:40:37 ----------- opendkim[888]: 6604E24A6: DKIM verification successful
Jun 22 12:40:37 ----------- postfix/qmgr[12237]: 6604E24A6: from=<-----------@gmail.com>, size=3274, nrcpt=1 (queue active)
Jun 22 12:40:37 ----------- postfix/trivial-rewrite[12335]: warning: do not list domain paolo9785.com in BOTH mydestination and virtual_alias_domains
Jun 22 12:40:37 ----------- postfix/local[12337]: 6604E24A6: to=<postmaster@paolo9785.com>, orig_to=<info@paolo9785.com>, relay=local, delay=0.19, delays=0.17/0/0/0.02, dsn=5.4.6, status=bounced (alias database loop for postmaster)
Jun 22 12:40:37 ----------- postfix/cleanup[12336]: 9484424A7: message-id=<20180622104037.9484424A7@-----------.ovh.net>
Jun 22 12:40:37 ----------- postfix/qmgr[12237]: 9484424A7: from=<>, size=5256, nrcpt=1 (queue active)
Jun 22 12:40:37 ----------- postfix/bounce[12338]: 6604E24A6: sender non-delivery notification: 9484424A7
Jun 22 12:40:37 ----------- postfix/qmgr[12237]: 6604E24A6: removed
Jun 22 12:40:37 ----------- postfix/smtpd[12331]: disconnect from mail-oi0-f42.google.com[-----------]
Jun 22 12:40:38 ----------- postfix/smtp[12339]: 9484424A7: to=<-----------@gmail.com>, relay=gmail-smtp-in.l.google.com[-----------]:25, delay=0.49, delays=0/0/0.2/0.28, dsn=2.0.0, status=sent (250 2.0.0 OK 1529664038 q25-v6si480244wmq.203 - gsmtp)
Jun 22 12:40:38 ----------- postfix/qmgr[12237]: 9484424A7: removed
Jun 22 12:41:02 ----------- postfix/smtpd[12331]: connect from mail-ot0-f196.google.com[-----------]
Jun 22 12:41:03 ----------- postfix/smtpd[12331]: 4CE822477: client=mail-ot0-f196.google.com[-----------]
Jun 22 12:41:05 ----------- postfix/cleanup[12336]: 4CE822477: message-id=<CAMPevOmhuuiNDvzBHf25cCbokqWkJxiiNouXbWr7w=k74MtdAA@mail.gmail.com>
Jun 22 12:41:05 ----------- opendkim[888]: 4CE822477: mail-ot0-f196.google.com [-----------] not internal
Jun 22 12:41:05 ----------- opendkim[888]: 4CE822477: not authenticated
Jun 22 12:41:05 ----------- opendkim[888]: 4CE822477: DKIM verification successful
Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 4CE822477: from=<-----------@gmail.com>, size=2553, nrcpt=1 (queue active)

Jun 22 12:41:05 ----------- postfix/local[12337]: 4CE822477: to=<postmaster@paolo9785.com>, orig_to=<info@paolo9785.com>, relay=local, delay=2.1, delays=2.1/0/0/0.02, dsn=5.4.6, status=bounced (alias database loop for postmaster)
Jun 22 12:41:05 ----------- postfix/cleanup[12336]: 6388B24AD: message-id=<20180622104105.6388B24AD@-----------.ovh.net>
Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 6388B24AD: from=<>, size=4535, nrcpt=1 (queue active)
Jun 22 12:41:05 ----------- postfix/bounce[12338]: 4CE822477: sender non-delivery notification: 6388B24AD
Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 4CE822477: removed
Jun 22 12:41:05 ----------- postfix/smtpd[12331]: disconnect from mail-ot0-f196.google.com[-----------]
Jun 22 12:41:05 ----------- postfix/smtp[12339]: 6388B24AD: to=<-----------@gmail.com>, relay=gmail-smtp-in.l.google.com[-----------]:25, delay=0.42, delays=0/0/0.14/0.27, dsn=2.0.0, status=sent (250 2.0.0 OK 1529664065 i62-v6si1280096wmf.142 - gsmtp)
Jun 22 12:41:05 ----------- postfix/qmgr[12237]: 6388B24AD: removed
0
задан 22 June 2018 в 13:47
2 ответа

[...] Ég get ekki fengið tölvupóst frá utanaðkomandi. [...]

/etc/postfix/main.cf

 inet_interfaces = localhost
 

Breyttu inet_interfaces stillingum => fjarlægðu það eða kommentaðu það (skiptu yfir í sjálfgefið) EÐA breyttu því í allt .

Núverandi stilling þín samþykkir aðeins tenging í gegnum loopback tengi (aðeins þessi gestgjafi). AFAIR það er nokkuð algeng sjálfgefin MTA stilling fyrir vinnustöðvar. Það hjálpar til við að forðast að fá utanaðkomandi ruslpóst.

0
ответ дан 5 December 2019 в 05:48

Þú átt í nokkrum vandamálum og það gæti verið betra að

  1. hefja stillingar frá upphafi, fylgja nákvæmlega einhverri kennslu.
  2. nota textakort: MySQL gæti verið of flókið til að stilla og ofgnótt fyrir þarfir þínar.

Villurnar eru þó þegar á læsilegu formi:

  • skráðu ekki lénið paolo9785.com í BÆÐA mydestination og virtual_alias_domains

    Ef þú vilt nota paolo9785. com sem raunverulegt alias lén, fjarlægðu það af mydestination .

  • 550 5.1.1 (falið) Móttakanda netfang hafnað: Notandi óþekktur í staðbundinni viðtakandatöflu;

    Þetta var að nota staðbundinn viðtakanda töflu sem paolo9785.com var skráð í mydestination . Eftir að fyrsti hlutinn hefur verið lagaður, þá blasir við önnur villa: Notandi óþekktur í sýndarheitatöflu ...

    Sýndar alias stillingar þínar eru aðeins að vísa til kjötkássa: / etc / postfix / sýndarlén . Þú ert með alls konar / etc / postfix / mysql - *. Cf skrár, en ég get ekki séð þær notaðar neins staðar. Byggt á þessum skrám, kannski vantar þig ( main.cf ) eitthvað á þessa leið:

     virtual_alias_domains = mysql: /etc/postfix/mysql-virtual_domains.cf
    virtual_alias_maps = umboð: mysql: /etc/postfix/mysql-virtual_forwardings.cf,
      mysql: /etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = umboðsmaður: mysql: /etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy: mysql: /etc/postfix/mysql-virtual_mailboxes.cf
     

    (Eða kannski fylgdist þú með þessari kennslu og stökk yfir nokkra mikilvæga hluta.)

  • Það gæti verið að þú hafir ekki virka IPv6 tengingu, þar sem allar IPv6 tengingar mistakast:

     gmail-smtp-in.l.google.com [2a00: 1450: 400c: c09 :: 1a]: 25: Netið er óaðgengilegt
     

    Þetta getur lagað netstillingar þínar ( main.cf ):

     inet_interfaces = allt
    inet_protocols = ipv4
     
0
ответ дан 5 December 2019 в 05:48

Теги

Похожие вопросы