-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
tarvid wrote on Wed, Mar 12, 2003 at 10:58:00AM -0500 :
>
> /etc/sysconfig/network is missing hostname and domainname. Postfix
> wants those badly.
Postfix wants a properly configured DNS to check it's hostname with and
then falls back to /etc/sysconfig/network. The first response is
usually "well a newbie won't know that." My response to that is "well a
newbie shouldn't be running a public mail server." But I digress.
> If you configure those, /etc does not match the chroot jail and you must put
> them back in sync to get postfix to run. Same goes for DNS - resolv.conf.
Agreed. How about this:
- --- postfix.orig 2003-03-12 10:46:24.000000000 -0800
+++ postfix 2003-03-12 10:50:22.000000000 -0800
@@ -34,9 +34,12 @@
start() {
# Start daemons.
gprintf "Starting postfix: "
- - if [ ! -e /var/spool/postfix/etc/resolv.conf ]; then
- - cp -f /etc/resolv.conf /var/spool/postfix/etc
- - fi
+ for CONFIGFILE in /etc/resolve.conf /etc/hosts /etc/host.conf \
+ /etc/localtime /etc/services; do
+ if [ $CONFIGFILE -nt /var/spool/postfix/$CONFIGFILE ];
then
+ cp -f $CONFIGFILE /var/spool/postfix/$CONFIGFILE
+ fi
+ done
/usr/sbin/postalias /etc/postfix/aliases
for I in access canonical relocated transport virtual; do
if [ -f /etc/postfix/$I ] ; then
> By default, the Mandrake installation listens on localhost. Arguably, that
> prevents a million misconfigured postfix installations live on the Internet.
> It also means postfix won't accept messages.
And if you set it to listen publicly by default, boom, headlines on
Bugtraq. Open by default is bad. It's what we bitch about MS.
> Procmail is added in the Mandrake configuration for local delivery. I am a
> procmail fan but it is unnecessary for a default configuration and
> complicates getting the syystem up and running. It would be better to leave
> that directive commented out.
Interestingly, I just found out that, by default, RH does in fact leave
the procmail line commented out on a 7.3 box. Dunno about current (8.x)
configuration though. I prefer it be left in, but that's just my vote.
FWIW, when I enabled procmail local delivery on said mail server, then
it screwed up my procmail filtering on the box that I popped it to due
to procmail adding a Delivered-To: header.
> I have mixed feelings about DJB but I like Maildir and courier. My preference
> would be to make those the default.
Won't happen. Been hashed and rehashed on this list many many times.
> Latest RAV installs trivially (untar, urpmi rav*).
> Courier ran by default with no configuration.
Both interesting to know. Cool.
> With proper notes and defaults, postfix could be a half hour job instead of a
> day.
It's a two minute job for every instance I've ever set it up on except
for the RH box where it took an additional 20 minutes. I will admit
that I fought spamassassin for a while until I finally gave up on using
the amavisd/spamd daemon approach and settled for just using spamd.
Blue skies... Todd
- --
Never take no as an answer from someone who's not authorized to say yes.
--Ben Reser on Cooker ML
Mandrake Cooker Devel Version, Kernel 2.4.21-0.13mdk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+b4OYlp7v05cW2woRAjd1AJ4387xKk/gbWACckcRkm0TW74GrbQCgpsAR
X5pNPH/QJlOFk5zUBbfIq+s=
=KXOy
-----END PGP SIGNATURE-----