Open fbastian opened 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
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.
so this is a setting of Tomcat to remember, I don't know how...
@smoretti, can you confirm that this is the best way to go? Or should we address the problem we have with ipv6?
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.
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.
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?
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.
In GitLab by @fbastian on Dec 24, 2015, 18:25
Our TopAnat mails are not delivered to google:
See https://support.google.com/mail/?p=ipv6_authentication_error .
@smoretti, can you take care of this please?