3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] virtual domains -...
FromSent OnAttachments
Sébastien CLAUDEApr 11, 2006 10:38 am 
Sébastien CLAUDEApr 25, 2006 10:23 am 
Jeff JansenApr 26, 2006 5:22 pm 
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] virtual domains - aliases and dot-courier - 550 user unknownActions...
From:Jeff Jansen (ivb_@sil.org)
Date:Apr 26, 2006 5:22:41 pm
List:net.sourceforge.lists.courier-users

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Sébastien CLAUDE wrote:

Now I'd like to use dot-couier and the address extension facility. The idea is to test tmda mechanism, for this I want to send to tmda the only mail that are for test@domain.com

So in my homedir for user test : /var/mail/domains/domain.com/test/ I have this : -rw-r--r-- 1 mail mail 84 2006-04-03 19:09 .courier -rw-r--r-- 1 mail mail 124 2006-04-03 14:11 .courier-tmda lrwxrwxrwx 1 mail mail 13 2006-04-03 13:09 .courier-tmda-default -> .courier

cat .courier-tmda: |preline tmda-filter -c ./.tmda/config |preline procmail -Y -m /var/mail/domains/multiseb.com/sebastien.claude/.procmailrc

Ok, so when I send a mail to test@domain.com I get a 550 user unknown error from courierestmp Apr 9 16:45:11 localhost courieresmtpd: error,relay=::ffff:192.168.0.130,from=<te@domain.com>,to=<test@domain.com>: 550 User unknown.

I think you are getting no response because this DOES work. It works for me in an almost identical situation. If you've got a .courier-tmda file in the 'test' user's $HOME directory, the 'test-tmda' *should* work. I use it and it works. And I just set up an account just like yours and everything worked fine.

I have 'sil.org' in hosteddomains, and I created a user "test" and then created .courier-tmda in that user's $HOME directory, and messages addressed to "test@sil.org" were accepted and delivered exactly as they should be.

So in my homedir for user test : /var/mail/domains/domain.com/test/ I have this : -rw-r--r-- 1 mail mail 84 2006-04-03 19:09 .courier -rw-r--r-- 1 mail mail 124 2006-04-03 14:11 .courier-tmda lrwxrwxrwx 1 mail mail 13 2006-04-03 13:09 .courier-tmda-default -> .courier

cat .courier-tmda: |preline tmda-filter -c ./.tmda/config |preline procmail -Y -m /var/mail/domains/multiseb.com/sebastien.claude/.procmailrc

So messages to "te@domain.com" work properly and are delivered? The instructions in the .courier file are properly followed? But messages to "test@domain.com" are rejected? I don't know why it wouldn't be working, but perhaps try deleting the .courier-tmda file and recreating it. Or get rid of the .courier-tmda* files and just create a .courier-default file and see if mail to "test-<anything>@domain.com" is accepted (which it should be). If that works then try creating the .courier-tmda file again.

Just to be sure, you are sending to "test-tmda" and you did create ".courier-tmda"? While I was testing this I sent mail to "test-tmad" and it was rejected, of course, since I'd reversed the letters.

Using the .courier-* notation for delivery does work in courier, which many people can attest to. So perhaps simply starting over with the account will solve your problem.

HTH

iD8DBQFEUAcpZxtYeNk78A8RAp99AKC1hufTyF6Dxjb+cIaq2RKV9ETUjgCgyyyo aclcetLwtuk7WAO42Vh7/5M= =gz2z -----END PGP SIGNATURE-----