Results 1 to 3 of 3

Thread: What should Postfix System Mail Name be?

  1. #1
    Join Date
    Dec 2008
    Beans
    8

    What should Postfix System Mail Name be?

    I have a virtual server with a static IP and a real FQDN. I set up Postfix on it and everything works. While setting up Postfix, the guide that I followed suggested that I enter the server's FQDN as Postfix system mail name which I did (My FQDN and reverse DNS given to me by my hosting company is something like virtualhost123.myhostingprovider.com).

    Now I want to host two domains on this server: say domainA.com and domainB.com. When I send outgoing mail to Gmail from my server for example (let's say from e-mail address support@domainA.com) everything works fine but in the e-mail received, Gmail says:

    E-mail from support@domainA.com via virtualhost123.myhostingprovider.com.

    I am worried that e-mail providers could block me thinking I'm just relaying spam (I am not sending spam but since the sender e-mail domain and via domain don't match maybe it looks suspicious).

    Should I be worried? What should Postfix system mail name be set to for a server that hosts multiple domains?

    What are the best practices about this or stuff that I need to do so big e-mail providers like Gmail, Hotmail, etc. don't block my server?

    Thanks.

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,835
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: What should Postfix System Mail Name be?

    If you control the DNS for the hosted domains, there are a couple of things you can do.

    First, make sure that your virtual server is listed as the primary MX record for each domain. That means it will be accepting inbound mail for the domain, which I presume is what you want to do.

    Second, add an "SPF" record to the domain's DNS that looks like this:

    Code:
    @  IN TXT "v=spf1 a:virtualhost123.myhostingprovider.com ~all"
    That tells remote mail servers that honor SPF records that your hosted server is the valid outbound SMTP sender for the domain. If other servers are valid as well, just add additional "a:hostname" entries separated by spaces.

    It sounds like forward and reverse DNS are set properly which is the other common issue with sending mail. I don't reject inbound mail from hosts whose reverse DNS doesn't match their claimed hostnames, but I give those machines extra points in SpamAssassin.
    Last edited by SeijiSensei; October 3rd, 2012 at 11:42 AM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Dec 2008
    Beans
    8

    Re: What should Postfix System Mail Name be?

    Thank you very much SeijiSensei.

    I set a primary MX record with my server FQDN (virtualhost123.myhostingprovider.com) and created an SPF TXT record again with my FQDN (virtualhost123.myhostingprovider.com).

    Hopefully that will do it. The e-mails I receive from my domain still say "via virtualhost123.myhostingprovider.com" but all seems to be well for now. Thanks again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •