If you have a mail server at home and your Internet service provider (ISP) has no right PTR record for your assigned IP, you will get trouble the most mail servers will reject you.
Some best examples for mail rejection: gmx.de, mail.ru
This problem can be solved, you can use a relay server, in other words a smarthost.
You need another server with white PTR record, your home server will send everything over the relay server.
This is a example config for home postfix servers:
1 2 3 4 5 6 7 8 9 10 11
myhostname = firewall.zeldor.biz alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = firewall.zeldor.biz, ns.home.redirector.name, localhost.home.redirector.name, localhost relayhost = 192.168.2.254 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 home_mailbox = Maildir/ mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all
To be able to receive e-mails, you should set home_mailbox
After changes in:
Execute the command newaliases in order to rebuild the indexed file after changing the Postfix alias database: