nonozim
(usa Slackware)
Enviado em 10/04/2008 - 16:00h
m4tri_x ta ai meu main.cf, desde ja agradeço a atenção:
#======== CONFIGURAÇÕES ===============
queue_directory = /usr/var/spool/postfix/
#queue_directory = /var/spool/postfix/
program_directory=/usr/sbin
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs=nobody
default_transport=smtp
alias_maps=hash:/etc/postfix/aliases
alias_database=hash:/etc/postfix/aliases
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
manpage_directory = /usr/local/man
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
smtpd_banner=$myhostname ESMTP "Version not Available"
disable_vrfy_command=yes
home_mailbox=Maildir/
comand_time_limit = 1h
# ========== NOME DO DOMÍNIO ===========
myhostname=medcomerce.com.br
mydomain=medcomerce.com.br
myorigin= $mydomain
mydestination= $mydomain, $transport_maps
message_size_limit = 50720000
mailbox_size_limit= 507286400
#=====REDES p/ Relay======
# 10.0.0.0/24 = MINHA REDE
#
mynetworks=10.1.0.0/16 10.2.0.0/16 10.3.0.0/16 200.199.231.0/24 200.181.62.0/24 189.10.82.0/24
obs: esses ips 2002.x.x.x ta ai no mynetworks pq temos filiais em outros estados e usamos o vetor da brt para fazer vpn.
#======== MYSQL ==============
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_base = /postfix
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:108
virtual_gid_maps = static:108
transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
#======= Quota ============
virtual_mailbox_limit_inbox = no
virtual_mailbox_limit_maps= mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_extended = yes
virtual_create_maildirsize = yes
virtual_mailbox_limit = 2000000000
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
#====== SASL ================
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
#smtpd_client_restrictions= permit_mynetworks, reject_maps_rbl, reject_unknown_client
smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining,reject_invalid_hostname, reject_multi_recipient_bounce, check_sender_access pcre:/etc/postfix/sender_check
smtpd_helo_required = yes
#maps_rbl_domains= relays.ordb.org blackholes.mail-abuse.org
#smtpd_recipient_restrictions =
# permit_sasl_authenticated,
# permit_mynetworks,
# check_relay_domains
# =======MAILDROP ==========
fallback_transport = maildrop
maildrop_destination_recipient_limit = 1
unknown_local_recipient_reject_code = 450
obs: quando habilito smtpd_recipient_restriction, demora pra enviar email e nao recebe nenhum de nenhum dominio, por isso comentei a linha.
#============================
#smtpd_recipient_restrictions =
# permit_sasl_authenticated,
# permit_mynetworks,
# reject_invalid_hostname,
# reject_non_fqdn_sender,
# reject_non_fqdn_recipient,
# reject_unknown_sender_domain
# reject_rbl_client relays.ordb.org,
# reject_rbl_client opm.blitzed.org,
# reject_rbl_client list.dsbl.org,
# reject_rbl_client cbl.abuseat.org,
# reject_rbl_client dul.dnsbl.sorbs.net,
# reject_rbl_client bl.spamcop.net
# reject_rbl_client sbl-xbl.spamhaus.org,
# reject_unauth_destination,
# check_sender_access pcre:/etc/postfix/sender_check