Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


mattwnz

20045 posts

Uber Geek


#303393 7-Feb-2023 17:36
Send private message

Anyone know the SPF record I need to add to a domain, to use the Xtramail SMTP when sending via a domain email address?


Create new topic

xpd

xpd
Geek @ Coastguard NZ
13702 posts

Uber Geek

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #3033029 7-Feb-2023 19:38
Send private message




       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree -   kiwiblast.co.nz - Lego and more

 

       Support Kiwi music!   The People   Black Smoke Trigger   Like A Storm   Devilskin

 

                                            NZ GEEKS Discord______________________________

 

 


 
 
 
 

Send money globally for less with Wise - one free transfer up to NZ$900 (affiliate link).
tdgeek
29587 posts

Uber Geek

Trusted
Lifetime subscriber

  #3033033 7-Feb-2023 19:49
Send private message

Why would you need an Xtra SPF when sending via a domain email address? You should use the domain email address SPF? Or do they not have one so you use an unrelated sending server, i.e, Xtra?


fe31nz
1200 posts

Uber Geek


  #3033772 9-Feb-2023 01:27
Send private message

tdgeek:

 

Why would you need an Xtra SPF when sending via a domain email address? You should use the domain email address SPF? Or do they not have one so you use an unrelated sending server, i.e, Xtra?

 

 

If you just start sending emails from any old IP address, such as your own or the one associated with your domain, you find that because it is not a recognised SMTP sender a lot of other SMTP servers will block it.  This is because there used to be (still are?) malware infections that send directly from infected machines, as fast as the Internet connection allows.  And misconfigured home SMTP servers that permit relaying and end up relaying millions of SPAMs.  So if, like me, you have your own domain and want to send emails using it from your own SMTP server, you have to relay all outbound traffic via a recognised SMTP server.  If you are lucky (as I am with 2Degrees), your ISP will have an SMTP server you can use for this.  If not, then you will likely have to find a server somewhere that you can pay to use.  For my backup MX service, I use dynu.com, and if I needed it, I could pay them to be my outbound SMTP relay for a very reasonable cost.

 

So as you are relaying the emails, your SPF has to include the relay server addresses.  2Degrees supports this by putting "include:spf.ironport.snap.net.nz" as part of the SPF record, which causes the SPF record at spf.ironport.snap.net.nz to be looked up and included as though it was part of your SPF record:

 

root@mypvr:/# nslookup -type=TXT spf.ironport.snap.net.nz
Server:         ::1
Address:        ::1#53

 

Non-authoritative answer:
spf.ironport.snap.net.nz        text = "v=spf1 ip4:202.37.100.96/28 ip6:2406:e000:0:151::/64 -all"

 

Authoritative answers can be found from:

 

Doing the SPF record that way is very useful as it prevents problems if your SMTP relay provider changes their IP addresses.




tdgeek
29587 posts

Uber Geek

Trusted
Lifetime subscriber

  #3033781 9-Feb-2023 06:59
Send private message

Or you can use your own mail server with an A record, example  mail.domain.co.nz and a PTR pointing the IP to that record. SPF is your own server


cheshirecat
50 posts

Geek


  #3056630 30-Mar-2023 16:36
Send private message

If you mean that you're sending out your "me@mydomain.co.nz" emails via Xtra SMTP-AUTH, and need to add something to your mydomain.co.nz SPF record, then just chain to the one for xtra.co.nz --

 

mydomain.co.nz TXT "v=spf1 include:xtra.co.nz include:spf.myhostingprovider.com -all"

 

(assuming you have your normal mail server hosted with myhostingprovider.com who have their own spf record in spf.myhostingprovider.com)


SirHumphreyAppleby
2830 posts

Uber Geek


  #3056691 30-Mar-2023 17:33
Send private message

Generally, I would say if they haven't explicitly published a record for you to use, you probably shouldn't use it.

 

The SPF record for xtra.co.nz is...

 

"v=spf1 ip4:210.55.143.48/29 ~all"

 

Being IPs, it's subject to change and there is no guarantee non-xtra.co.nz mail is sent via those IPs. You can add "include:xtra.co.nz" in your rule.

 

As @tdgeek suggested, you could run your own server, but if you're asking about ISP e-mail, your needs a likely quite small and you probably don't want the hassle of maintaining your own server. SMTP2Go gives you 1,000 free e-mails per month on the free plan, so I'd just use them instead. NZ company, with decent support, even for free users.


