In message <47e15980-159e-4f15-8256-c868632b2...@kreme.com>
"@lbutlr" writes:
> 
> I've mostly always compiled postfix myself, but managing postfix and
> the mail server is something I have less and less time for, so I took
> the opportunity of moving to 3.x to switch to using ports in freeBSD
> for postfix.

I've used the port collection version for quite some time.  Very
convenient and works fine.  I'm also using 3.0.3.

> Everything went well, once I removed all the older files from
> /usr/sbin and /usr/libexec since ports uses /usr/local/?
>  
> Are there any other gotchas that I need to look out for? The logs look
> good. I am seeing that there are links in /usr/bin (mailq and
> newaliases) but all the references in main.cf point to
> /usr/local/bin. Should I remove these links? (they link to
> ../../usr/sbin/sendmail)?

Those are the old sendmail programs.  These links all lead to
/usr/sbin/mailwrapper (see man mailwrapper and cat
/etc/mail/mailer.conf ).  Postfix puts a new mailq and newaliases in
/usr/local/bin which link to ../../../usr/local/sbin/sendmail .  You
could remove them but they do no harm.  You should also set
sendmail_procname="/usr/local/sbin/sendmail" in /etc/rc.conf to be
safe and set sendmail*_enable to NO (grep sendmail.\*_enable
/etc/defaults/rc.conf to see what to turn off).

> And one last thing, the new sendmail is *much* smaller than the one
> from 2.11:
>  
>  48 -rwxr-xr-x  1 root  wheel   23368 Jan 23 07:45 /usr/local/sbin/sendmail
> 376 -rwxr-xr-x  1 root  wheel  192456 Jul 20  2015 /usr/sbin/sendmail
>  
>  
> #  ldd /usr/local/sbin/postfix 
> /usr/local/sbin/postfix:
>         libpostfix-global.so => /usr/local/lib/postfix/libpostfix-global.so 
> (0x281ba000)
>         libpostfix-util.so => /usr/local/lib/postfix/libpostfix-util.so 
> (0x281f3000)
>         libsasl2.so.3 => /usr/local/lib/libsasl2.so.3 (0x28228000)
>         libpam.so.5 => /usr/lib/libpam.so.5 (0x28241000)
>         libcrypt.so.5 => /lib/libcrypt.so.5 (0x2824c000)
>         libssl.so.8 => /usr/local/lib/libssl.so.8 (0x28271000)
>         libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x28800000)
>         libdb-5.3.so.0 => /usr/local/lib/libdb-5.3.so.0 (0x2899c000)
>         libc.so.7 => /lib/libc.so.7 (0x28077000)
>         libthr.so.3 => /lib/libthr.so.3 (0x282d5000)
>  
> I notice that from the list of modules in 2.11 pcre and libz,
> libmysqlclient, and libcdb are all missing from the newer
> compile. However, sql lookups are working and there are no pcre lookup
> errors in the logs. Should I be concerned?

Go back to /usr/ports/mail/postfix-current and type "make config" (or
cat /var/db/ports/mail_postfix-current/options) and see if you
included PCRE.  PCRE and TLS are on by default (see the makefile).
MySQL, Postgress, and SQLite are off by default so you must have
enabled one of them to have SQL working.  [note: this is all freebsd
ports specific].

Mine has PCRE enabled but ldd also doesn't find anything with pcre in
the name.

# pkg info -a | grep postfix
postfix-current-3.0.20151003,4 Secure alternative to widely-used Sendmail

# pkg info -d postfix-current-3.0.20151003,4
postfix-current-3.0.20151003,4:
        openssl-1.0.2_5
        cyrus-sasl-2.1.26_12
        pcre-8.37_4
        sqlite3-3.9.2

I don't know why ldd doesn't find the anything with pcre in the name.

Curtis

Reply via email to