Re: [courier-users] Question about Relaying mail to other hosts
Brought to you by:
mrsam
From: Jonathan P. <jp...@is...> - 2005-06-09 20:16:54
|
Thanks for the info, and thanks to everyone who helped. I ended up creating an alias: rt...@my... -> rt...@rt...gus then edited esmtproutes to send rt.bogus mail to rt.mydomain.com. I had to make a few config changes on the sendmail server involving masquerading, and accepting mail for the rt.bogus domain, but that went quickly. Again, thanks for your help! Jeff Jansen wrote: >Jonathan Pauli wrote: > > >>Hey, you know I think you are exactly right. I looked at the >>localdomains and we have listed .mydomain.com and mydomain.com >>so Im thinking that maybe the .mydomain.com is breaking things. (if you >>know off hand how this behaves please let me know) >> >> > >That's exactly what is happening. Anything listed as a local domain >will have the domain part stripped before courier tries to handle it. >The '.mydomain.com' means that ANYTHING that ends in "mydomain.com" will >have the entire domain removed and only the user name will be looked up. > >So in this case "rt...@my..." and "rt...@rt..." (and in fact >"rt@ANYTHING.mydomain.com") will all result in courier looking for a >local account called "rt" to deliver to. > >So either get rid of the wildcard (.mydomain.com) entry in the locals >file or create a local account on that machine and then either poll it >(as you mentioned) or use a dot-courier file to redirect it to the other >server. You can do something clever like redirecting to >"rt%rt.domain.com@sendmail-server". Then add an entry in esmtproutes to >direct "sendmail-server" to the proper machine. (I don't know if you >can create aliases using that syntax or not - I've never tried. But >that might work as well.) > >HTH > >Jeff Jansen > > >------------------------------------------------------- >This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput >a projector? How fast can you ride your desk chair down the office luge track? >If you want to score the big prize, get to know the little guy. >Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >_______________________________________________ >courier-users mailing list >cou...@li... >Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users > > |