[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] &*&%$£ Mail Aliases on RAQ3



On Sat, 28 Apr 2001, Colin Jack wrote:

> have set up virtual sites
> with the host name mail.xxx.xxx
> 
> In the DNS I have tried setting the MX record to both mail.mydomain.com and
> just plain mydomain.com. I have also tried with and without an address entry

You probably need 2 MX records (one for each to do it this way)

> If I create a user called john then email addressed to john@xxxxxxxxxxxx is
> delivered okay
> If I create an email alias for john called johnsmith then email addressed to
> johnsmith@xxxxxxxxxxxx bounces with "user unknown".

You can short circuit all the silly delivery rewriting for local users by
aliasing to localhost , eg

johnsmith@xxxxxxxxxxxx john@localhost

This is a bit gross, but will force delivery ;)

> 
> I have checked the /etc/virtusertable and the entry for
> 
> johnsmith@xxxxxxxxxxxxxxxxx  john
> 
> is in there just the same as
> 
> john@xxxxxxxxxxxxxxxxx  john
> 
> As far as I can see it should work! The mail for @mydomain.com is being
> delivered okay, all users get their mail okay ... it's just the aliases that
> bounce.

do you have a domain wide rule?
eg

@mydomain.com %1@xxxxxxxxxxxxxxxxx

(Or , depending how you set it up, possibly the reverse of this)

sendmail has a test mode btw, you can make it tell you what it's doing...

gsh