• 12

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Outgoing emails not being encrypted

I am using postfix to send email. I have mysql set up to manage domains, accounts, and aliases. I have 3 domains set up. One domain is the primary domain and when sending emails to gmail accounts everything works fine. The ssl certificate is only for the primary domain.

When I use any of the virtual domains to send email to a gmail account they are marked as spam. The reason gmail gives is the email is unencrypted. It recognizes that the mail server that sent the mail is the primary server. Postfix is configured to only use tls.

Why does the mail from the virtual domains not get sent as encrypted?

I can provide any additional information if it will help.

Here is a header from an email, DMARC and SPF are configured.

Delivered-To: XXXXX@gmail.com
Received: by with SMTP id d15csp334618ivg;
        Wed, 13 Apr 2016 18:56:09 -0700 (PDT)
X-Received: by with SMTP id e125mr15507566qkb.62.1460598969001;
        Wed, 13 Apr 2016 18:56:09 -0700 (PDT)
Return-Path: <XXXXX@virtual.me>
Received: from primary.com (primary.com. [45.##.##.##])
        by mx.google.com with ESMTP id 123si7618120qkk.31.2016.
        for <XXXXX@gmail.com>;
        Wed, 13 Apr 2016 18:56:08 -0700 (PDT)
Received-SPF: neutral (google.com: 45.##.##.## is neither permitted nor denied by best guess record for domain of XXXXX@virtual.me) client-ip=45.##.##.##;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 45.##.##.## is neither permitted nor denied by best guess record for domain of XXXXX@virtual.me) smtp.mailfrom=XXXXX@virtual.me
Received: from primary.com (localhost [])
    by primary.com (Postfix) with ESMTPSA id 72B42140776
    for <XXXXX@gmail.com>; Wed, 13 Apr 2016 21:56:07 -0400 (EDT)
Mime-Version: 1.0
Date: Thu, 14 Apr 2016 01:56:07 +0000
Content-Type: multipart/alternative;
Message-ID: <0c75661eac0bc2d3195aace76f9e8845@primary.com>
X-Mailer: AfterLogic webmail client
From: "XXXXXX" <XXXXXx@virtual.me>
Subject: test
To: XXXXX@gmail.com
X-Priority: 3 (Normal)

mxtoolbox warnings

smtp    primary.com     Reverse DNS is not a valid Hostname      More Info
dns     virtual.me  SOA Serial Number Format is Invalid      More Info
dns     virtual.me  SOA Expire Value out of recommended range    More Info

You need a valid SSL certificate and private key setup for your Postfix server, with lines in your main.cfg file like

smtpd_tls_cert_file=/etc/pki/tls/certname.crt smtpd_tls_key_file=/etc/pki/tls/certname.key smtpd_tls_CAfile=/etc/pki/tls/ca.bundle smtpd_tls_protocols=SSLv3, TLSv1, !SSLv2 smtp_tls_protocols=SSLv3, TLSv1, !SSLv2 smtpd_tls_cipherlist = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP:-eNULL smtp_tls_cipherlist = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP:-eNULL


  • 0
Reply Report
      • 1
    • Is your domain name really "virtual.me" ? If so, SPF is not configured (and indeed, even your header above tends to indicate that - and that would contribute to the problem). There are a LOT of reasons your email may not be getting through - including blocklists (are you trying to send from behind a consumer DSL account ?), mail server with forward not using reverse etc.
    • no I removed them from the header. the mail server is hosted on a digitalocean vps. I added the warning given by mxtoolbox about my virtual domain to the original question.
      • 1
    • At first glance it looked like it worked, but it did not. Gmail did not mark the message as spam because it was a reply to an email I sent the account. It still blocks new emails from any of my virtual domains.

Trending Tags