Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/06/2013, 11:36
Hanzo_lx
 
Fecha de Ingreso: septiembre-2009
Mensajes: 84
Antigüedad: 15 años, 2 meses
Puntos: 2
Respuesta: Creacion de servidor de correo postfix. Novatillo fallos de concepto

Hola, gracias a todos por vuestras respuestas.

Hombre cuando me referia a "inventarme" un dominio, me referia evidentemente de forma local. Entiendo que para que el MTA local (en este caso postfix) envie un correo a un dominio no local, creo que debe existir un registro MX que encamine el correo a el MTA receptor correspondiente no? Este ya enviara el correo al receptor que toca.

Es asi?

Lo que estoy intentando es hacer un servidor de correo que funcione, en un principio, porque estoy empezando, en una red local, y usuarios de esta se envien correo entre ellos.

Esto es lo que tengo montado:

Un server Linux CentOS 6.4 x64 sobre una maquina virtual VMWARE FUSION con ip propia.

Cuando intento enviar un mail con

mail -s "test" Hanzo
testbody
[Ctrl+D]

Código:
Jun 16 22:48:57 mserver postfix/pickup[1740]: E70C07FF3: uid=500 from=<Hanzo>
Jun 16 22:48:57 mserver postfix/cleanup[2153]: E70C07FF3: message-id=<[email protected]>
Jun 16 22:48:57 mserver postfix/qmgr[1741]: E70C07FF3: from=<[email protected]>, size=427, nrcpt=1 (queue active)
Jun 16 22:48:58 mserver postfix/local[2155]: E70C07FF3: to=<[email protected]>, orig_to=<Hanzo>, relay=local, delay=0.12, delays=0.06/0.03/0/0.03, dsn=5.1.1, status=bounced (unknown user: "hanzo")
Jun 16 22:48:58 mserver postfix/cleanup[2153]: 07FAC810A: message-id=<[email protected]>
Jun 16 22:48:58 mserver postfix/qmgr[1741]: 07FAC810A: from=<>, size=2230, nrcpt=1 (queue active)
Jun 16 22:48:58 mserver postfix/bounce[2156]: E70C07FF3: sender non-delivery notification: 07FAC810A
Jun 16 22:48:58 mserver postfix/qmgr[1741]: E70C07FF3: removed
Jun 16 22:48:58 mserver postfix/local[2155]: 07FAC810A: to=<[email protected]>, relay=local, delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "hanzo")
Jun 16 22:48:58 mserver postfix/qmgr[1741]: 07FAC810A: removed
Hanzo es un usuario local a la misma maquina que mueve postfix


Estos son los archivos de configuración que he modificado de la maquina recién instalada:

El archivo hosts
Código:
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
192.168.1.111 mserver.hanzonet.com mserver
el archivo hostname

Código:
mserver.hanzonet.com
main.cf

Código:
#soft_bounce = no
#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix

# QUEUE AND PROCESS OWNERSHIP
#
mail_owner = postfix
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
myhostname = mserver.hanzonet.com
#
mydomain = hanzonet.com

# SENDING MAIL
# 
#myorigin = $myhostname
myorigin = $mydomain

# RECEIVING MAIL
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = all

# Enable IPv4, and IPv6 if supported
inet_protocols = all
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#	mail.$mydomain, www.$mydomain, ftp.$mydomain


#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL
# 
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
#
mynetworks = 127.0.0.0/8, 192.168.1.0/24 
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#
relay_domains = $mydestination

# INTERNET OR INTRANET


#
#relayhost = $myhostname
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS

#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL

# 
#in_flow_delay = 1s

# ADDRESS REWRITING
#
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases


#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX

#home_mailbox = Mailbox
home_mailbox = Maildir/
 
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail

#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
#
#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#
# mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#
# The efficiency of LMTP delivery for cyrus-imapd can be enhanced via
# these settings.
#
# local_destination_recipient_limit = 300
# local_destination_concurrency_limit = 5
#
# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =
#luser_relay = [email protected]
#luser_relay = [email protected]
#luser_relay = admin+$local
  
# JUNK MAIL CONTROLS
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
#
debug_peer_level = 2
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 ddd $daemon_directory/$process_name $process_id & sleep 5

# If you can't use X, use this to capture the call stack when a
# daemon crashes. The result is in a file in the configuration
# directory, and is named after the process name and the process ID.
#
# debugger_command =
#	PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
#	echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
#	>$config_directory/$process_name.$process_id.log & sleep 5
#
# Another possibility is to run gdb under a detached screen session.
# To attach to the screen sesssion, su root and run "screen -r
# <id_string>" where <id_string> uniquely matches one of the detached
# sessions (from "screen -list").
#
# debugger_command =
#	PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
#	-dmS $process_name gdb $daemon_directory/$process_name
#	$process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
# 
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
# 
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command.  This
# is the Sendmail-compatible mail queue listing command.
# 
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands.  This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.6.6/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

Estoy haciendo algo mal?, todos los manuales que he leido hacen alusion a lo mismo

Muchas gracias por molestaros en contestar