From: "Pierre Ossman" <[EMAIL PROTECTED]> > Ok, I've tried this now and either I'm missing something or the > semantics aren't quite as you explained. > > I'll try to explain my total configuration to give you a better view of > what I'm trying to acheive. > > The machine is called mail.craffe.se. It is a MX for the domain > craffe.se. Sending mail to the domain works fine (it is later forwarded > to an internal server using esmptroutes). It is also a backup MX for the > domain mathias.nu. Being a backup MX I have the machine's name in locals > in order for the backup MX semantics to function properly. Sending mail > to the domain mathias.nu also works perfectly fine. > > Now for the problem. Sending mail to, for example, [EMAIL PROTECTED] > results in the machine trying to deliver the mail to the local user > account 'luser'. I added mail.craffe.se to esmtproutes in an attempt to > redirect the mail, but the locals file seems to have priority. What I'd > like is that mail would have been redirected to [EMAIL PROTECTED] (i.e. to > the domain, not the machine) or have it rejected (with '550 User > unknown' or similar). > From what I can gather the only system that has priority over locals is > the aliases. And I doesn't seem to be a syntax that gives me what I want > (except one aliases for each and every user on the machine). > > So, what are my options? I don't like the current situation where the > local users can receive mail but I can't figure out how to stop it. > > Regards Pierre >
Aha. I think the whole secondary MX thing is a red herring... Do you actually have local accounts which match the email addresses? - 'luser' in your above example. If these are local shell accounts, perhaps you should remove 'authvchkpw' from the authmodulelist in 'authdaemonrc'?!? The fact that the account exists locally might interfere with any attempt to use esmptroutes - but I'm guessing here. I don't have any box configured the way you are describing, so here's my best guess: esmptroutes: craffe.se:internalrelay.craffe.se .craffe.se:internalrelay.craffe.se locals: craffe.se .craffe.se mathias.nu esmtpacceptmailfor: craffe.se .craffe.se mathias.nu That's all I can think of. ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
