Questions on postfix

Ubence Quevedo (thatrat) thatrat at gmail.com
Thu Dec 28 22:35:36 UTC 2023


Thanks for pointing that out.  I added that and tweaked the permissions, and I’m getting some logging about the service starting/stopping, but I’m not getting the same type of logging I’m expecting from my Linux systems.

I can usually look in /var/log/mail.log on my Ubuntu server to see the status of the outgoing mail.

Looking further, it looks like it’s related to syslog on that system, which isn’t quite the same functionality that macOS has.

Any suggestions on how to be able to log the output of mail commands to postfix similar to how it is done in Linux?

-Ubence

On Dec 28, 2023, at 1:51 PM, Horst Simon <horst.simon2 at icloud.com> wrote:

I have postfix login to a file enabled as follow:
in the main.cf I added:

maillog_file = /opt/local/var/log/postfix/postfix.log

and in the master.cf:

postlog   unix-dgram n  -       n       -       1       postlogd

Make sure the directory /opt/local/var/log/postfix exists and is writeable vy postfix.

Horst Simon

> On 29 Dec 2023, at 02:54, Ubence Quevedo (thatrat) <thatrat at gmail.com> wrote:
> 
> Hi,
> 
> I’ve installed postfix and have configured it similarly to how I have it configured on some Linux systems using this tutorial [https://www.tutorialspoint.com/configure-postfix-with-gmail-on-ubuntu], and when I install and configure postfix in macOS [and make some slight changes because everything is in /opt/local/etc/postfix], mail is not sent.
> 
> What bothers me most is that I can’t find the log files for the macports version of postfix.
> 
> Can someone point me in the right direction to where I can find them to see why my sending mail isn’t working?
> 
> I’m sure I’ll have more questions later, but without the logs, I really am only guessing as to why this might not be working.
> 
> -Ubence

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20231228/23776b15/attachment.htm>


More information about the macports-users mailing list