I've made an email server on Ubuntu 12.04 using postfix, dovecot and roundcube as an web interface. Sending and receiving mails from Yahoo works fine (well, to be honest with a delay of 5 minutes, I don't know why...), but when I'm trying to send an email to my gmail address, I get this error:
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
<[email protected]>: host gmail-smtp-in.l.google.com[2607:f8b0:4001:c0d::1a]
said: 550-5.7.1 [2602:ff62:104:10c::] Our system has detected that this
message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR
records and 550-5.7.1 authentication. Please review 550-5.7.1
https://support.google.com/mail/?p=ipv6_authentication_error for more 550
5.7.1 information. 201si4583487ioc.208 - gsmtp (in reply to end of DATA
command)
Can anyone give me some ideas? What I'm doing wrong? What about the delays that I'm encountering when sending and receiving from Yahoo!?
Cheers!
Your e-mail server is trying to connect to gmail over IPv6. According to the error message, you have no PTR record for IPv6 pointing to your server.
If you can create PTR records yourself, you should do that. If you can't, you'll have to ask your server provider.
An example PTR record is this: