(05-05-2009 12:52 AM)kilburn Wrote: Guess what: there's a /etc/ispcp/bind/working/domain.tld.db file that the panel won't overwrite. See the pattern?
Sorry - me again...
I'm just wondering about the SPF tags...
All sending will be going from one of three IP addresses.
None of these will be on the server.
What should I change the spf record to in order to ensure that the DNS records display the correct info?
It is currently:-
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADD.RE.SS ~all"
where IP.ADD.RE.SS is the server ip address...
Can I add in three lines there with:-
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADD.RE.SS1 ~all"
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADD.RE.SS2 ~all"
domain.tld. IN TXT "v=spf1 a mx:domain.dyndns.org ~all"
where IP.ADD.RE.SS1 is the main sender IP address, IP.ADD.RE.SS2 is the 2nd, and domain.dyndns.org is fqdn of the dyndns.org entry for one of the IP addresses?
Or is there a better way to do it?
Can I say any IP address/DNS entry specifically referenced in these files is authorised to send?
Cheers,
Jx
(05-11-2009 09:00 PM)vetch101 Wrote: (05-05-2009 12:52 AM)kilburn Wrote: Guess what: there's a /etc/ispcp/bind/working/domain.tld.db file that the panel won't overwrite. See the pattern?
Sorry - me again...
I'm just wondering about the SPF tags...
All sending will be going from one of three IP addresses.
None of these will be on the server.
What should I change the spf record to in order to ensure that the DNS records display the correct info?
It is currently:-
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADD.RE.SS ~all"
where IP.ADD.RE.SS is the server ip address...
Can I add in three lines there with:-
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADD.RE.SS1 ~all"
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADD.RE.SS2 ~all"
domain.tld. IN TXT "v=spf1 a mx:domain.dyndns.org ~all"
where IP.ADD.RE.SS1 is the main sender IP address, IP.ADD.RE.SS2 is the 2nd, and domain.dyndns.org is fqdn of the dyndns.org entry for one of the IP addresses?
Or is there a better way to do it?
Can I say any IP address/DNS entry specifically referenced in these files is authorised to send?
Cheers,
Jx
Hmmmm.... based on this:-
http://www.openspf.org/SPF_Record_Syntax
Looks like I could use:-
"The "all" mechanism (edit)
all
This mechanism always matches. It usually goes at the end of the SPF record.
Examples:
"v=spf1 mx -all"
Allow domain's MXes to send mail for the domain, prohibit all others."
Alongside:-
"The "mx" mechanism (edit)
mx
mx/<prefix-length>
mx:<domain>
mx:<domain>/<prefix-length>
All the A records for all the MX records for domain are tested in order of MX priority. If the client IP is found among them, this mechanism matches.
If domain is not specified, the current-domain is used.
The A records have to match the client IP exactly, unless a prefix-length is provided, in which case each IP address returned by the A lookup will be expanded to its corresponding CIDR prefix, and the client IP will be sought within that subnet.
Examples:
"v=spf1 mx mx:deferrals.domain.com -all"
Perhaps a domain sends mail through its MX servers plus another set of servers whose job is to retry mail for deferring domains.
"v=spf1 mx/24 mx:offsite.domain.com/24 -all"
Perhaps a domain's MX servers receive mail on one IP address, but send mail on a different but nearby IP address."
So, I'd add my MX records into the DNS like this:-
domain.tld. IN MX 10 mail.domain.tld.
domain.tld. IN MX 20 mailgate.domain.tld.
domain.tld. IN MX 30 domain.dyndns.org.
domain.tld. IN MX 50 relay.domain.tld.
then have records for:-
mail IN A IP.ADD.RE.SS1
mailgate IN A IP.ADD.RE.SS2
relay IN A IP.ADDRESS.OF.SERVER
and then add something like:-
domain.tld. IN TXT "v=spf1 mx ~all"
Hmmmm.... looking at it, the default is...:-
domain.tld. IN TXT "v=spf1 a mx ip4:IP.ADDRESS.OF.SERVER ~all"
I think that says allow all a records and mx records and the IP Address of the server to send...
... so as long as I've added in the MX records and A records properly, I don't need to worry about SPF1...?
Is that correct?
Cheers,
Jx