<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">That’s just it, I am using mail from /opt/local/bin/:<div><div>uquevedo@ubence-mini-wired ~ % which mail</div><div>/opt/local/bin/mail</div><div><br></div><div>I shouldn’t have to use a specific executable if it’s attaching to a standard port for a running service…?</div><div><br></div><div>Unless there’s something configuration wise that I’m not seeing about what port the postfix from MacPorts is doing…?</div><div><br></div><div>-Ubence</div><div><br><div>On Dec 28, 2023, at 7:12 PM, Horst Simon <horst.simon2@icloud.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>You should have only the postfix.log file and don’t worry about the warning not owned by postfix on the .turd_postfix file.</div><div><br></div><div>I think you use the macOS mail command which will not use macports postfix. Check the /opt/local/bin directory for the mail or mailx command, which you should use.</div><div><br></div><div>instead of just using mail,  use the full path /opt/local/bin/mail or /opt/local/bin/mailx.</div><div><br></div><div>Horst</div><br id="lineBreakAtBeginningOfSignature"><div dir="ltr"><blockquote type="cite">On 29 Dec 2023, at 10:50, Ubence Quevedo (thatrat) <thatrat@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span style="caret-color: rgb(0, 0, 0);">Huh, I’m only getting a /opt/local/var/log/postfix/postfix.log generated:</span><div style="caret-color: rgb(0, 0, 0);"><div>uquevedo@ubence-mini-wired ~ % tree /opt/local/var/log</div><div>/opt/local/var/log</div><div>└── postfix</div><div>    └── postfix.log</div><div><br></div><div>2 directories, 1 file</div><div><br></div><div>With the following contents [which I fixed a few things and restarted the service]:</div><div>uquevedo@ubence-mini-wired ~ % cat /opt/local/var/log/postfix/postfix.log</div><div>Dec 28 14:24:27 ubence-mini-wired postfix/postsuper[31269]: warning: bogus file name: maildrop/.turd_postfix</div><div>Dec 28 14:24:27 ubence-mini-wired postfix/postfix-script[31284]: warning: not owned by _postfix: /opt/local/var/lib/postfix/./.turd_postfix</div><div>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</div><div>Dec 28 14:24:27 ubence-mini-wired postfix/postfix-script[31295]: starting the Postfix mail system</div><div>Dec 28 14:24:27 ubence-mini-wired postfix/master[31297]: daemon started -- version 3.8.3, configuration /opt/local/etc/postfix</div><div>Dec 28 14:26:05 ubence-mini-wired postfix/postfix-script[31400]: stopping the Postfix mail system</div><div>Dec 28 14:26:07 ubence-mini-wired postfix/postsuper[31451]: warning: bogus file name: maildrop/.turd_postfix</div><div>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</div><div>Dec 28 14:26:07 ubence-mini-wired postfix/postfix-script[31476]: starting the Postfix mail system</div><div>Dec 28 14:26:07 ubence-mini-wired postfix/master[31478]: daemon started -- version 3.8.3, configuration /opt/local/etc/postfix</div><div>Dec 28 14:27:07 ubence-mini-wired postfix/postfix-script[31549]: stopping the Postfix mail system</div><div>Dec 28 14:27:09 ubence-mini-wired postfix/postsuper[31601]: warning: bogus file name: maildrop/.turd_postfix</div><div>Dec 28 14:27:09 ubence-mini-wired postfix/postfix-script[31625]: starting the Postfix mail system</div><div>Dec 28 14:27:09 ubence-mini-wired postfix/master[31627]: daemon started -- version 3.8.3, configuration /opt/local/etc/postfix</div><div><br></div><div>I don’t get anything from running the following command:</div><div>echo "Postfix setting test" | mail -s "Hello Postfix" "thatrat@gmail.com”</div><div><br></div><div>Should I be getting the send attempt in the above log file?  Or should l be looking somewhere else?</div><div><br></div><div>-Ubence</div></div><div><br><div>On Dec 28, 2023, at 3:26 PM, Horst Simon <horst.simon2@icloud.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto">You should with this logging you should get the information in your postfix log as in mail.log, this is what I get.<div><br id="lineBreakAtBeginningOfSignature"><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On 29 Dec 2023, at 09:36, Ubence Quevedo (thatrat) <thatrat@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8">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.<div><br></div><div>I can usually look in /var/log/mail.log on my Ubuntu server to see the status of the outgoing mail.</div><div><br></div><div>Looking further, it looks like it’s related to syslog on that system, which isn’t quite the same functionality that macOS has.</div><div><br></div><div>Any suggestions on how to be able to log the output of mail commands to postfix similar to how it is done in Linux?</div><div><br></div><div>-Ubence<br id="lineBreakAtBeginningOfMessage"><div><br><div>On Dec 28, 2023, at 1:51 PM, Horst Simon <horst.simon2@icloud.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div dir="ltr">I have postfix login to a file enabled as follow:</div><div dir="ltr">in the main.cf I added:</div><div dir="ltr"><br></div><div dir="ltr"><div style="margin: 0px; font-stretch: normal; font-size: 21.3px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span class="s1" style="font-family: UICTFontTextStyleBody; font-size: 21.33px;">maillog_file = /opt/local/var/log/postfix/postfix.log</span></div></div><div dir="ltr"><br></div><div dir="ltr">and in the master.cf:</div><div dir="ltr"><br></div><div dir="ltr"><div style="margin: 0px; font-stretch: normal; font-size: 21.3px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;"><span class="s1" style="font-family: UICTFontTextStyleBody; font-size: 21.33px;">postlog  <span class="Apple-converted-space"> </span>unix-dgram n <span class="Apple-converted-space"> </span>-      <span class="Apple-converted-space"> </span>n      <span class="Apple-converted-space"> </span>-      <span class="Apple-converted-space"> </span>1      <span class="Apple-converted-space"> </span>postlogd</span></div></div><div dir="ltr"><br></div><div dir="ltr">Make sure the directory /opt/local/var/log/postfix exists and is writeable vy postfix.</div><div dir="ltr"><br></div><div dir="ltr">Horst Simon</div><div dir="ltr"><br><blockquote type="cite">On 29 Dec 2023, at 02:54, Ubence Quevedo (thatrat) <thatrat@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8">Hi,<div><br></div><div>I’ve installed postfix and have configured it similarly to how I have it configured on some Linux systems using this tutorial [<a href="https://www.tutorialspoint.com/configure-postfix-with-gmail-on-ubuntu">https://www.tutorialspoint.com/configure-postfix-with-gmail-on-ubuntu</a>], 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.</div><div><br></div><div>What bothers me most is that I can’t find the log files for the macports version of postfix.</div><div><br></div><div>Can someone point me in the right direction to where I can find them to see why my sending mail isn’t working?</div><div><br></div><div>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.</div><div><br></div><div>-Ubence</div></div></blockquote></div></div></div><br></div></div></blockquote></div></div></div></div><br></div></blockquote></div></div></div><br></div></body></html>