Pessoal, estou com um probleminha chato com o Postfix que não to conseguindo
resolver. Tenho um servidor que faz relay em meu servidor de e-mail interno.
Esse servidor apenas me manda os logs gerados pelo logwatch.
Para esse serviço configurei o postfix nessa maquina, mas está ocorrendo
algo meio sinistro, veja:
Esse meu postfix faz relay para meu servidor 172.16.0.11 (Lotus Notes), como
segue meu main.cf abaixo:
servidor:~# cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = $mydomain
mydomain = dominio.com.br
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = htcbrsrv2471, localhost.localdomain, , localhost
mynetworks = 127.0.0.0/8 172.18.0.0/16 172.16.0.0/16
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 172.16.0.200 172.18.0.2
inet_protocols = ipv4
#smtp_sasl_auth_enable = yes
#smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
#smtp_sasl_type = cyrus
relayhost = 172.16.0.11
No entanto, o que mais me intriga é o redirecionamento do /etc/aliases.
Ele está assim:
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: suporte
suporte: [EMAIL PROTECTED]
No entanto, se envio um email para o root (# mail root), no /var/log/
mail.info me aparece o seguinte:
Sep 8 13:31:42 htcbrsrv2471 postfix/pickup[20955]: 8C4AE965: uid=0
from=<root>
Sep 8 13:31:42 htcbrsrv2471 postfix/cleanup[20959]: 8C4AE965:
message-id=<[EMAIL PROTECTED]>
Sep 8 13:31:42 htcbrsrv2471 postfix/qmgr[20953]: 8C4AE965: from=<root@
dominio.com.br>, size=309, nrcpt=1 (queue active)
Sep 8 13:31:42 htcbrsrv2471 postfix/smtp[20961]: 8C4AE965: to=<[EMAIL
PROTECTED]
.com.br>, orig_to=<root>, relay=172.16.0.11[172.16.0.11]:25, delay=0.04,
delays=0.02/0.01/0/0.01, dsn=5.0.0, status=bounced (host 172.16.0.11[
172.16.0.11] said: 550 [EMAIL PROTECTED] No such user (in reply to RCPT
TO command))
Sep 8 13:31:42 htcbrsrv2471 postfix/cleanup[20959]: 93F57A46:
message-id=<[EMAIL PROTECTED]>
Sep 8 13:31:42 htcbrsrv2471 postfix/qmgr[20953]: 93F57A46: from=<>,
size=2132, nrcpt=1 (queue active)
Sep 8 13:31:42 htcbrsrv2471 postfix/bounce[20962]: 8C4AE965: sender
non-delivery notification: 93F57A46
Sep 8 13:31:42 htcbrsrv2471 postfix/qmgr[20953]: 8C4AE965: removed
Sep 8 13:31:42 htcbrsrv2471 postfix/smtp[20961]: 93F57A46: to=<[EMAIL
PROTECTED]
.com.br>, relay=172.16.0.11[172.16.0.11]:25, delay=0.01, delays=0.01/0/0/0,
dsn=5.0.0, status=bounced (host 172.16.0.11[172.16.0.11] said: 550 root@
dominio.com.br... No such user (in reply to RCPT TO command))
Sep 8 13:31:42 htcbrsrv2471 postfix/qmgr[20953]: 93F57A46: removed
Fiz o seguinte:
# rm /etc/aliases.db
# postalias hash:/etc/aliases
# /etc/init.d/postfix restart (já tentei também com # postfix reload)
Porém, ele continua entregando no meu servidor como se a mensagem fosse para
o [EMAIL PROTECTED], e não para o [EMAIL PROTECTED], como deveria
ser o certo no aliases.
Alguém tem alguma idéia do ocorrido?? Alguma luz?
Obrigado.
--
Anderson Kaiser
[EMAIL PROTECTED]
Linux User #: 426240