So mysteriously my previously-working MailHog stopped working this morning on my Mac Mojave.
I have followed the steps in this post to get MailHog running: https://www.joshstauffer.com/send-test-emails-on-a-mac-with-mailhog/
Postfix log file output:
(log stream --predicate '(process == "smtpd") || (process == "smtp")' --info)
My /etc/hosts file contains an entry for:
127.0.0.1 localhost
Also when I do the following I get (not sure if it's related):
[12:26:22][~]#nslookup localhost
Server: 192.168.0.1
Address: 192.168.0.1#53
** server can't find localhost: NXDOMAIN
My last section (previous all unchanged) of etc/postfix/main.cf config file:
#inet_protocols = all
inet_protocols = ipv4
message_size_limit = 10485760
mailbox_size_limit = 0
biff = no
mynetworks = 127.0.0.0/8, [::1]/128
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
recipient_delimiter = +
tls_random_source = dev:/dev/urandom
smtpd_tls_ciphers = medium
inet_interfaces = loopback-only
# Adding this doesnt work:
#mydestination = localhost
# For MailHog
myhostname = localhost
relayhost = [localhost]:1025
compatibility_level = 2
Tried adding inet_protocols = ipv4 according to this post.
Any help much appreciated!