postfix version 2.4.6 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    postfix  most recent diff


      View the most recent changes for the postfix port at: postfix.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for postfix.
      The raw portfile for postfix 2.4.6 is located here:
      http://postfix.darwinports.com/dports/mail/postfix/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/postfix
      Google
      Web Darwinports.com



      # $Id: Portfile 30868 2007-11-09 01:32:52Z markd macports.org $

      PortSystem 1.0

      Name: postfix
      Version: 2.4.6
      Category: mail
      Maintainers: nomaintainer
      Description: Fast and robust mail transfer agent
      Long Description: Postfix attempts to be fast, easy to administer, and secure, while at the same time being sendmail-compatible enough to not upset existing users. It also offers QMQP and VERP support to let Postfix act as delivery daemon for ezmlm-idx.
      Homepage: http://www.postfix.org/
      Platform: darwin
      checksums md5 303327f66c13ff9631734651ee184a88 sha1 226222707fd8d963d3173070cac96370c453ffa7
      master_sites http://www.swissrave.ch/mirror/postfix-source/official/ ftp://ftp.its.cz/MIRRORS/ftp.porcupine.org/mirrors/postfix-release/official/ ftp://ftp.club-internet.fr/pub/mirrors/ftp.porcupine.org/postfix-release/official/

      patchfiles patch-sys_defs.h patch-main.cf patch-mail_params.h patch-postfix-install

      post-patch {
      eval reinplace "s|/etc/|${prefix}/etc/|g" [glob ${worksrcpath}/man/man1/*] [glob ${worksrcpath}/man/man5/*] [glob ${worksrcpath}/man/man8/*]

      reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/util/sys_defs.h
      reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/conf/main.cf
      reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/global/mail_params.h
      }

      set CCARGS -DNO_PCRE
      set AUXLIBS "-L${prefix}/lib -R${prefix}/lib -L${prefix}/lib"

      configure {
      system "make makefiles CCARGS=\"${CCARGS}\" AUXLIBS=\"${AUXLIBS}\""
      }

      build.target

      startupitem.create yes
      startupitem.start "${prefix}/sbin/${name} start"
      startupitem.stop "${prefix}/sbin/${name} stop"

      destroot {
      adduser postfix realname=Postfix\ Server
      addgroup postdrop
      file mkdir ${destroot}${prefix}/etc/postfix
      file mkdir ${destroot}${prefix}/share/postfix
      xinstall -d -o postfix -g postdrop -m 710 ${destroot}${prefix}/var/spool/postfix/public
      xinstall -d -o postfix -g postdrop -m 730 ${destroot}${prefix}/var/spool/postfix/maildrop
      destroot.keepdirs ${destroot}${prefix}/var/spool/postfix/public ${destroot}${prefix}/var/spool/postfix/maildrop
      system "/bin/sh postfix-install -non-interactive install_root=${destroot} config_directory=${prefix}/etc/postfix daemon_directory=${prefix}/libexec/postfix command_directory=${prefix}/sbin manpage_directory=${prefix}/share/man queue_directory=${prefix}/var/spool/postfix sendmail_path=${prefix}/sbin/sendmail newaliases_path=${prefix}/bin/newaliases mailq_path=${prefix}/bin/mailq sample_directory=${prefix}/share/postfix/sample readme_directory=${prefix}/share/postfix/readme"
      }
      # This makes sure we don't overwrite user /etc files. This now breaks postfix
      # "just working" on fresh installs.
      # YOU MUST MOVE THE SAMPLE FILES TO THE CORRECT NAMESPACE.
      # XXX unsure if this stilll an issue 07/07/05 yeled
      post-destroot {
      file rename ${destroot}${prefix}/etc/postfix/main.cf ${destroot}${prefix}/etc/postfix/main.cf.sample
      file rename ${destroot}${prefix}/etc/postfix/master.cf ${destroot}${prefix}/etc/postfix/master.cf.sample
      file rename ${destroot}${prefix}/etc/postfix/aliases ${destroot}${prefix}/etc/postfix/aliases.sample
      }

      post-install {
      # Tell the user about renaming the sample configuration files.
      ui_msg "\n
      To get postfix working, you need to copy the sample configuration
      files and edit them (${prefix}/etc/postfix/*.sample). You may also
      want to turn off Apple's built-in MTA. For example, on 10.4:

      -Delete or rename /System/Library/LaunchDaemons/org.postfix.master.plist
      -Replace the built-in sendmail file with a symlink to MacPorts' own:
      sudo mv /usr/sbin/sendmail /usr/sbin/sendmail.org
      ln -s ${prefix}/sbin/sendmail /usr/sbin/sendmail

      NOTE: Apple OS updates could upgrade the built-in Postfix and overwrite the
      symlink, so the symlink mught have to be recreated.
      \n"
      }

      Variant: pcre {
      set CCARGS [ldelete ${CCARGS} -DNO_PCRE]
      set CCARGS [concat ${CCARGS} -DHAS_PCRE -I${prefix}/include]
      set AUXLIBS [concat ${AUXLIBS} -L${prefix}/lib -lpcre]
      depends_lib-append port:pcre
      }

      Variant: tls {
      depends_lib-append port:openssl
      set CCARGS [concat ${CCARGS} -DUSE_TLS -DHAS_SSL -I${prefix}/include]
      set AUXLIBS [concat ${AUXLIBS} -lssl -lcrypto]
      }

      Variant: sasl {
      depends_lib-append port:cyrus-sasl2
      set CCARGS [concat ${CCARGS} -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I${prefix}/include/sasl]
      set AUXLIBS [concat ${AUXLIBS} -lsasl2]
      }

      Variant: ldap {
      depends_lib-append port:openldap
      set CCARGS [concat ${CCARGS} -DHAS_LDAP]
      set AUXLIBS [concat ${AUXLIBS} -lldap -llber]
      }

      Variant: mysql5 {
      depends_lib-append port:mysql5
      set CCARGS [concat ${CCARGS} -DHAS_MYSQL -I${prefix}/include/mysql5/mysql]
      set AUXLIBS [concat ${AUXLIBS} -L${prefix}/lib/mysql5/mysql -lmysqlclient -lz -lm]
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/postfix
      % sudo port install postfix
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching postfix
      ---> Verifying checksum for postfix
      ---> Extracting postfix
      ---> Configuring postfix
      ---> Building postfix with target all
      ---> Staging postfix into destroot
      ---> Installing postfix
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using postfix with these commands:
      %  man postfix
      % apropos postfix
      % which postfix
      % locate postfix

     Where to find more information:

    Darwin Ports



    image test