[courier-users] Re: Forwarding all emails from one domain to another
Brought to you by:
mrsam
|
From: Ryan M. <ry...@hu...> - 2003-07-29 17:47:29
|
Double checked again and still no luck. Here is the log: TEST TO FORWARDING DOMAIN: Jul 29 08:12:17 dsm1 courieresmtpd: error,relay=::ffff:MYIP,ident=postfix,from=<rma...@hu...>,to=<te...@ry...>: 550 User unknown. TEST TO ACTUAL MAILBOX: Jul 29 08:12:38 dsm1 courierd: started,id=008C4163.3F2680D6.00001054,from=<rma...@hu...>,module=local,hos...@33...!!519!520!/home/localadm/popaccts/3305local.org/test1!!,addr=<te...@33...> Jul 29 08:12:38 dsm1 courierlocal: id=008C4163.3F2680D6.00001054,from=<rma...@hu...>,addr=<te...@33...>,size=1436,success: Message delivered. ryanstest22.com is an obviously fake domain, but internally it routes mail just fine. As you can see the user "test1" in the 3305local.org domain collects without problem. However sending to the test1 account on my test domain doesn't reroute as I would expect. Files are listed as you suggested below. Is there possibly a setting in courier's smtp itself that allows for this? Thanks again, Ryan Jeff Jansen wrote: >On Tuesday 29 July 2003 02:02, Ryan MacDonald wrote: > > >>>>I've tried adding the following to /etc/courier/hosteddomains: >>>> >>>>domain1.com >>>>domain1.org <TAB> domain1.com >>>>domain1.net <TAB> domain1.com >>>> >>>>But it does not seem to be rewriting as the man page suggets. >>>> >>>> > >Hmmm, I've got exactly that same setup and it works perfectly. All mail to >domain1.net and domain1.org is delivered to the same username at domain1.com. > >So your hosteddomains file has those three lines listed above (domain1.com >listed first and then the aliases below it - nothing but a TAB between the >alias and the domain) and then you ran "makehosteddomains". And your >esmtpacceptmailfor file has the three domains listed in it (one per line) and >you ran "makeacceptmailfor"? > >Then mail to "us...@do..." is delivered correctly but mail to >"us...@do..." gets a "user unknown" error? > >Jeff Jansen > > > > |