Hi,


I'm working on getting subdomains to work with wildcard dns. I'm still lost, but have tracked down that Courier doesn't even hit the DB with the mysql_select_clause, so my earlier thought of a "solution" won't work with Courier, as I understand it.

Sam, if the line ".foobar.com" is in esmtpacceptmailfor, why does the mail server accept RCPT TO's in any wildcard subdomain, but then not bother looking up the subdomain info in authlib? Secondary mx? Is there any historical reason why allowing wildcards in esmtpacceptmailfor, the authlib stuff, and aliases (eg, I'd want to define an alias for [EMAIL PROTECTED]) shouldn't be allowed?

best regards,
Jeff

How can I set Courier up to accept mail for wildcard DNS? I'm using authmysql / courier 0.44. Here's what I would expect to work:

1. mx record for *.foobar.com points at mx.myserver.com
2. .foobar.com added in myserver's esmtpacceptmailfor (note the leading '.')
3. makeacceptmailfor
4. add entry in mySql with email address defined as [EMAIL PROTECTED] (note the '.' after the '@'; this is with mysql_select_clause)
5. mail to [EMAIL PROTECTED] accepted to homedir / uid / gid as defined in SQL.
6. If [EMAIL PROTECTED] is defined in one of the db entries, any mail to [EMAIL PROTECTED] should be accepted as well.


I'd also expect tight binding -- e.g., if entry A has [EMAIL PROTECTED] and entry B has [EMAIL PROTECTED] are both defined, any email under the *.usa.foobar.com domain would go to entry A. I'd expect to need 2 entries -- one for [EMAIL PROTECTED], and another for [EMAIL PROTECTED]; otherwise there's no way to split them.

The only thing I've been able to think of, short of writing a patch, is adding an ugly SQL hack in the MYSQL_SELECT_CLAUSE. There's got to be a better way...

Courier Gurus, Help?

as always,
Many thanks,
Jeff



------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to