Alias problems

Lenny rahl at mindcryme.com
Thu Apr 8 17:15:30 EDT 2004


I am once again in your debt Andrzej. I tried your first suggestion and 
it works
like a charm (the lennyl+xxx at example.net ! in virtusertable).

Thank you again!!!

Lenny
--

"Wisdom is to a man an infinite Treasure" - Anonymous"


Quoting Andrzej Filip <default at anfi.homeunix.net>:

> Lenny wrote:
>> I am using the Cyrus-Sendmail integration as done by Andrzej Filip. 
>> I'm having
>> problems with some aliases.
>>
>> The problem is with aliases that are in virtusertable which point to 
>> an alias in
>> the aliases file (because the aliases forward to multiple destinations). All
>> works fine except that I can't have a copy go into the users real 
>> mailbox. Here
>> is an example of what I mean:
>>
>> In mailertable:
>>
>> example.net                     mrs_cyrus_mailertable:error:5.1.1:550 User
>> unknown
>>
>> Then lennyl at example.net is added to cyrus, so it is a valid account.
>>
>> In virtusertable:
>>
>> lennyl at example.net               lennyfw
>>
>> In aliases:
>>
>> lennyfw:                        
>> lennyl at domain1.com,lennyl at comain2.com,lennyl at example.net
>>
>> Obviously "example.net" is just for illustration purposes. Now, if I send an
>> email to "lennyl at example.net", it parses virtusertable correct. It parses
>> aliases correctly and sends out to "lennyl at domain1.com" and
>> "lennyl at domain2.com", but errors on copying the message to the local mailbox
>> (errors with "User unknown").
>>
>> So, the question is, how can I copy a message into the users actual 
>> mailbox via
>> the aliases file? Thanks.
>
> As I understand you use http://anfi.homeunix.net/sendmail/rtcyrus2.html
> ------------------------------------------------------------------------
>
> Try the following "first idea I can think about":
>
> virtusertable:
> lennyl at example.net               lennyfw
> lennyl+xxx at example.net           !
>
> alias:
> lennyfw: lennyl at domain1.com,lennyl+xxx at example.net
>
> 1) "!" LHS is an "undocumented virtusertable implementation detail".
> It means "leave as it is, ignore more general virtusertable entries".
>
> 2) Messages will be delivered to INBOX of lennyl at example.net unlesss
> lennyl at example.net has xxx folder and anonymous user can append to the
> folder [you can replace xxx by another string].
>
> ------------------------------------------------------------------------
>
> If ot does not help then answear a few questions:
> Is example.net a local email domain ?
> echo '$=w' | sendmail -bt
> Is example.net a $={Virthost} domain ?
> echo '$={VirtHost}' | sendmail -bt
>
> --
> Andrzej [en:Andrew] Adam Filip anfi at priv.onet.pl anfi at xl.wp.pl
> http://anfi.homeunix.net/ http://slashdot.org/~anfi


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list