Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

ajenti-v-mail: allowed to listen more ports #150

Closed f3l1x closed 7 years ago

f3l1x commented 9 years ago

I really appreciate to edit ports on SMTP. I installed ajent-v-mail with exim4. Port 25 is hardcoded into a template.

SMTP_PORT = 25
LOCAL_INTERFACES = <; 0.0.0.0.25 ; 0.0.0.0.465 ; [::0]:25 ; [::0]:465

I need to override it to:

SMTP_PORT = 25:587
LOCAL_INTERFACES = <; 0.0.0.0.25 ; 0.0.0.0.587 ; 0.0.0.0.465 ; [::0]:25 ; [::0]:587 ; [::0]:465

Is there any other way?

seanmcn commented 9 years ago

Haven't tried myself, but you should be able to just add those two lines into "Mail -> Advanced -> Custom configuration"

mystica555 commented 9 years ago

What Seanmcn said; add it in the custom config. However: You need to add it there, but, -redefine- the macro with == and not simply = or exim will yell at you.

Custom Config

SMTP_PORT == 25:587 LOCAL_INTERFACES == <; 0.0.0.0.25 ; 0.0.0.0.587 ; 0.0.0.0.465 ; [::0]:25 ; [::0]:587 ; [::0]:465

f3l1x commented 7 years ago

Thank you.