decibel
311 posts

Ultimate Geek


  #3056749 30-Mar-2023 18:33
Send private message

I think it is the PTR  setting that you should be looking at.

 

 




tdgeek
29587 posts

Uber Geek

Trusted
Lifetime subscriber

  #3056751 30-Mar-2023 18:35
Send private message

cheshirecat:

 

If you mean that you're sending out your "me@mydomain.co.nz" emails via Xtra SMTP-AUTH, and need to add something to your mydomain.co.nz SPF record, then just chain to the one for xtra.co.nz --

 

mydomain.co.nz TXT "v=spf1 include:xtra.co.nz include:spf.myhostingprovider.com -all"

 

(assuming you have your normal mail server hosted with myhostingprovider.com who have their own spf record in spf.myhostingprovider.com)

 

 

Xtra like all commercial mail servers (gmail, hotmail, domain) has an SPF. 

 

If you send email Not From your core sending server you need an include in the SPF record.


SirHumphreyAppleby
2830 posts

Uber Geek


  #3056752 30-Mar-2023 18:36
Send private message

decibel:

 

I think it is the PTR  setting that you should be looking at.

 

 

SPF uses a TXT record on the envelope domain.

 

 

$ host -t txt xtra.co.nz
xtra.co.nz descriptive text "xtra.co.nz"
xtra.co.nz descriptive text "v=spf1 ip4:210.55.143.48/29 ~all"


tdgeek
29587 posts

Uber Geek

Trusted
Lifetime subscriber

  #3056753 30-Mar-2023 18:40
Send private message

SirHumphreyAppleby:

 

Generally, I would say if they haven't explicitly published a record for you to use, you probably shouldn't use it.

 

The SPF record for xtra.co.nz is...

 

"v=spf1 ip4:210.55.143.48/29 ~all"

 

Being IPs, it's subject to change and there is no guarantee non-xtra.co.nz mail is sent via those IPs. You can add "include:xtra.co.nz" in your rule.

 

As @tdgeek suggested, you could run your own server, but if you're asking about ISP e-mail, your needs a likely quite small and you probably don't want the hassle of maintaining your own server. SMTP2Go gives you 1,000 free e-mails per month on the free plan, so I'd just use them instead. NZ company, with decent support, even for free users.

 

 

If you run your own mail server at home, you just need your home IP address to resolve to the mail server

 

A record is 219.123.123.123

 

mail.myserver.co.nz is 219.123.123.123

 

 

 

Ensure that your iSP sets the PTR record for 219.123.123.123 to mail.myserver.co.nz


Create new topic





News and reviews »

Logitech Introduces New G522 Gaming Headset
Posted 21-May-2025 19:01


LG Announces New Ultragear OLED Range for 2025
Posted 20-May-2025 16:35


Sandisk Raises the Bar With WD_BLACK SN8100 NVME SSD
Posted 20-May-2025 16:29


Sony Introduces the Next Evolution of Noise Cancelling with the WH-1000XM6
Posted 20-May-2025 16:22


Samsung Reveals Its 2025 Line-up of Home Appliances and AV Solutions
Posted 20-May-2025 16:11


Hisense NZ Unveils Local 2025 ULED Range
Posted 20-May-2025 16:00


Synology Launches BeeStation Plus
Posted 20-May-2025 15:55


New Suunto Run Available in Australia and New Zealand
Posted 13-May-2025 21:00


Cricut Maker 4 Review
Posted 12-May-2025 15:18


Dynabook Launches Ultra-Light Portégé Z40L-N Copilot+PC with Self-Replaceable Battery
Posted 8-May-2025 14:08


Shopify Sidekick Gets a Major Reasoning Upgrade, Plus Free Image Generation
Posted 8-May-2025 14:03


Microsoft Introduces New Surface Copilot+ PCs
Posted 8-May-2025 13:56


D-Link A/NZ launches DWR-933M 4G+ LTE Cat6 Wi-Fi 6 Mobile Hotspot
Posted 8-May-2025 13:49


Synology Expands DiskStation Lineup with DS1825+ and DS1525+
Posted 8-May-2025 13:44


JBL Releases Next Generation Flip 7 and Charge 6
Posted 8-May-2025 13:41









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







Backblaze unlimited backup