PDA

View Full Version : Postfix configuration change


bassplayer
21st April 2008, 05:05
I install ISPconfig succesfully thanks.
my domain example.com
ISPconfig mc mc1.example.com
I use this machine as mail relay server of example.com to mail.example.com
In order to make it works I change manually /etc/postfix/local-host-names
I commented out example.com --> #example.com
it will tell postfix not to check local user when receiving email for this domain and directly relay it. it works find !!!

but this file /etc/postfix/local-host-names is back to original configuration, it happens 3 times already now. It happen again last friday.
On last friday I delete than add one website to ISPconfig, Is it causing the changes?,
During saving the configuration ISPconfig change the whole file or just append the new website.
If it change the whole file, so next time whenever I add/delete websites I need to check this file manually also.

Or is it can be done from inside ISPconfig configuration? thanks

till
21st April 2008, 12:41
Do not change /etc/postfix/local-host-names manually, ISPConfig will overwrite your changes. Instead you will have to set the website and co-domain to external mailserver in ISPConfig.

peacengell
21st April 2008, 13:08
Is there any bash script to use postconf -e please help i'm a newbeeeeeeeeeee
i done one but i can't see the output like what is happening on the screen
so can anyone help me
>>>
thanks you all

falko
21st April 2008, 16:14
Is there any bash script to use postconf -e please help i'm a newbeeeeeeeeeee
i done one but i can't see the output like what is happening on the screen

How do you mean that? :confused:

peacengell
21st April 2008, 20:54
i wanna know how to make a bash script to do all
postconf and get the output when all is done
that is what i mean
if there is any

bassplayer
22nd April 2008, 11:22
hi Till, Thanks for the tips.
this is what I do...
1. create example.com domain
2. update dns example com
mx record -> delete old one
create new point to mail.example.com

It Works! but when I try "host example.com"
it return "example.com has address (my ispconfig server IP)
no mx record.
Please let me know if it is the correct way!
I dont know what co-domain for! and how to set it up.
Regards,

till
22nd April 2008, 11:57
If you want to see the MX record, the command is:

dig MX example.com