Pascal Véron writes:

Hello,

Is there a way to tell to a server to use MX record (or instructions in file esmtproutes) for send message for domain present in hosteddomain ?

Goal is to have a external server in front. This external server accept email for [email protected] but not [email protected]. For all unknown mailboxes (ex [email protected]), this other server send to our Courier server.

All works well, except for message sended by [email protected] (which use Courier server as SMTP) to [email protected] as the server considere [email protected] like local address.

That's because domain.com is local. A domain is either local, or it's not local. There is no hybrid combination of the two.

The only possible way to make this work somehow is to not configure domain.com as a local or hosted domain, instead use some other domain for mailboxes and define an alias for [email protected], something like:

[email protected]: a-local

And 'a-local' is some local mailbox. The alias will end up accepting and delivering mail addressed to "[email protected]" to the a-local mailbox, and all other addresses and domain.com will not be recognized as local, and delivered to the domain's MX.

You can still define a mailbox called "[email protected]", for the purposes of logging into it, via imap, pop3, or webmail; that's set up with the same home directory, userid and groupid, as a-local.


Attachment: pgpFDMYWoXdAy.pgp
Description: PGP signature

_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to