Editing main.cf (myhostname-mydomain changes)
Hi, I am just trying to change myhostname and mydomain parameters at main.cf. My main.cf current configuration as follows (only myhostname and mydomain parameters shown for practical reasons): # pico /etc/postfix/main.cf #INTERNET HOST AND DOMAIN NAMES #myhostname = host.domain.tld #myhostname = virtual.domain.tld #mydomain = domain.tld However when i type postconf and postconf d I do get the following: .. #postconf mydomain = linux.site myhostname = linux.site . #postconf d mydomain = linux myhostname = linux . so actually I can send e-mails locally with the PHP command mail() locally at @linux.site addresses, however I would like to change the domain to @telesoft.com what changes do I have to execute??? I was wondering whether editing main.cf (pico command),and substituting domain.tld for telesoft.com would be enough: # pico /etc/postfix/main.cf #INTERNET HOST AND DOMAIN NAMES #myhostname = host.telesoft.com #myhostname = virtual.telesoft.com #mydomain = telesoft.com .. then, #/etc/init.d/postfix reload to load the changes to the server are these the all the necessary changes I should perform to move into a new domain name?? From @linux.site to @telesoft.com??..what else do i still have to take under consideration?? thanks for your answers in advance Regards.- PS: both postfix and php are running and sending/receiving e-mails locally on my laptop...
JUAN ERNESTO FLORES BELTRAN schreef:
Hi,
I am just trying to change myhostname and mydomain parameters at main.cf. My main.cf current configuration as follows (only myhostname and mydomain parameters shown for practical reasons): ... #INTERNET HOST AND DOMAIN NAMES
#myhostname = host.telesoft.com #myhostname = virtual.telesoft.com #mydomain = telesoft.com …………………………………………………………………………………………..
then,
#/etc/init.d/postfix reload
to load the changes to the server…
That should to the trick, but remember in many configuration files # is an indicator for a comment, so remove them for those lines. And I don't think specifying two times myhostname will give you two hostnames, but I may be wrong here. -- Met vriendelijke groeten, Koenraad Lelong R&D Manager ACE electronics n.v.
participants (2)
-
JUAN ERNESTO FLORES BELTRAN
-
Koenraad Lelong