Huh, I’m only getting a /opt/local/var/log/postfix/postfix.log generated:
uquevedo@ubence-mini-wired ~ % tree /opt/local/var/log
/opt/local/var/log
└── postfix
└── postfix.log
2 directories, 1 file
With the following contents [which I fixed a few things and restarted the
service]:
uquevedo@ubence-mini-wired ~ % cat /opt/local/var/log/postfix/postfix.log
Dec 28 14:24:27 ubence-mini-wired postfix/postsuper[31269]: warning: bogus file
name: maildrop/.turd_postfix
Dec 28 14:24:27 ubence-mini-wired postfix/postfix-script[31284]: warning: not
owned by _postfix: /opt/local/var/lib/postfix/./.turd_postfix
Dec 28 14:24:27 ubence-mini-wired postfix/postfix-script[31290]: warning: not
owned by _postfix: /opt/local/var/spool/postfix/public/.turd_postfix
Dec 28 14:24:27 ubence-mini-wired postfix/postfix-script[31295]: starting the
Postfix mail system
Dec 28 14:24:27 ubence-mini-wired postfix/master[31297]: daemon started --
version 3.8.3, configuration /opt/local/etc/postfix
Dec 28 14:26:05 ubence-mini-wired postfix/postfix-script[31400]: stopping the
Postfix mail system
Dec 28 14:26:07 ubence-mini-wired postfix/postsuper[31451]: warning: bogus file
name: maildrop/.turd_postfix
Dec 28 14:26:07 ubence-mini-wired postfix/postfix-script[31471]: warning: not
owned by _postfix: /opt/local/var/spool/postfix/public/.turd_postfix
Dec 28 14:26:07 ubence-mini-wired postfix/postfix-script[31476]: starting the
Postfix mail system
Dec 28 14:26:07 ubence-mini-wired postfix/master[31478]: daemon started --
version 3.8.3, configuration /opt/local/etc/postfix
Dec 28 14:27:07 ubence-mini-wired postfix/postfix-script[31549]: stopping the
Postfix mail system
Dec 28 14:27:09 ubence-mini-wired postfix/postsuper[31601]: warning: bogus file
name: maildrop/.turd_postfix
Dec 28 14:27:09 ubence-mini-wired postfix/postfix-script[31625]: starting the
Postfix mail system
Dec 28 14:27:09 ubence-mini-wired postfix/master[31627]: daemon started --
version 3.8.3, configuration /opt/local/etc/postfix
I don’t get anything from running the following command:
echo "Postfix setting test" | mail -s "Hello Postfix" "[email protected]”
Should I be getting the send attempt in the above log file? Or should l be
looking somewhere else?
-Ubence
On Dec 28, 2023, at 3:26 PM, Horst Simon <[email protected]> wrote:
You should with this logging you should get the information in your postfix log
as in mail.log, this is what I get.
Sent from my iPhone
> On 29 Dec 2023, at 09:36, Ubence Quevedo (thatrat) <[email protected]> wrote:
>
> 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 <[email protected]> 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) <[email protected]> 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
>