Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2008 00:07:51 +1000 (EST)
From:      "Tim Clewlow" <tim@clewlow.org>
To:        fluxboxtremist@gmail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Postfix problem.
Message-ID:  <62827.192.168.1.10.1216044471.squirrel@192.168.1.100>
In-Reply-To: <20080714134021.GD60130@nexus.in-nomine.org>
References:  <2de331130807140558q15fba58et52c04cbed592b6d4@mail.gmail.com> <20080714130145.GC60130@nexus.in-nomine.org> <2de331130807140614g2992f452rd487f2af2c6799ce@mail.gmail.com> <2de331130807140635y78df4e89o34d245a43802de72@mail.gmail.com> <20080714134021.GD60130@nexus.in-nomine.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

> Can you please cc: the mailinglist? Thanks.
>
> -On [20080714 15:36], Andres Chavez (fluxboxtremist@gmail.com)
> wrote:
>>postfix/postfix-script: warning: not owned by group maildrop:
>> /usr/sbin/
>>postdrop
>>
>>postfix/postfix-script: warning: not set-gid or not
>> owner+group+world
>>executable: /usr/sbin/postdrop
>>
>>postfix/postfix-script: starting the Postfix mail system.
>
> I would suggest:
>
> 0) clean your system from your botched attempt at installing postfix
> by
>    yourself
> 1) read
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
> 2) install postfix from ports/mail/postfix
>
> And take it from there?
>

Hi there,

I have attached the notes I gathered while making the postfix server
that is sending you this mail. In particular, pay attention to the
bit that says:

As part of the installation the port asks if it could add user
"postfix" to group "mail", I advise answering yes. It also offers to
activate postfix in /etc/mail/mailer.conf, again answer yes.

Regards, Tim.

We are BSD ... resistance is futile.
http://www.freebsd.org/ - http://www.openbsd.org/ -
http://www.netbsd.org/
[-- Attachment #2 --]

This document details how to install postfix (and disable sendmail). Note this
was done on FreeBSD 6.2 with Postfix 2.5


PRE INSTALLATION

Start by stopping sendmail with:

    ./etc/rc.d/sendmail stop

In /etc/rc.conf add or change the sendmail lines to become:

    sendmail_enable="NO"
    sendmail_submit_enable="NO"
    sendmail_outbound_enable="NO"
    sendmail_msp_queue_enable="NO"


INSTALLATION

Install mail/postfix

As part of the installation the port asks if it could add user "postfix" to
group "mail", I advise answering yes. It also offers to activate postfix in
/etc/mail/mailer.conf, again answer yes. The file /etc/mail/mailer.conf will
look something like:

    sendmail        /usr/local/sbin/sendmail
    send-mail       /usr/local/sbin/sendmail
    mailq           /usr/local/sbin/sendmail
    newaliases      /usr/local/sbin/sendmail

Now enable postfix in /etc/rc.conf with:

    postfix_enable="YES"

And disable sendmail specific daily routines in /etc/periodic.conf:

    daily_clean_hoststat_enable="NO"
    daily_status_mail_rejects_enable="NO"
    daily_status_include_submit_mailq="NO"
    daily_submit_queuerun="NO"


CONFIGURATION

Can probably work out most of the settings in /usr/local/etc/postfix/main.cf
just by reading the comments also in that file, or can read:

    man 5 postconf

Much good stuff can also be found at http://www.postfix.org/documentation.html
Config settings are in file /usr/local/etc/postfix/main.cf unless otherwise
specified.

You must run the following command at least once before starting postfix, and
you must also run it (and restart postfix) after making any changes to
/etc/aliases

    newaliases

The above command will create the file /etc/aliases.db - if you do not have
this file then postfix will abort during startup, ie it wont work.


STARTING POSTIFX

You can either reboot and make sure everything starts at boot as expected, or
just do:

    postfix start

---

EXAMPLE

In the setup I have at home (clewlow.org) I changed/uncommented the following
lines in /usr/local/etc/postfix/main.cf

    myhostname = clewlow.org
    mydomain = clewlow.org
    myorigin = $myhostname
    mynetworks = 192.168.1.0/24, 127.0.0.0/8
    home_mailbox = Maildir/


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?62827.192.168.1.10.1216044471.squirrel>