{"action":"created","issue":{"url":"https://api.github.com/repos/roehling/postsrsd/issues/31","repository_url":"https://api.github.com/repos/roehling/postsrsd","labels_url":"https://api.github.com/repos/roehling/postsrsd/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/roehling/postsrsd/issues/31/comments","events_url":"https://api.github.com/repos/roehling/postsrsd/issues/31/events","html_url":"https://github.com/roehling/postsrsd/issues/31","id":56726687,"number":31,"title":"Set mydomain / SRS_DOMAIN dynamically?","user":{"login":"billynoah","id":3309911,"avatar_url":"https://avatars.githubusercontent.com/u/3309911?v=3","gravatar_id":"","url":"https://api.github.com/users/billynoah","html_url":"https://github.com/billynoah","followers_url":"https://api.github.com/users/billynoah/followers","following_url":"https://api.github.com/users/billynoah/following{/other_user}","gists_url":"https://api.github.com/users/billynoah/gists{/gist_id}","starred_url":"https://api.github.com/users/billynoah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billynoah/subscriptions","organizations_url":"https://api.github.com/users/billynoah/orgs","repos_url":"https://api.github.com/users/billynoah/repos","events_url":"https://api.github.com/users/billynoah/events{/privacy}","received_events_url":"https://api.github.com/users/billynoah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/roehling/postsrsd/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-02-05T20:43:50Z","updated_at":"2016-03-30T00:24:53Z","closed_at":null,"body":"The mail is delivered and SRS is working but gmail still includes a \"mailed-by: example.com\" which does not always match the domain in question in the case where the mailserver handles mail for multiple domains.\r\n\r\nI'd like the appended SRS_DOMAIN to match the recipient's domain rather than the main mailserver domain (specified as \"mydomain\" in main.cf).  Is this possible?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/roehling/postsrsd/issues/comments/203167982","html_url":"https://github.com/roehling/postsrsd/issues/31#issuecomment-203167982","issue_url":"https://api.github.com/repos/roehling/postsrsd/issues/31","id":203167982,"user":{"login":"emibcn","id":693791,"avatar_url":"https://avatars.githubusercontent.com/u/693791?v=3","gravatar_id":"","url":"https://api.github.com/users/emibcn","html_url":"https://github.com/emibcn","followers_url":"https://api.github.com/users/emibcn/followers","following_url":"https://api.github.com/users/emibcn/following{/other_user}","gists_url":"https://api.github.com/users/emibcn/gists{/gist_id}","starred_url":"https://api.github.com/users/emibcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emibcn/subscriptions","organizations_url":"https://api.github.com/users/emibcn/orgs","repos_url":"https://api.github.com/users/emibcn/repos","events_url":"https://api.github.com/users/emibcn/events{/privacy}","received_events_url":"https://api.github.com/users/emibcn/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T00:24:53Z","updated_at":"2016-03-30T00:24:53Z","body":"Then it will be needed to add all the possibilities for dynamic handling of domains in Postfix: MySQL, PostgreSQL, LDAP, static, tcp, etc\r\n\r\nAnother aproach is to execute (somewhere inside PostSRSd):\r\n`postmap -q DOMAIN $(postconf -h virtual_mailbox_domains)`\r\n\r\nTo verify if DOMAIN is internal. But this escalates other issues, for example if PostSRSd has access to execute correctly postconf and postmap, or if even those executables exist in the same -virtual- machine than PostSRSd.\r\n\r\nI suppose we will need to wait until PostSRSd turns into a real milter, if it ever occurs..."}}