dalua_wil
(usa Debian)
Enviado em 17/12/2008 - 09:48h
ainda sou meio novato nesse dnegócio de e-mail hehe
meu main.cf é esse aki:
# 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/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.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 = mail.cpp.org.br
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = mail.cpp.org.br, localhost.cpp.org.br, localhost.localdomain, localhost
relayhost =
mynetworks = 189.0.0.0/8, 192.0.0.0/8, 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
message_size_limit = 51200000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unknown_recipient_domain,reject_unauth_destination check_relay_domains
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
smtp_destination_concurrency_limit = 50
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
maximal_queue_lifetime = 5
# LDAP
# Pesquisa nos endereç de e-mails dos usuáos e retorna o endereçde
# e-mail de roteamento
accountsmap_server_host = ldap.cpp.org.br
accountsmap_bind_dn = cn=Postfix,dc=cpp,dc=com,dc=br
accountsmap_bind_pw = senha
accountsmap_search_base = dc=dominio,dc=com,dc=br
accountsmap_query_filter =
(&(objectClass=qmailUser)(mailAlternateAddress=%s))
accountsmap_result_attribute = mail
accountsmap_bind = yes
# Pesquisa o endereçde e-mail de roteamento
# e o retorno do valor mailMessageStore, onde as mensagems
# vãficar armazenadas.
accounts_server_host = ldap.dominio.com.br
accounts_bind_dn = cn=Postfix,dc=dominio,dc=com,dc=br
accounts_bind_pw = senha
accounts_search_base = dc=dominio,dc=com,dc=br
accounts_query_filter = (&(objectClass=qmailUser)(mail=%s))
accounts_result_attribute = mailMessageStore
accounts_bind = yes
Master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - 15 smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 300 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - 100 smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
spamfilter unix - n n - 3 pipe
flags=Rq user=lalas argv=/usr/local/sbin/spamfilter.sh -f {$sender} {$recipient}
Um trecho do mail.log (no momento em q eu tentei enviar um email interno e q não chegou)
Dec 17 09:10:26 mail postfix/smtpd[28590]: connect from mail.cpp.org.br[189.56.19.44]
Dec 17 09:10:26 mail postfix/smtpd[28590]: E56786AC43C: client=mail.cpp.org.br[189.56.19.44]
Dec 17 09:10:26 mail postfix/cleanup[28594]: E56786AC43C: message-id=<59261.189.56.19.44.1229512226.squirrel@mail.cpp.org.br>
Dec 17 09:10:26 mail postfix/qmgr[9431]: E56786AC43C: from=<legislacao@cpp.org.br>, size=54067, nrcpt=1 (queue active)
Dec 17 09:10:26 mail postfix/smtpd[28590]: disconnect from mail.cpp.org.br[189.56.19.44]
Dec 17 09:10:27 mail postfix/pickup[26492]: 064036AC4BA: uid=10142 from=<noticias>
Dec 17 09:10:27 mail postfix/cleanup[28594]: 064036AC4BA: message-id=<20081217111027.064036AC4BA@mail.cpp.org.br>
Dec 17 09:10:27 mail postfix/qmgr[9431]: 064036AC4BA: from=<noticias@mail.cpp.org.br>, size=373, nrcpt=1 (queue active)
Dec 17 09:10:27 mail postfix/local[28595]: 064036AC4BA: to=<admispconfig@localhost.localdomain>, relay=local, delay=0.15, delays=0.14/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Dec 17 09:10:27 mail postfix/qmgr[9431]: 064036AC4BA: removed
Dec 17 09:10:28 mail postfix/local[28610]: E56786AC43C: to=<noticias@mail.cpp.org.br>, orig_to=<noticias@cpp.org.br>, relay=local, delay=1.3, delays=0.06/0/0/1.2, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Dec 17 09:10:28 mail postfix/qmgr[9431]: E56786AC43C: removed
Uma coisa eu achei muito estranho, no log aparece "noticias@mail.cpp.org.br" ao invés de noticias@cpp.org.br
Se puderem me ajudar, ficarei muito agradecido.