macports postfix vs. OSX postfix

Johannes Kastl mail at ojkastl.de
Fri Jan 27 11:40:27 UTC 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 27.01.17 11:33 Johannes Kastl wrote:
>> Then you would need to tell mailx to use the right sendmail, 
>> 'mailx -S sendmail=/opt/local/sbin/sendmail ...' or put it into
>>  ~/.mailrc.
> 
> This is what I used.

I just reinstalled postfix, applied my config, started it via port
load and did some tests.

/opt/local/bin/mailx reads /opt/local/etc/nail.rc (note the 'n')
/opt/local/bin/mailx reads ~/.mailrc (note the 'm' and the dot)

/usr/bin/mailx reads /etc/nail.rc and ~/.mailrc
/usr/bin/mail reads /etc/mail.rc and ~/.mailrc

Now sending stuff with the right postfix works.

>> Other software might still just use the default 
>> /usr/sbin/sendmail, so to handle all mails system-wide all 
>> software supposed to send mails would need to be instructed 
>> accordingly.
> 
> I guess I'll link macports sendmail to /usr/sbin/sendmail to
> avoid that. But how to avoid OSX overwriting that during
> upgrades?

I still don't know how to workaround programs calling
/usr/sbin/sendmail.

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAliLMasACgkQzi3gQ/xETbKACACfTmmV/lBdTyK3rLNkjt7pChPH
vfkAoJUPm3PvunonCRY7gpRjkrcazC4d
=9G2N
-----END PGP SIGNATURE-----



More information about the macports-dev mailing list