He montado en la empresa un servidor con ubuntu server (7.10) para dar servicio de correo a nuestro dominio.
Todo funciona bién menos el envío de correo a gmail. Los marca todos como spam. Si envío un correo desde gmail a mi cuenta de mi dominio y desde esta contesto, este correo si llega a la bandeja de entrada.
Los que envío directamente a la cuenta de gmail los meten en la carpeta de spam.
Tenemos ip fija, dominio, hemos registrado los registros SPF en el DNS, etc ...
La cabecera de los correos que llegan a gmail :
Código:
Delivered-To: [email protected] Received: by 10.141.88.17 with SMTP id q17cs91674rvl; Thu, 1 May 2008 03:36:57 -0700 (PDT) Received: by 10.67.19.13 with SMTP id w13mr9329669ugi.19.1209638216804; Thu, 01 May 2008 03:36:56 -0700 (PDT) Return-Path: <[email protected]> Received: from novaserver.midominio.es ([xxx.xx.xxx.xxx]) by mx.google.com with ESMTP id o7si4084197uge.71.2008.05.01.03.36.55; Thu, 01 May 2008 03:36:56 -0700 (PDT) Received-SPF: pass (google.com: domain of [email protected] designates xxx.xx.xxx.xxx as permitted sender) client-ip=xxx.xx.xxx.xxx; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates xxx.xx.xxx.xxx as permitted sender) [email protected] Received: from localhost (localhost.localdomain [127.0.0.1]) by novaserver.midominio.es (Postfix) with ESMTP id 5652551006B for <[email protected]>; Thu, 1 May 2008 12:36:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at midominio.es Received: from novaserver.midominio.es ([127.0.0.1]) by localhost (novaserver.midominio.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ei7cXO3jfiQZ for <[email protected]>; Thu, 1 May 2008 12:36:41 +0200 (CEST) Received: from creative (XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX) by novaserver.midominio.es (Postfix) with ESMTP id 871EE510066 for <[email protected]>; Thu, 1 May 2008 12:36:41 +0200 (CEST) From: "Alejandro Roldan" <[email protected]> To: <[email protected]> Subject: test de correo Date: Thu, 1 May 2008 12:37:40 +0200 Message-ID: <026c01c8ab77$61b6ffa0$2524fee0$@es> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_026D_01C8AB88.253FCFA0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acird2EUq5PDhUc6SAeIRgEVHaL9TQ== Content-Language: es
Mi configuración de postfix es :
Código:
append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 delay_warning_time = 4h home_mailbox = Maildir/ inet_interfaces = all inet_protocols = all mailbox_command = mailbox_size_limit = 0 message_size_limit = 100000000 mydestination = midominio.es, midominio.com mydomain = midominio.es myhostname = servidor.midominio.es mynetworks = 127.0.0.0/8 myorigin = $mydomain receive_override_options = no_address_mappings recipient_delimiter = + relayhost = smtp_tls_note_starttls_offer = yes smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtp_use_tls = yes smtpd_banner = $myhostname ESMTP $mail_name smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom
El log de envío de correo es :
Código:
May 1 12:36:41 novaserver postfix/smtpd[8101]: connect from XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX May 1 12:36:41 novaserver postfix/smtpd[8101]: 871EE510066: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1.91], sasl_method=LOGIN, sasl_username=xxxxxxxx May 1 12:36:41 novaserver postfix/cleanup[8106]: 871EE510066: message-id=<026c01c8ab77$61b6ffa0$2524fee0$@es > May 1 12:36:41 novaserver postfix/qmgr[8090]: 871EE510066: from=<[email protected]>, size=2650, nrcpt=1 (qu eue active) May 1 12:36:44 novaserver postfix/smtpd[8101]: disconnect from xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx May 1 12:36:49 novaserver postfix/smtpd[8111]: connect from localhost.localdomain[127.0.0.1] May 1 12:36:49 novaserver postfix/smtpd[8111]: 5652551006B: client=localhost.localdomain[127.0.0.1] May 1 12:36:49 novaserver postfix/cleanup[8106]: 5652551006B: message-id=<026c01c8ab77$61b6ffa0$2524fee0$@es> May 1 12:36:49 novaserver postfix/smtpd[8111]: disconnect from localhost.localdomain[127.0.0.1] May 1 12:36:49 novaserver amavis[7785]: (07785-03) Passed CLEAN, [xxx.xx.xxx.xxx] [xxxx.xxx.xxx.xxx.] <[email protected]> -> <[email protected]>, Message-ID: <026c01c8ab77$61b6ffa0$2524fee0$@es>, mail_id: ei7cXO3jfiQZ, Hits: 5.282, queued_as: 5652551006B, 7559 ms May 1 12:36:49 novaserver postfix/smtp[8107]: 871EE510066: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=7.9, delays=0.37/0.01/0/7.6, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=07785-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5652551006B) May 1 12:36:49 novaserver postfix/qmgr[8090]: 5652551006B: from=<[email protected]>, size=3118, nrcpt=1 (queue active) May 1 12:36:49 novaserver postfix/qmgr[8090]: 871EE510066: removed May 1 12:36:51 novaserver postfix/smtp[8113]: 5652551006B: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[66.249.93.114]:25, delay=2, delays=0.08/0.01/0.77/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1209638216 o7si4084197uge.71) May 1 12:36:51 novaserver postfix/qmgr[8090]: 5652551006B: removed