From: John P. R. <ro...@cs...> - 2024-04-03 12:38:57
|
Hi Martin: In message <078...@ce...>, =?UTF-8?Q?Martin_=C3=96stlund?= via Roundup-users writes: >On 4/2/24 23:42, John P. Rouillard wrote: >> I am trying to help somebody setup inbound email using postfix for >> multiple roundup trackers on two different virtual addresses. For this >> example: is...@ex... and is...@an.... >> >> Does anybody have a setup that does this and runs the roundup-mailgw >> with the proper uid/gid? > >Not with multiple trackers, but with a single tracker instance. If I >were to have multiple trackers I would probably make Postfix route >is...@ex... and is...@an... to the appropiate tracker. I know that is a possibility, although I have never used it. Do you have an example of this? >What issues are you seeing? The system got upgraded and apparently the postfix config got lost during the upgrade. I think this will work, but something simpler would be good as well. The box is known as abox.com on the internet but receives email for: is...@ex... and bu...@an.... in /etc/postfix/main.cf add: virtual_alias_domains = example.com another.com virtual_alias_maps = hash:/etc/postfix/virtual alias_maps = hash:/etc/aliases hash:/etc/postfix/aliases.roundup in /etc/postfix/virtual add: # after changing this run 'postmap /etc/postfix/virtual' is...@ex... roundup_issues_example bu...@an... roundup_bugs_another Create /etc/postfix/aliases.roundup with owner/group roundup_user/roundup_group. Add: # after changing this run 'postmap /etc/postfix/aliases.roundup' roundup_issues_example |"/tools/roundup/bin/roundup-mailgw /d/track/example" roundup_issues_another |"/tools/roundup/bin/roundup-mailgw /d/track/another" and I think that's it. The ownership on aliases.roundup should cause roundup-mailgw to run as the roundup user according to local(8). The (writable) tracker files are owned by the roundup_user. I think all the trackers are owned by the same roundup user. If not, a separate alias file for each user would need to be created. Thoughts? -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. |