1

Topic: 2 domains and gmail problem

Hi,
I have Iredmail 7.2 and freeBSD 8.2

I have 2 domain: example1.com and example2.com.
My hostname is ns1.example1.com
And I have problem with send email from user@example2.com to gmail.

Gmail said: The IP you're using to send mail is not authorized
    to 550-5.7.1 send email directly to our servers. Please use the SMTP relay
    at your 550-5.7.1 service provider instead.

When I sent email from user@example1.com to gmail is ok.
nslookup resolve name proper.

What is wrong?

Sorry for me English and thx for help

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: 2 domains and gmail problem

Do you have SPF records configured for example2.com? You can check it on FreeBSD with command 'dig':

$ dig -t txt example2.com

3 (edited by Amarantus 2011-06-19 15:50:02)

Re: 2 domains and gmail problem

I have not SPF records in 'dig' command for example2.com and example1.com.
I use google and I think:

example1.com zone file:

$ORIGIN example1.com.
$TTL 3600
@ 1D IN SOA @ admin.example1.com (
                2011061201
                360
                900
                3600000
                3600
)

@       IN      NS      ns1.example1.com.
@       IN      MX 10   ns1.example1.com.

@       IN      A       1.2.3.4
ns1     IN      A      1.2.3.4
; SPF stuff
; domain SPF
example1.com.  IN  TXT   "v=spf1 mx -all"
; AND
example1.com.  IN  SPF   "v=spf1 mx -all"
; mail host SPF
ns1          IN  TXT   "v=spf1 a -all"
; AND
ns1          IN  SPF   "v=spf1 a -all"

and for example2.com zone file:

$ORIGIN example2.com.
$TTL 3600
@ 1D IN SOA @ admin.example1.com (
                2011061201
                360
                900
                3600000
                3600
)

@       IN      NS      ns1.example2.com.
@       IN      MX 10   ns1.example1.com.

@       IN      A       1.2.3.4
ns1     IN      A      1.2.3.4
; SPF stuff
; domain SPF
example2.com. IN  TXT   "v=spf1 include:example1.com -all"
; AND
example2.com. IN  SPF   "v=spf1 include:example1.com -all"

Is this good ?

4

Re: 2 domains and gmail problem

You can verify them with free tools here:
http://www.openspf.org/Tools