I have three raspberry Pi machines running on my network :
On each machine, /etc/mailname = /etc/hostname = raspberrypi2/3/4
raspberrypi4 runs my postfix/dovecot mail server, and I have a static IP from my ISP with correctly established A/MX/TXT records etc. pointing to MYDOMAIN.ORG. All of the required ports on my router are correctly forwarded to raspberrypi4. This all works fine with no issues whatsoever.
The relevant section of raspberrypi4's main.cf is as follows:
raspberrypi3 and raspberrypi2 both need to be able to send me emails, e.g. from running their cron jobs. I have installed postfix on both machines, but I cannot for the life of me correctly configure their main.cf files so that raspberrypi4 accepts their emails.
Code: Select all
. . . myhostname = MYDOMAIN.ORG alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = raspberrypi4 mydestination = $myhostname, MAIL.MYDOMAIN.ORG, raspberrypi4, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 message_size_limit = 0 virtual_mailbox_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all . . .
Please could someone give me some pointers on what their main.cf files should look like?
Thanks very much