1

Topic: Unable to send mail to google mail.

Hi,

I configure SPF and DKIM and i can't send mail to google.com

Command: dig -t txt example.com return TXT records.

Command: amavisd testkeys return pass

nslookup example.com return me ip address and nslookup ip_address return example.com

I have freeBSD 8.2 and Iredmail 0.7.2 on LDAP

hostname: ns2.example.com
command: hostname -f return ns2.example.com

My example.com files:

$ORIGIN example.com.
$TTL 3600
@ 1D IN SOA @ michal.example.com (
                2012012001
                360
                900
                3600000
                3600
)

@       IN      NS      ns2.example.com.
        IN      MX 10   ns2.example.com.

@       IN      A       1.2.3.4
ns2     IN      A       1.2.3.4



example.com.       IN      TXT     "v=spf1 ip4:1.2.3.4/32 -all"
example.com.       IN      SPF     "v=spf1 ip4:1.2.3.4/32 -all"

ns2             IN      TXT     "v=spf1 ip4:1.2.3.4 -all"
ns2             IN      SPF     "v=spf1 ip4:1.2.3.4 -all"

dkim._domainkey.example.com.       IN      TXT (
  "v=DKIM1; p="
  "here is the secret key"
  "....."
  "....."
  "....")

www             IN      CNAME   example.com.

When I sent mail to google mail, google said:

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<greatnet.pl@gmail.com>: host gmail-smtp-in.l.google.com[173.194.65.26] said:
550-5.7.1 [1.2.3.4] 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. Learn more at
550 5.7.1 http://support.google.com/mail/bin/answer.py?answer=10336
t47si1292564eeb.67 (in reply to end of DATA command)

When I sent mail to another mail side (for example: wp.pl or example.com) message go good.

Please help.

Best Regards
Michał==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version:
- iRedMail version and backend (LDAP/MySQL):
- Any related log? Log is helpful for troubleshooting.
====

----

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

2

Re: Unable to send mail to google mail.

I guess your server IP address is listed in blacklist of Spamhaus.org, please enter your IP address to check it out:
http://www.spamhaus.org/lookup.lasso

If it's blocked, please request in www.spamhaus.org to remove it.

3

Re: Unable to send mail to google mail.

ZhangHuangbin wrote:

I guess your server IP address is listed in blacklist of Spamhaus.org, please enter your IP address to check it out:
http://www.spamhaus.org/lookup.lasso

If it's blocked, please request in www.spamhaus.org to remove it.

You have right, my ip address was blocked only on PBL list.
I run procedure to remove my address from PBL list.
Question, Is this posible that my ip address whas blocked when I use iredmail?

4

Re: Unable to send mail to google mail.

Amarantus wrote:

Question, Is this posible that my ip address whas blocked when I use iredmail?

It's hard to answer this question.
It might be blocked before, for example, someone setup email server with this IP address as a spam server, and it was blocked that time.

5

Re: Unable to send mail to google mail.

ZhangHuangbin wrote:
Amarantus wrote:

Question, Is this posible that my ip address whas blocked when I use iredmail?

It's hard to answer this question.
It might be blocked before, for example, someone setup email server with this IP address as a spam server, and it was blocked that time.

Now is good smile
Thx for help.
How I can to prevent read mail as spam mail for in server recipient when I sent mail via iredmail (for example virtual domain)?
I think that any virtual domain in his zone file must have DKIM. Is this true? (any virtual domain has mx server as example.com with spf and dkim. Example.com is mx server and all mails are sent via example.com)

6

Re: Unable to send mail to google mail.

SPF and DKIM are helpful. smile

7

Re: Unable to send mail to google mail.

ZhangHuangbin wrote:

SPF and DKIM are helpful. smile

Ok. Thx for help.

8

Re: Unable to send mail to google mail.

ZhangHuangbin wrote:

I guess your server IP address is listed in blacklist of Spamhaus.org, please enter your IP address to check it out:
http://www.spamhaus.org/lookup.lasso

If it's blocked, please request in www.spamhaus.org to remove it.


hey this work for me, thanks.