Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29917

Gerrit not sending emails

$
0
0

I have set up a Gerrit server and trying to make it send emails (for all events). But for some reason Gerrit doesn't send any emails. error_logs shows absolutely no data, that means it is not even trying to send emails.

Here is relevant part of my project.config for "All-Projects":

[notify "demo"]
    email = me@company.com
    type = all  

Here is my gerrit.config:

[gerrit]  
    basePath = git  
    canonicalWebUrl = http://hostname:8443/  
[database]  
    type = h2  
    database = db/ReviewDB  
    connectionPool = true  
    poolLimit = 128  
[index]  
    type = LUCENE  
[auth]  
    type = LDAP  
[ldap]  
    poolDebug = all  
    server = ldap://nod.company.com  
    accountBase = cn=users,dc=company,dc=com  
    accountEmailAddress = mail  
    referral = follow  
[sendemail]  
    smtpServer = relay.company.com  
     smtpServerPort = 25  
     smtpUser = my_username  
[container]  
     user = gerrit2  
     javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre  
     heapLimit = 2g  
[sshd]  
     listenAddress = *:29419  
     maxConnectionPerUser = 256  
[automerge]  
     botEmail = me@company.com  
[download]  
     scheme = ssh  
[httpd]  
     listenUrl = http://*:8443/  
     maxThreads = 128  
[cache]  
         directory = cache  
[gitweb]  
     cgi = /usr/share/gitweb/gitweb.cgi 

Environment: Ubuntu 14.04 and Gerrit 2.11.6.

I have tried to send emails from command line on this server and that works just fine.

All of my individual projects on gerrit inherit access rights from "All-Projects". I even tried adding the email section to each individual project but that didnt help either.

My colleague, who has his own Gerrit server that is able to send emails, looked into my issue and couldn't figure out what's wrong with my server. We both have same Linux version, Gerrit version, gerrit.config and project.config.


Viewing all articles
Browse latest Browse all 29917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>