zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Postfix home server

June 16, 2011 by Igor Drobot 1 Comment

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

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:

1
/etc/aliases

/etc/aliases

Execute the command newaliases in order to rebuild the indexed file after changing the Postfix alias database:

1
newaliases

newaliases

Filed Under: Debian, Linux, Mailing, Networking Tagged With: Debian, DNS, Mail Server, Postfix, PTR

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Comments

  1. Chris says

    June 18, 2011 at 22:34

    That works fine with sendmail!

    Regards

Leave a Reply

Your email address will not be published. Required fields are marked *