Domain Alias in Qpsmtpd

2009-01-28 Thread Julien
Hello, I have installed qmail-ldap with qpsmtpd. It works great. I then install a patch for qmail : http://www.qmail-ldap.org/wiki/index.php/Domain_aliasing So I have "domain alias" working in qmail : any domain alias is rewrite before looking to the ldap database. If I have a user julien in ld

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Steve Kemp
On Wed Jan 28, 2009 at 14:45:08 +0100, Julien wrote: > But this don't work, the next plugins rcpt_ldap gets the old recipient > (not rewrite) maybe it's not the right variable ? If somebody have an > idea about the way to do this in qpsmtpd ... You can do this rewriting as this: sub hook_rcpt

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Julien
I have read this topic, but it don't work for me ... I have create a file rcpt_rewrite with : -- #aliasdomains use Qpsmtpd::DSN; sub hook_rcpt { my ($self, $transaction) = (shift, shift); # $_[0]->user("newuser"); $_[0]->host("domain.com"); return DEC

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Steve Kemp
On Wed Jan 28, 2009 at 14:57:31 +0100, Julien wrote: > I have read this topic, but it don't work for me ... (I'll assume you didn't forget to restart.) > -- > #aliasdomains I hope this is in rcpt_rewrite.pm > So the recipient should always be rewrite to

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Julien
Le mercredi 28 janvier 2009 à 14:00 +, Steve Kemp a écrit : > On Wed Jan 28, 2009 at 14:57:31 +0100, Julien wrote: > > > I have read this topic, but it don't work for me ... > > (I'll assume you didn't forget to restart.) I do a : svc -d /service/qpsmtpd ; svc -u /service/qpsmtpd and logs

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Julien
I'm running a qpsmtpd-0.40 from website Le mercredi 28 janvier 2009 à 09:24 -0500, Matt Sergeant a écrit : > On Wed, 28 Jan 2009 15:13:31 +0100, Julien wrote: > > Without any success, I still got/get the original recipient. > > What version of qpsmtpd? I think changing these values was only adde

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Matt Sergeant
On Wed, 28 Jan 2009 15:13:31 +0100, Julien wrote: > Without any success, I still got/get the original recipient. What version of qpsmtpd? I think changing these values was only added in SVN. Matt.

Re: Domain Alias in Qpsmtpd

2009-01-28 Thread Julien
It's working with the SVN version, recipient is rewrite when it came to rcpt_ldap. I have other problem with the upgrade (coying config is not enough, maybe I have change something else) anyway I will correct this myself. But I still have a request to the mailling list, my perl skill is not alr