Postfix dá erro no maillog: maps_find: smtp_generic_maps: log: not found

Postfix dá erro no maillog: maps_find: smtp_generic_maps: log: not found

Eu mudei o endereço FROM padrão do Postfix, de[e-mail protegido]para[e-mail protegido]

Posso enviar os e-mails sem problemas, mas quando verifico o arquivo de maillog, vejo alguns "não encontrado"erros.

/etc/maillog:

Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: [email protected]: not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: log: not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: @example.com: not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: mail_addr_find: [email protected] -> (not found)
Feb 24 11:52:28 webserver postfix/smtp[9789]: mail_addr_map: [email protected] -> (not found)
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_map11_external: [email protected] not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: > smtp-relay.gmail.com[74.125.129.28]:587: RCPT TO:<[email protected]>
Feb 24 11:52:28 webserver postfix/smtp[9789]: > smtp-relay.gmail.com[74.125.129.28]:587: DATA
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_stream_setup: maxtime=300 enable_deadline=0
Feb 24 11:52:28 webserver postfix/smtp[9789]: < smtp-relay.gmail.com[74.125.129.28]:587: 250 2.1.0 OK f70sm1283942ita.7 - gsm
tp
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_stream_setup: maxtime=300 enable_deadline=0
Feb 24 11:52:28 webserver postfix/smtp[9789]: < smtp-relay.gmail.com[74.125.129.28]:587: 250 2.1.5 OK f70sm1283942ita.7 - gsm
tp
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_stream_setup: maxtime=120 enable_deadline=0
Feb 24 11:52:28 webserver postfix/smtp[9789]: < smtp-relay.gmail.com[74.125.129.28]:587: 354  Go ahead f70sm1283942ita.7 - gs
mtp
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_stream_setup: maxtime=180 enable_deadline=0
Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: [email protected]: not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: log: not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: @example.com: not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: mail_addr_find: [email protected] -> (not found)
Feb 24 11:52:28 webserver postfix/smtp[9789]: mail_addr_map: [email protected] -> (not found)
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_map11_external: [email protected] not found
Feb 24 11:52:28 webserver postfix/smtp[9789]: maps_find: smtp_generic_maps: hash:/etc/postfix/generic(0,lock|fold_fix): root 
= [email protected]
Feb 24 11:52:28 webserver postfix/smtp[9789]: mail_addr_find: root -> [email protected]
Feb 24 11:52:28 webserver postfix/smtp[9789]: rewrite_clnt: cached: local: [email protected] -> [email protected]
Feb 24 11:52:28 webserver postfix/smtp[9789]: mail_addr_map: root -> 0: [email protected]
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_map11_external: root -> [email protected]
Feb 24 11:52:28 webserver postfix/smtp[9789]: > smtp-relay.gmail.com[74.125.129.28]:587: .
Feb 24 11:52:28 webserver postfix/smtp[9789]: > smtp-relay.gmail.com[74.125.129.28]:587: QUIT
Feb 24 11:52:28 webserver postfix/smtp[9789]: smtp_stream_setup: maxtime=600 enable_deadline=0
Feb 24 11:52:28 webserver postfix/smtp[9789]: < smtp-relay.gmail.com[74.125.129.28]:587: 250 2.0.0 OK 1519469548 f70sm1283942
ita.7 - gsmtp
Feb 24 11:52:28 webserver postfix/smtp[9789]: 078471910084: to=<[email protected]>, relay=smtp-relay.gmail.com[74.125.129.28]:
587, delay=0.2, delays=0.02/0.02/0.12/0.04, dsn=2.0.0, status=sent (250 2.0.0 OK 1519469548 f70sm1283942ita.7 - gsmtp)
Feb 24 11:52:28 webserver postfix/smtp[9789]: name_mask: resource
Feb 24 11:52:28 webserver postfix/smtp[9789]: name_mask: software
Feb 24 11:52:28 webserver postfix/smtp[9789]: disposing SASL state information
Feb 24 11:52:28 webserver postfix/qmgr[6455]: 078471910084: removed

/etc/postfix/main.cf

smtp_generic_maps = hash:/etc/postfix/generic

/etc/postfix/genérico

root [email protected]

Então tudo funciona, mas ainda assim esses erros. Por que o maillog primeiro diz "não encontrado" e, algumas linhas adiante, diz que foi encontrado?

Responder1

Parece que as maps_findlinhas estão depurando informações do processo de mapeamento definido no seu arquivo /etc/postfix/generic. Seu processo de mapeamento termina com

maps_find: smtp_generic_maps: hash:/etc/postfix/generic(0,lock|fold_fix): root

que diz que este e-mail será enviado para root

verifique o debug_peer_liste debug_peer_levelem seu main.cfpara desabilitar esta opção (eu pessoalmente comentei e resolvi que meus logs eram muito detalhados). Você pode encontrar mais documentaçãoaquisobre essas opções

informação relacionada