Hi all
I'm having trouble using my fresh install of postfix with Blue mind and as I'm not an expert, I don't know how to get rid of this issue.
I have installed Blue mind on a Ubuntu 14.04 LTS version
My emails go to spam with gmail.
Here are the different elements :
my /etc/hosts file :
127.0.0.1
mail.mydom.com mail localhost
127.0.1.1
mail.mydom.com mail
178.XX.17.XX
mail.mydom.com
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
hostname -f shows :
mail.mydom.com
my /etc/postfix/
main.cf :
smtpd_banner =
mail.mydom.com
biff = no
append_dot_mydomain = no
myhostname =
mail.mydom.com
relayhost =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
local_recipient_maps = $alias_maps
#mydestination = $myhostname
mydestination =
mail.mydom.com
mynetworks =
127.0.0.0/8, XX.XX.XX.X/24 #i hide the public ip here
message_size_limit = 10485760
irtual_transport = error:mailbox does not exist
virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox
virtual_alias_maps = hash:/etc/postfix/virtual_alias
transport_maps = hash:/etc/postfix/transport, hash:/etc/postfix/master_relay_transport
recipient_delimiter = +
milter_protocol = 2
milter_default_action = accept
smtpd_milters = inet:localhost:12301
non_smtpd_milters = inet:localhost:12301
# SMTP/TLS
smtpd_tls_security_level=may
smtpd_tls_cert_file=/etc/ssl/certs/bm_cert.pem
smtpd_tls_key_file=/etc/ssl/certs/bm_cert.pem
smtpd_tls_CAfile=/var/lib/bm-ca/cacert.pem
smtpd_tls_mandatory_protocols=!SSLv2,!SSLv3
# SMTP authentication
smtpd_sasl_auth_enable=yes
broken_sasl_auth_clients=yes
smtpd_sasl_security_options=noanonymous
smtpd_recipient_restrictions=permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_authenticated_header=yes
---------------------
I also installed opendkim and dns is ok. Spam detection is alright too on some sites.
Here is the original email send. There is something I don't understand it says "received from local.localdomain ..." I don't know what it is and I can't delete it.
Check out the original mail :
Delivered-To:
mys...@gmail.com
Received: by 10.180.101.167 with SMTP id fh7csp166321wib;
Fri, 12 Jun 2015 16:06:46 -0700 (PDT)
X-Received: by 10.180.99.166 with SMTP id er6mr11116229wib.58.1434150406393;
Fri, 12 Jun 2015 16:06:46 -0700 (PDT)
Return-Path: <
nor...@mydom.com>
Received: from
mail.mydom.com (
mail.mydom.com. [178.XX.17.XX])
by
mx.google.com with ESMTP id fb9si9572302wjc.116.2015.06.12.16.06.46
for <
mys...@gmail.com>;
Fri, 12 Jun 2015 16:06:46 -0700 (PDT)
Received-SPF: pass (
google.com: domain of
nor...@mydom.com designates 178.33.17.67 as permitted sender) client-ip=178.33.17.67;
Authentication-Results:
mx.google.com;
spf=pass (
google.com: domain of
nor...@mydom.com designates 178.33.17.67 as permitted sender) smtp.mail=
nor...@mydom.com;
dkim=fail header.i=@
mydom.com
Received: from localhost.localdomain (
mail.mydom.com [127.0.0.1])
by
mail.mydom.com (Postfix) with ESMTP id 00CB2E1468
for <
jmy...@gmail.com>; Sat, 13 Jun 2015 01:06:46 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=
mydom.com;
s=mail; t=1434150406;
bh=gVliEE8YYTHs9GrkuYYNEahtoCF4Kebi6kQ1Yb/m8y8=;
h=Date:From:To:Subject:From;
b=rPNUNOxp4DBPxGfX66CIt59XdO8HMOf0SCqLFU6S6gn/CS4JhbqACrObncc1F7scR
Ml5o4+PdMh67EbXqBjAvVEjguwD7YCP1u3RayS8Z1Tut0gK2/J4HKZHYE5iAy1qXzN
7MVLjiiQJ6QlBUzVMPj5wcJ0BkrNgVAb2FIlrJBA=
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_8a3cf813f7d1c078fa276581a66dee55"
....
Well It says that dkim failed, it's because I just updated the dkim key on dns records.
Any clue,?
thanks in advance