Email from with "via" in header

Posted on 2011-10-27
Last Modified: 2016-02-17
We are sending emails from and gmail is our mailserver, but every time we send them they show up in the inbox with something along the lines of via

We would like to get rid of the via part and just have shown.  According to google ( adding an SPF record should do the trick.  The issue we are having is that we added the SPF record and in the headers of the emails now, it passes, but still has the via part.  

Is anyone familiar with this and if so, does google still respect the SPF records?

Below is what our SPF records look like.

v=spf1 mx ip4: ip4: ip4: ip4: ip4: ip4: ip4: ip4: ~all

Below is an example of what I'm seeing in the header of the emails.

Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
Authentication-Results:; spf=pass ( domain of designates as permitted sender)
Return-Path: <>

It appears to be working, but still has the via portion.  Any help would be appreciated.

Question by:s_kipjack
    LVL 21

    Accepted Solution

    Since the mails have an envelope-from of, then adding their include to your SPF record isn't going to do anything for this particular issue.  If was sending the mails with an envelope-from of, then you would need the include.

    Also I just noticed that all of the ip4 mechanisms in the include are also listed as ip4's in your SPF record -- unnecessary, just use the include.

    Yes Google honors SPF records.

    Are you able to change the envelope-from on the mails generated by salesforce?
    LVL 21

    Expert Comment

    I wouldn't be surprised if you were not able to.  What salesforce is doing here is a common practice done by many companies who send mails "from" another user (but do it the right way, like sfdc) including PayPal and Evite.

    Also, if it's not clear now, your SPF record is not where the "problem" is.

    Author Comment

    Thanks for your response.  I'm currently investigating whether I can change that in salesforce.  

    Also, thanks for the comment about the ip addresses being redundant.  I stripped those out of the SPF record.  I'll let you know the outcome of the envelope-from in salesforce.
    LVL 21

    Expert Comment

    Any luck?

    Author Comment

    Actually, you were right on with the envelope-from solution.  Getting it implemented in Salesforce is possible, but we are still working through a solution with there support team. I appreciate your answer and your help!  I'll update once we get a final solution so that other can see how this is done.

    Thanks again!
    LVL 21

    Expert Comment

    Awesome good luck!

    Author Comment

    Ok, so we have finally tracked down the solution for this.  It can be implemented with a few clicks of the button once the SPF records are setup correctly.  Though, this was not the simplest of solutions to track down, hopefully this will help others with this same problem.

    1) Setup -> Email Administration -> Deliverability then uncheck "Enabled compliance with standard email security mechanisms"

    2) Under the same screen you need to disable bounce management.

    Once you do those two things you will no longer have the "via via" in the emails you send out from

    Papertrip, thanks for your help in this matter!  Your info started the chain of events for us to get to this solution.  

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
    Note: You must have administrative privileges in order to configure lead or case queues. ( is a cloud-based customer relationship management (CRM) system. It is widely used around the world by sales and ma…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now