[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postfix question



On Monday 28 May 2001 23:20, Sami Haahtinen wrote:
> On Mon, May 28, 2001 at 05:29:36PM +0200, Russell Coker wrote:
> > I have postfix running on an end-node.  I want to send mail from the
> > machine by running "mail user" and have it go to user@domain.com (which
> > is hosted on another machine).  However I want mail directly addressed to
> > user@host.domain.com to be delivered locally.
> >
> > This should be simple but seems very difficult (I've just spent an hour
> > tweaking postfix config options without success).
>
> hmm.. i don't see the problem here...
>
> use:
>
> myhostname = Foo.Bar.com
> myorigin = Bar.com
>
> ofcourse you need to tweak mydestination, not to include $mydomain
> something like this:
>
> mydestination = $myhostname, localhost.$mydomain

Thanks for that.  What I got wrong was to set myorigin to $myhostname not 
$mydomain.  After changing that everything works as desired!

-- 
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page



Reply to: