8 messages in net.sourceforge.lists.courier-usersRe: [courier-users] "Best" method for...
FromSent OnAttachments
Rod CollenJun 22, 2002 12:59 pm 
Sam VarshavchikJun 22, 2002 4:52 pm 
Mark ConstableJun 22, 2002 9:36 pm 
Daniel HigginsJun 22, 2002 10:27 pm 
Daniel HigginsJun 22, 2002 10:27 pm 
Daniel HigginsJun 22, 2002 10:27 pm 
Mark ConstableJun 22, 2002 11:16 pm 
Daniel HigginsJun 23, 2002 12:02 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] "Best" method for forwarding mail, sendmail virtualusertableActions...
From:Mark Constable (mar@renta.net)
Date:Jun 22, 2002 11:16:41 pm
List:net.sourceforge.lists.courier-users

Daniel Higgins wrote:

i have, it works nicely. except that it's less than ideal if you're trying to automate the login/aliases creation process from a separate box whitout too much hassle.

I guess you are referring to "A simpler method might be to use "john@domain_i_host.com: jo@hotmail.com" in an aliases file..."

beside creating tons of gay php scripts (or whatever you prefer) that runs

Even that is tricky when dealing with the permissions of the web server writting into etc/aliases/*.

on an apache server, the other solution is implementing an ssh client in your controlling application... not quite an easy task (well, maybe easy, but certainly not something you can do in a few minutes)

For the benefit of anyone else struggling with a solution to this...

% cat update_alias #!/bin/sh ssh -f mail.host.com "echo \"$1: $2\" >/etc/courier/aliases/$1; \ makealiases; courier restart"

invoked as "update_alias john@domain_i_host.com jo@hotmail.com" from a remote machine by root, or some user who can write into etc/aliases and can also pull a "courier restart". Untested and the courier restart part may be not be needed in this case, and it may have to be a tab between the "$1: $2" (then use echo -e).

--markc