# Postfix multiple ips

**URL:** <https://forum.virtualmin.com/t/postfix-multiple-ips/55735>\
**Category:** Virtualmin Hosting Offers\
**Created:** [March 25, 2017, 5:35pm UTC](https://forum.virtualmin.com/t/postfix-multiple-ips/55735 "2017-03-25T17:35:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![klevi\_surf](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/k/9dc877/32.png) [@klevi\_surf](https://forum.virtualmin.com/u/klevi_surf)\
**Post date:** [March 25, 2017, 5:35pm UTC](https://forum.virtualmin.com/t/postfix-multiple-ips/55735/1 "2017-03-25T17:35:32Z")

</div>

Hello  
I have a vps with multiple ips and multiple domains, every domain has a dedicated and unique ip, i assigned via posftix as well this schema, so for [example1.com](http://example1.com) it will be sent email via ip 1.1.1.1 and for [example2.com](http://example2.com) it will sent email via ip 2.2.2.2.  
The only thing that i am stuck is the hostname, in all the domains i see the hostname is from the hostname server, so [n1.example.com](http://n1.example.com).  
My question is how to customize the hostname as well so it will be different for different domains?  
If possible how?

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 6:17am UTC](https://forum.virtualmin.com/t/postfix-multiple-ips/55735/2 "2020-04-30T06:17:09Z")

</div>

Closed on April 30, 2020, 6:17am UTC


