DevHeads.net

Postings by Robert Chalmers

A little help needed checking my postconf - n please.

Well, I’ve been on this for days, sometimes I get it right, sometimes not.

I have an OSX server running Postfix+Dovecot+SSL+MySql (LetsEncrypt) based on two Virtual Websites under Apache.
robert-chalmers.uk
quantum-radio.net
I have it set to prefer ipv6, and fall back to ipv4 if not available.

I upgraded my Postfix to 3.4. It seems to be working ok, but I’m deeply suspicious that it’s not working properly.

It now seems that it’s mostly right.

How can I test my mail server without having remote access

I don’t have the luxury of having access to a useable computer from a site remote to my server, but I still need to test my email server, the TLS/SSL setup, smtp and smtpd.
There are some remote test sites that also want a valid email and password! But I’m a bit reluctant obviously.
I suspect my site is not quite right, but can’t find a way to test it, and to explain results of tests. Especially the TLS/SSL ones.
Does anyone know of any reliable testing options?

Robert

FYI: Logging mail on Postfix 3.4 and Mojave (OSX 10.11)

This streams in real time, and works ok:
log stream --predicate '(process == "smtpd") || (process == "smtp")' --info

gratefully accepted from the Apple user community.

Since 3.4 upgrade, no incoming mail to server is allowed in?

Well, I can't see what's happening here. 3.4 isn't presenting me with
mail.logs on the Mac. Mojave.
Internally, I can send mail to myself, but I now no longer get mail from
outside?

Sending to myself
/usr/sbin/sendmail -bv <my address> works.

3.4 postmap throwing Segmentation:11

I’ve just installed 3.4 and postmap connected to MySQL is throwing a
Segmentation Fault:11 on completion of a query. The query appears successful
but the error aborts it I think.

Upgraded to 3.4 today. All logging has Stopped?

I upgraded to and installed 3.4 today. It appears to be running, but all logging has stopped. The last entry in the log file was at the exact time I started the new version.

I’m also having trouble with the Mail program but that’s another story. Which is why I’m trying contact via my iPad.

Local mail, via sendmail seems to be working as does mail going off site again via sendmail. But no logging.
I haven’t changed my main.cf nor the master.cf in ages now, so what’s changed I wonder.
Thanks
Robert

Before I actually type 'make upgrade"....

I have a clean compile of 3.4, and have various directories set, based on /usr/local generally.

These are the same as the existing installation that is running fine.

A bit stuck compiling Postfix on Mac Mojave.

This is my make script.

make -f Makefile.init dynamicmaps=yes CCARGS='-DHAS_MYSQL -I/usr/local/include/mysql -I/usr/local/include -I/usr/local/include/openssl -I/usr/local/include/gnutls -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/usr/local/include -DEF_COMMAND_DIR=\"/usr/local/sbin\" -DEF_CONGIG_DIR=\"/usr/local/etc/postfix\" -DEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DEF_DATA_DIR=\"/var/lib/postfix\" -DEF_MAILQ_PATH=\"/usr/loc

Compiler error on 3.3.1. Mac Mojave

It’s almost through the build but failing on this.

Undefined symbols for architecture x86_64:
"_db_create", referenced from:
import-atom in libpostfix-util.dylib
"_db_env_create", referenced from:
import-atom in libpostfix-util.dylib
"_db_version", referenced from:
import-atom in libpostfix-util.dylib
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [master] Error 1
make: *** [update] Error 1
make: *** [update] Error 2

My Make script is this:

make -f Makefile.init dynamicmaps=ye

Error on make of the latest 3.3.1 source at dict_db.c

Hi, I can see what the error message says . But I confess at this moment, I’m at a loss as to how to fix it?
Where is it looking for this db?

-DMACOSX -c dict_db.c
dict_db.c:758:2: error: "Unsupported Berkeley DB version"
#error "Unsupported Berkeley DB version"
^
1 error generated.
make: *** [dict_db.o] Error 1
make: *** [update] Error 1
make: *** [update] Error 2

How do I turn on logging for postfix on mac

I have been asked how I turn on /var/log/mail.log for postfix on a Mac running Mohave.

I have it running on mine, but it always has - but I can’t remember if I had to do anything special to turn it on.
The person asking has no /var/log/mail.log at all and now I’m curious.

thanks
robert