BgeeDB / bgee_apps

Source code of the Java Bgee applications
https://www.bgee.org/
Creative Commons Zero v1.0 Universal
2 stars 1 forks source link

Can't send mails to gmail #107

Open fbastian opened 4 years ago

fbastian commented 4 years ago

In GitLab by @fbastian on Dec 24, 2015, 18:25

Our TopAnat mails are not delivered to google:

This is the mail system at host bioinfo.unil.ch.

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

<frederic.bastian@gmail.com>: host
    gmail-smtp-in.l.google.com[2a00:1450:400c:c0b::1a] said: 550-5.7.1
    [2001:620:610:800:ecbc:c9f9:c5c5:89e9] Our system has detected that
    550-5.7.1 this message does not meet IPv6 sending guidelines regarding PTR
    550-5.7.1 records and authentication. Please review 550-5.7.1
    https://support.google.com/mail/?p=ipv6_authentication_error for more 550
    5.7.1 information. e10si32634802wmi.83 - gsmtp (in reply to end of DATA
    command)

See https://support.google.com/mail/?p=ipv6_authentication_error .

@smoretti, can you take care of this please?

fbastian commented 4 years ago

In GitLab by @fbastian on Dec 24, 2015, 18:25

Title changed from Can't send mai to gmail to Can't send mails to gmail

fbastian commented 4 years ago

In GitLab by @fbastian on Dec 24, 2015, 18:50

I added a setenv.sh file in /usr/share/tomcat7/bin, allowing to set the System property -Djava.net.preferIPv4Stack=true, in order to not use ipv6, that is problematic.

fbastian commented 4 years ago

In GitLab by @fbastian on Dec 24, 2015, 20:06

The mails are still sent in ipv6, I don't know why, as setenv.sh is corectly executed. Definitly something server-side. Mail client configured to send ipv6 only?

Some mails are accepted, some are rejected.

fbastian commented 4 years ago

In GitLab by @smoretti on Jan 4, 2016, 11:01

The postfix/mail server uses all protocols by default. I prefer not to change that and keep default postfix behavior. Maybe future versions of Postfix will address some of the problems.

To solve the issue with gmail, I have found a way to disable ipv6 when sending to gmail (http://postfix.1071664.n5.nabble.com/disable-ipv6-when-sending-to-gmail-td60672.html).

I don't know how to satisfy all gmail ipv6 requirements (https://support.google.com/mail/answer/81126?p=ipv6_authentication_error&rd=1#authentication) and don't know if UNIL does: if I solve that, maybe it will fail with unil when sent by a machine and not by a user.

I have tested on command line with gmail, yahoo, unil and sib e-mail addresses and all works for me on bioinfo.unil.ch.

Could you test it in topanat?

And maybe with the trick I used setenv.sh can be removed.

fbastian commented 4 years ago

In GitLab by @smoretti on Jan 4, 2016, 11:13

I have just send plenty of e-mails to gmail, and some work, some don't.

So, for now, bioinfo.unil.ch sends all e-mails in ipv4 but this is not ideal nor good for future updates and protocols. Will try https://powerjpm.info/dossiers/installer-un-serveur-postfix-en-ipv6-sous-ubuntu-conforme-aux-attentes-de-gmail/ on my own machine.

Can you test in topanat? With or without setenv.sh?

fbastian commented 4 years ago

In GitLab by @fbastian on Jan 4, 2016, 16:26

I tried 4 analyses with mails correctly sent, using TopAnat on bgee.org. I remove the setnenv.sh.

I keep this issue open, with a lower priority, until you completely fix the ipv6 problems.