I’m trying to get UCS to forward emails to Redmine via HTTP protocol and I can’t seem to get it working. Redmine provides an app called rdm-mailhandler.rb which should handle this as long as I can get the mailserver to forward emails to this app. What I’ve done so far/configuration:
I’ve put rdm-mailhandler.rb in /var/mail on the UCS DC server and made it executable with chmod +x.
I’ve created a user called “redmine” with default email set to redmine@mydomain.intranet.
In the Univention Configuration Registry I’ve added an entry as follows:
UCS Variable: mail/alias/redmine
Value: redmineserver/redmine --key --project defaultproject --tracker bug --priority normal –-allow-override tracker,priority"
From what I understand, this SHOULD push any emails received at redmine@mydomain.intranet and do not get pushed to the app. Any ideas on what I’m missing?
The UCR mail/alias/ is for local aliases. No domains should be used. A user account is not needed.
Please try with
ucr set redmine="/var/mail/rdm-mailhandl…
Then run
apt-get install swaks
swaks --server 127.0.0.1 --port 25 --to redmine
and post any errors in the output and the relevant part of the logfile /var/log/mail.log.
Ok, I’m not sure what you mean by local aliases. Basically I need to be able to open up Outlook and send an email to 'redmine@mydomain.intranet’ and have it pipe through this.
I’ve tried ucr set redmine="… which seems to have run fine. swaks wouldn’t install for some reason, just said it couldn’t find it. Is UCS connected to the default canonical repos or would I have to add the repos manually? Anyway, I opened up outlook and sent a test email to 'redmine@mydomain.intranet’. Here’s the relevant portion of the mail.log file:
Ok, I’m getting closer. Was able to get it working by using a local address, ie: sending an email to redmine@cnllc.intranet, and would that require a UCS user for Redmine?
Frequently I need to forward important emails from work to my home address as well. Here is how to set this up with the OS X mail application.
Here is how to setup forwarding emails from certain contacts to another email address. This is particularly useful for forwarding emails from certain people to SMS.
Open Mail
Click Preferences
Select the Rules tab
Click the Add Rule button
Name the rule whatever you wish
Create the rule with something similar to the following:
This will forward all messages that you receive from newemail@email.com. Using this you can forward important emails at work to home or SMS, for example.