We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Ubuntu Exim4 - Send Mails from same IP website
Ubuntu Exim4 - Send Mails from same IP website
source: https://help.directadmin.com/item.php?id=152If you need to change the IP that is used to send email out of your systme, you can do so by editing your /etc/exim.conf.
Change:
remote_smtp:
driver = smtp
to:
remote_smtp:
driver = smtp
interface = 1.2.3.4
Where 1.2.3.4 is the IP you want exim to use.
Ex.: I host many websites and 5 IPs...
website1.com -> ip: 10.10.10.5
website2.com -> ip: 10.10.10.6
website3.com -> ip: 10.10.10.7
I would like to exim use the same IP that vestacp use to host website, for send mails
Anyone done that?
Re: Ubuntu Exim4 - Send Mails from same IP website
It is possible to do with Exim as you can use expansion variables.
An example (plucked from DirectAdmin - so not Vesta specific):
change SHARED.IP.FROM.SERVER for domains not list in /etc/virtual/interfaces
/etc/virtual/interfaces
Also here is another reference from DA: http://forum.directadmin.com/showthread ... post215584
An example (plucked from DirectAdmin - so not Vesta specific):
Code: Select all
remote_smtp:
driver = smtp
interface = ${lookup{$sender_address_domain}lsearch{/etc/virtual/interfaces} {$value}{SHARED.IP.FROM.SERVER}}
helo_data = "mail.$sender_address_domain"
/etc/virtual/interfaces
Code: Select all
domain1.com: xxx.xxx.xxx.xxx
domain2.com: yyy.yyy.yyy.yyy
Re: Ubuntu Exim4 - Send Mails from same IP website
Thats what i did, and i was coming here to tell and you found same solution!SS88 wrote:It is possible to do with Exim as you can use expansion variables.
An example (plucked from DirectAdmin - so not Vesta specific):
change SHARED.IP.FROM.SERVER for domains not list in /etc/virtual/interfacesCode: Select all
remote_smtp: driver = smtp interface = ${lookup{$sender_address_domain}lsearch{/etc/virtual/interfaces} {$value}{SHARED.IP.FROM.SERVER}} helo_data = "mail.$sender_address_domain"
/etc/virtual/interfaces
Also here is another reference from DA: http://forum.directadmin.com/showthread ... post215584Code: Select all
domain1.com: xxx.xxx.xxx.xxx domain2.com: yyy.yyy.yyy.yyy
thanks anyway
-
- Posts: 2
- Joined: Tue Oct 15, 2019 8:57 pm
- Os: CentOS 6x
- Web: apache + nginx
Re: Ubuntu Exim4 - Send Mails from same IP website
How could you fix the helo message?
Mails drop to spam because of that. helo always sticks with the mail ip address.
Mails drop to spam because of that. helo always sticks with the mail ip address.