[Linux] [Fwd: qmail-postfix]

Nick Seidenman nicks@argate.net
Sun, 16 Jul 2000 19:57:09 -0400 (EDT)


On Sun, 16 Jul 2000 blalock@ieee.org wrote:

> Nick Seidenman wrote:
> > 
> > On Sun, 16 Jul 2000 blalock@ieee.org wrote:
> > 
> > > > Just give a hollar if you get stuck, but it should all be pretty
> > > > straightforward.
> > > >
> > > > nick
> > > Ok, I seem to be stuck. :( I have postfix sending mail, made it that far
> > > with qmail. :) My set up is as follows
> > > domainname - basicq.com, mail.basicq.com pointing at my firewall
> > > address. Firewall box inside address 192.168.x.x, name good.domain
> > >
> > > The postfix server (behind firewall box) I changed the domain to
> > > basicq.com, computer name kerryb, user kerryb with home kerrycb. address
> > > 192.168.x.xx
> > >
> > > section for smaple setup as follows:
> > > <snip>
> > > Running Postfix inside an intranet
> > >
> > > The simplest way to set up Postfix on a host inside a firewalled network
> > > is to send all your mail to an intranet mail gateway, and to
> > > let that mail gateway take care of forwarding.
> > >
> > >       Send mail as user@domain. This is optional but highly recommended
> > > because it allows users to change machines without
> > >       hassle.
> > >
> > >           /etc/postfix/main.cf:
> > >               myorigin = $mydomain
> > > ##Is $my.domain = basicq.com ?
> > 
> > Yes.  But note, that you should have a file in /etc/postfix called
> > postfix.cw (similar to sendmail.cw if you're using sendmail) that lists
> > all the domains for which this MTA will accept mail.  So if your machine's
> > name is kerryb, you should have
> > 
> >         basicq.com
> >         kerryb.basicq.com
> did whereis postfix.cw, and locate postfix.cw, and did not return
> results.

/etc/postfix/postfix.cw 

You need to create this file yourself.   If you only have the one domain,
it's not necessary, but that means your machine always must be identified,
email-wise, as $mydomain, whatever that is.  Better to list all possible
names (host, host.domain, domain ...) in this file.

> At this point, I am just trying to get this machine to recieve and send
> for it only. The other boxes in the network will continue to use
> sendmail to receive from outside mail servers, and send to outside using
> their own mail systems.

Ok, then you shouldn't have much to do in configuring.  It should pretty
much work just by setting mydomain in main.cf and starting it up.

Bear in mind, every time you make a config change you'll need to run

	postfix reload

to get the changes to take effect.  (Small price to pay for having config
files that are actually legible, I'd say.)

----------------------------------------------------------------------
 Nick Seidenman, CISSP           |      "Ugly  programs are like ugly
 Senior Security Consultant      |  suspension bridges:  they're much
 Hyperon, Inc.                   |       more liable to collapse than
 www.hyperon.com                 |       pretty ones."  -Eric Raymond