{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/585","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/585/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/585/events","html_url":"https://github.com/mholt/caddy/issues/585","id":132263691,"number":585,"title":"systemd acme error: invalid email","user":{"login":"Fahrradflucht","id":13237661,"avatar_url":"https://avatars.githubusercontent.com/u/13237661?v=3","gravatar_id":"","url":"https://api.github.com/users/Fahrradflucht","html_url":"https://github.com/Fahrradflucht","followers_url":"https://api.github.com/users/Fahrradflucht/followers","following_url":"https://api.github.com/users/Fahrradflucht/following{/other_user}","gists_url":"https://api.github.com/users/Fahrradflucht/gists{/gist_id}","starred_url":"https://api.github.com/users/Fahrradflucht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fahrradflucht/subscriptions","organizations_url":"https://api.github.com/users/Fahrradflucht/orgs","repos_url":"https://api.github.com/users/Fahrradflucht/repos","events_url":"https://api.github.com/users/Fahrradflucht/events{/privacy}","received_events_url":"https://api.github.com/users/Fahrradflucht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T21:39:50Z","updated_at":"2016-02-08T22:06:43Z","closed_at":null,"body":"I try to run caddy as a service (CaaS) ( 😉) with systemd on Centos 7. I have (seemingly) the same setup working on a Fedora 23 server and I don't know whats going on.\r\n\r\nMy caddy.service file looks like this:\r\n```\r\n[Unit]\r\nDescription=Caddy Webserver\r\nDocumentation=https://caddyserver.com/docs\r\nAfter=network.target\r\n\r\n[Service]\r\nUser=caddy\r\nWorkingDirectory=/srv/www\r\nLimitNOFILE=4096\r\nPIDFile=/var/run/caddy/caddy.pid\r\nExecStart=/usr/bin/caddy -agree -email=\"mail@mydomain.de\" -pidfile=\"/var/run/caddy/caddy.pid\"\r\nRestart=on-failure\r\nStartLimitInterval=600\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n\r\nWhen I try to start this service it fails with this message:\r\n```\r\nFeb 08 21:31:15 my.host.de caddy[13456]: Activating privacy features...2016/02/08 21:31:15 error creating client: registration error: acme: Error 500 - urn:acme:error:invalidEmail - not a valid e-mail address\r\n```\r\n\r\nFirst I had a typo in the e-mail address, but now it's correct and it still fails with the same error.\r\n\r\nI tried running ```/usr/bin/caddy -agree -email=\"mail@mydomain.de\" -pidfile=\"/var/run/caddy/caddy.pid\"``` as ```caddy``` in ```/srv/www``` and it works just fine.\r\n\r\nAny suggestions why it's failing with systemd?"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/181589049","html_url":"https://github.com/mholt/caddy/issues/585#issuecomment-181589049","issue_url":"https://api.github.com/repos/mholt/caddy/issues/585","id":181589049,"user":{"login":"mholt","id":1128849,"avatar_url":"https://avatars.githubusercontent.com/u/1128849?v=3","gravatar_id":"","url":"https://api.github.com/users/mholt","html_url":"https://github.com/mholt","followers_url":"https://api.github.com/users/mholt/followers","following_url":"https://api.github.com/users/mholt/following{/other_user}","gists_url":"https://api.github.com/users/mholt/gists{/gist_id}","starred_url":"https://api.github.com/users/mholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mholt/subscriptions","organizations_url":"https://api.github.com/users/mholt/orgs","repos_url":"https://api.github.com/users/mholt/repos","events_url":"https://api.github.com/users/mholt/events{/privacy}","received_events_url":"https://api.github.com/users/mholt/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T22:06:42Z","updated_at":"2016-02-08T22:06:42Z","body":"Is there a folder in `$HOME/.caddy/letsencrypt/users`? If so, and it looks like the wrong email address, delete it and try again. Let me know!"}}