PowerMTA Support Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

PowerMTA 5.5r1 is out!!!!  Please contact support@port25.com for a license and download access.

Author Topic: MX for subdomain  (Read 65123 times)

mskv

  • Jr. Member
  • **
  • Karma: +1/-7
  • Posts: 11
MX for subdomain
« on: March 11, 2014, 02:59:34 PM »

Let's say I'm setting up 3 subdomains to use in a pool...

mail1.mydomain.com
mail2.mydomain.com
mail3.mydomain.com

Should I setup the MX records like regular MX records:

mail1     IN     MX     10 mydomain.com
mail2     IN     MX     10 mydomain.com
mail3     IN     MX     10 mydomain.com

Or should I set them up in a subdomain-specific config:

mail1     IN     MX     10 mail1.mydomain.com
mail2     IN     MX     10 mail2.mydomain.com
mail3     IN     MX     10 mail3.mydomain.com

Also, why should it be done one way vs. the other?

Logged

CaLViN

  • Hero Member
  • *****
  • Karma: +43/-2
  • Posts: 1233
  • Hasan Kurtoglu
    • PowerMTA Administration Service
Re: MX for subdomain
« Reply #1 on: March 12, 2014, 05:07:18 AM »

If you want to set different mail servers for each of them,then fo gor the way 2.
Logged

Professional PowerMTA Administrator - Deliverability Expert

Contact me for Consultancy needs!

mskv

  • Jr. Member
  • **
  • Karma: +1/-7
  • Posts: 11
Re: MX for subdomain
« Reply #2 on: March 12, 2014, 09:46:09 AM »

If you want to set different mail servers for each of them,then fo gor the way 2.

That's a fairly broad statement - can you elaborate?

mail1, mail2, and mail3 will all be on the same physical server and each will be a VirtualMTA that are then pooled together.  In other words:

<virtual-mta mail1>
   smtp-source-host 111.111.111.111 mail1.mydomain.com
</virtual-mta>
<virtual-mta mail2>
   smtp-source-host 122.122.122.122 mail2.mydomain.com
</virtual-mta>
<virtual-mta mail3>
   smtp-source-host 133.133.133.133 mail3.mydomain.com
</virtual-mta>

<virtual-mta-pool general>
    virtual-mta mail1
    virtual-mta mail2
    virtual-mta mail3
</virtual-mta-pool>
Logged

CaLViN

  • Hero Member
  • *****
  • Karma: +43/-2
  • Posts: 1233
  • Hasan Kurtoglu
    • PowerMTA Administration Service
Re: MX for subdomain
« Reply #3 on: March 12, 2014, 10:13:53 AM »

If they are on the same server,then all of them should have the same mx records.
Logged

Professional PowerMTA Administrator - Deliverability Expert

Contact me for Consultancy needs!

Andrew Edelstein

  • Jr. Member
  • **
  • Karma: +13/-15
  • Posts: 93
Re: MX for subdomain
« Reply #4 on: March 14, 2014, 12:04:09 PM »

If they are on the same server,then all of them should have the same mx records.


And besides which, MX records have nothing to do with SENDING mail. MX records are for RECEIVING mail only. VirtualMTAs and VMTA Pools are for defining how you want to send.
You set up MX records for the domains you're going to send from, regardless of the VMTA that's actually doing the sending.
Logged

CaLViN

  • Hero Member
  • *****
  • Karma: +43/-2
  • Posts: 1233
  • Hasan Kurtoglu
    • PowerMTA Administration Service
Re: MX for subdomain
« Reply #5 on: March 14, 2014, 12:24:28 PM »

If they are on the same server,then all of them should have the same mx records.


And besides which, MX records have nothing to do with SENDING mail. MX records are for RECEIVING mail only. VirtualMTAs and VMTA Pools are for defining how you want to send.
You set up MX records for the domains you're going to send from, regardless of the VMTA that's actually doing the sending.

Correct.MX records are for bounce and fbl processing in this situation.
Logged

Professional PowerMTA Administrator - Deliverability Expert

Contact me for Consultancy needs!