Re: Change server name in postfix configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



yes it's working. but do it care fully, if you made any mistake you will
find error in maillog.





On Tue, May 13, 2014 at 5:32 AM, David Beveridge <dave@xxxxxxxxxxx> wrote:

> The change host name in /etc/sysconfig/network is really the primary one,
> unless it has been hardcoded into main.cf
> The main.cf entries you should concern yourself with is myhostname
> (defaults to actual hostname if missing) and mydestination which is the
> list of domains you accept mail for.
>
> I'd suggest just adding the new domain to mydestination is likely all you
> need.
> It's also possible that you old.com is setup as a virtual domain, in which
> case you need to add your new.com to that list instead.
>
> The info at http://www.postfix.org/documentation.html is quite good.
> If I were you I'd go through main.cf and look at each parameter in
> http://www.postfix.org/postconf.5.html and see what it does, so you know
> what you are changing.
>
> dave
>
>
> On Tue, May 13, 2014 at 12:11 AM, Leon Fauster
> <leonfauster@xxxxxxxxxxxxxx>wrote:
>
> > Am 12.05.2014 um 14:56 schrieb Laurent CREPET <pebkac@xxxxxxxx>:
> > >
> > > On Mon, May 12, 2014 at 2:12 PM, Joseph Hesse <joehesse@xxxxxxxxx>
> > wrote:
> > >
> > >> A consultant, long gone, set up postfix, dovecot, amavisd and
> > >> squirrelmail for my wife.
> > >> It works fine but my wife wants to change the server name from
> old.com
> > >> to new.com so the name is more appropriate for her business.
> > >> My approach would be to use sed to change all occurences of old.comto
> > >> new.com.
> > >> Specifically, I used grep to identify the following files where I
> should
> > >> make the changes.
> > >>
> > >> /etc/postfix/main.cf
> > >> /etc/dovecot/dovecot.conf
> > >> /etc/squirrelmail/config.php
> > >> /etc/amavisd.conf
> > >> /etc/sysconfig/network (change host name)
> > >> In addition, there would be an MX record for mail.new.com pointing to
> > >> the IP of the server.
> > >>
> > >> My question is, will this work or will I corrupt my email server? If I
> > >> mess it up I can always restore it to the original.
> > >>
> > > - Maybe check /etc/hosts.
> > > - What about the old domain ? You may not be able to receive e-mails
> for
> > > it. You can think about add the new.com in parallel with old.com on
> the
> > > same server.
> >
> >
> > Check also your hosting name (e.g. httpd service).
> >
> > BTW - the MX entry can still have the old name and accepting
> new.com-mails.
> >
> > Furthermore - take care if SSL/TLS is in use. Certificates are connected
> > to domainnames.
> >
> > --
> > LF
> >
> >
> >
> >
> >
> > _______________________________________________
> > CentOS mailing list
> > CentOS@xxxxxxxxxx
> > http://lists.centos.org/mailman/listinfo/centos
> >
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Asif Murad Khan
Cell: +880-1713-114230
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux