I have a little problem with SPF and multiple IPs on my Server.
First my Config.
- Debian Etch installed with the perfect Setup.
- FQDN of Server: host1.mydomain.tld, IP: 192.168.1.1
- Some more domains on the Server
- more IPs: 192.168.1.10 - 19
As long as I only used one IP (192.168.1.1) there were no problems sending mails to hosts checking SPF (For example gmx.de).
After I added more IPs (10-19). All mails send were marked as spam. Looking into the Header I found that postfix started using the highest IP available on the server. When SPF is checked the receiving server sees the wrong IP.
Does anybody know how to create an SPF working with this. I think it is not a good choice adding the highest IP to the record as there might come more IPs in the future. So all SPFs on the server needed to be changed anytime a new IP is added.
At the Moment i just added a line
smtp_bind_address = <main IP>
This seems to work for now. I hope that no other problems will arise from this.
Does anybody know a better way?