Yes.. I've tried something like this:
/etc/courier/aliases/test: @imperecheri.ro: imperecheri
/etc/courier/me: mx.kappa.ro
mysql:select * from passwd where id='imperecheri'\G*************************** 1. row *************************** id: imperecheri crypt: ZFJchafx1N3Pk clear: name: imperecheri uid: 1001 gid: 103 home: /disk2/Maildir/imperecheri maildir: /disk2/Maildir/imperecheri quota: 10000000S,1000C domain_name: mx.kappa.ro full_name: provine: mx 1 row in set (0.00 sec)
authmysqlrc: MYSQL_SELECT_CLAUSE SELECT id, crypt, clear, uid, gid, home, maildir, quota, name \ FROM courier.passwd \ WHERE (id="$(local_part)" AND domain_name="$(domain)") OR \ CONCAT(id, "%", domain_name)="$(local_part)" OR \ CONCAT(id, "@", domain_name)="$(local_part)" OR \ (id="$(local_part)" AND "$(domain)"="dialmx.kappa.ro") OR \ (full_name="$(local_part)" AND domain_name="$(domain)") OR \ CONCAT(full_name, "%", domain_name)="$(local_part)" OR \ CONCAT(full_name, "@", domain_name)="$(local_part)"
It just says user unknown.
Correct. As makealiases(8) tells you, you also need to install the correct .courier files.
On Tue, May 27, 2003 at 12:48:34PM -0400, Sam Varshavchik wrote:Mircea Damian writes:
> >Hi, > >I saw some messages regarding this question but none with a real answer. >So, is it possible to redirect all messages coming to domain.com to a >specific user [EMAIL PROTECTED] (on the same server). > >That was possible with sendmail and virtusertable like this: > >@domain.com [EMAIL PROTECTED] > > >I have authmysql and courier 0.42.0.
See 'VIRTUAL DOMAINS' in the makealiases(8) man page. Courier uses a similar but not an identical mechanism, with several important key differences.
-- Mircea Damian Data Network Manager - Internet & Data E-mail: [EMAIL PROTECTED] Astral Telecom Bucuresti
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
