On Fri, Dec 14, 2001 at 05:32:13PM +0100, GOMBAS Gabor wrote:
> On Fri, Dec 14, 2001 at 09:51:59AM -0600, Gary Mills wrote:
> 
> > I posted a patch recently that re-qualifies the envelope recipient
> > with the same domain as used by the MTA.
> 
> Not true, your patch does not have any clue about the domain used by
> the MTA. What it does might be good for the most simple setups but
> it's not general enough.

True if you set `servername' equal to the MTA's masquerade name
in /etc/imapd.conf.

> > The domain used to qualify the envelope recipient is taken from the
> > `servername' configuration parameter, which defaults to the hostname
> > of the server.
> 
> You should at least create a new configuration parameter. In my case,
> the name of the MTA is 'mail.inf.elte.hu', the name of the IMAP server
> (and the value of the 'servername' configuration parameter) is
> 'mailbox.inf.elte.hu', but both [EMAIL PROTECTED] and
> [EMAIL PROTECTED] addresses are invalid.

Yes, I agree that a new configuration parameter would be better.
I'd prefer to leave the name up to the developers, though.

In my case, it serves the purpose.  Sendmail masquerades
`mail.cc.umanitoba.ca' and `smtp.cc.umanitoba.ca' to `cc.umanitoba.ca'.
Cyrus sieve qualifies envelope recipients with `cc.umanitoba.ca',
and sieve scripts work as documented.  Users do _not_ need to specify
their own address as an additonal address because sieve already
knows it.

> Also note that addresses of more than one virtual domains may map to the
> same IMAP mailbox, so the parameter must be multi-valued.

This is a more complicated case.  Would multiple configuration files
solve it?

P.S. I've modified the `easysieve' web front-end so that it detects
when the user redirects to his own address, and converts it to a
`keep'.  Source is at http://mail.cc.umanitoba.ca/source/ .

-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-

Reply via email to