O postfix dá erro no maillog: maps_find: smtp_generic_maps: log: não encontrado

2

Alterei o endereço FROM padrão do Postfix, de [email protected] para [email protected]

Eu posso mandar os e-mails bem, mas quando eu checo o arquivo maillog eu vejo alguns erros " não encontrado ".

/ 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 / generic

root [email protected]

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

    
por Eric 26.02.2018 / 18:22

1 resposta

0

Parece que as linhas maps_find estão depurando informações do processo de mapeamento definido em /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 a raiz

finalize o debug_peer_list e debug_peer_level no seu main.cf para desativar essa opção (eu comentei isso pessoalmente e resolvi que meus logs eram muito verbosos). Você pode encontrar mais documentação aqui sobre essas opções

    
por 21.11.2018 / 12:16