MrHoffman,
Thank you very much for pointing me in the right direction. I added my network to the mynetwork parameter and still got an error on the mail server. This was what I found in the log:
NOQUEUE: reject: RCPT from hpprinter.warmoezier.home[192.168.XX.XX]: 504 5.5.2 <NPIB32ACB>: Helo command rejected: need fully-qualified hostname; from=<XXXXXXXXXX> to=<XXXXXXXXXX> proto=ESMTP helo=<NPIB32ACB>
(I removed my mail addresses from the printout. It seems that the HP printer doesnot provide the fqdn in the HELO command.
Then I replaced:
smtpd_helo_restrictions = reject_non_fqdn_helo_hostname reject_invalid_helo_hostname
with:
smtpd_helo_restrictions = reject_invalid_helo_hostname
This solved my problem.
I gues I have to replace the network with the exact printer address in the mynetworks parameter to be on the safe side concerning openrelays in my private network.
I edited the main.cf directly without using the postconf command or should I have used postconf?
Thanks again for sharing your knowledge.
Peter.
P.s.
btw is the command in your post correct?
postconf -c /Library/Server/Mail/Config/postfix mynetworks -e "mynetworks = 127.0.0.0/8, [::1]/128, 10.20.30.40"
shouldn't it be:
postconf -c /Library/Server/Mail/Config/postfix -e "mynetworks = 127.0.0.0/8, [::1]/128, 10.20.30.40"