Federico Baraldi writes:

I'm quite courious .... so can i have all four descriptions ??

My problem is that for an administrative error i'm not able to renew 
mydomain.net (valid until 30-06-2010) so i registered mydomain.com and i'd like 
that all mailbox
as [email protected] were redirected to [email protected].

That would be something else entirely. "Forward" generally means doing something that involves forwarding the mail to another server, which is not the case here. This is why it's always best to explain exactly what you're trying to accomplish.

My user have been told to switch from mydomain.net to mydomain.com and to 
advise all possible sender .... we have 6 months ti perform the migration !!

I've added mydomain.com to hosteddomains and i've created all 
[email protected] mailboxes .... but i don't know which solution is the 
best .... perhaps both #2 and #3.

You should not have to individually create new mailboxes immediately. The makehosteddomains man page gives you a direct example of what you need to do:

      Each domain can optionally be followed by a single tab character, in
      order to specify an alias for a domain, for example:

          domain.com
          mail.domain.com<TAB>domain.com
          example.com<TAB>domain.com

      First, we list the domain "domain.com" as a hosted domain. Then, we
      also list the domain "mail.domain.com", which is an alias for
      domain.com. The Courier mail server will take any address of the form
      <[email protected]>, rewrite it as <[email protected]>, and
      attempt to deliver the mail to a local mailbox for that name. The third
      entry does the same for "example.com"; mail addressed to
      <[email protected]> is delivered to the local mailbox
      <[email protected]>.

In your case, your hosteddomains file should contain:

mydomain.net
mydomain.com<tab>mydomain.net

No changes to the names of accounts, for now. Now, either [email protected] or [email protected] will end up being delivered to your existing [email protected] mailbox. This only affects actual mail delivery, the headers, if any, in the messages remain unchanged. Mail servers generally do not rewrite mail headers. Mail servers use message envelope sender and recipient addresses, which are separate from the contents of any headers, which, from the mail server's perspective, are for informative purposes only.

At some point, though, you will have to flip this around, create a matching [email protected] account to replace each existing [email protected] address, then switch the domains in the hosteddomains file as well.

Attachment: pgpHXZT9xKuws.pgp
Description: PGP signature

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to