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

Re: where is the FQDN located



Rodney D. Myers wrote:
On Sun, 06 Mar 2005 23:16:12 -0300
Maximiliano Combina <maxicombina@gmail.com> wrote:


On Sun, 2005-03-06 at 13:27 -0800, Rodney D. Myers wrote:

When I installed linux sometime ago, I had a registered domain name.
Now I don't. How do I remove that info completely from my Debian Sarge
system?

Postfix still tries to send email to my old domain, and I want to
eradicate this problem.

Thanks


when i have such problem, i "imagine" that it is configured somewhere
in /etc.

so:
# cd /etc
# grep -r <FQDN> *

that should give you the answer.

maxi


Thanks

I did something similar. I used midnight commander, and looked through
each text/config file, and I don't see it.

I've re-configured postfix (removed & re-installed as well) numerous
times.

Any other ideas as to how/where  might find my former domain name?


]$ grep myhostname /etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
myhostname = yourdomain.com

This defines what domain name postfix uses to send mail. Usually this points to
/etc/mailname. Doesn't matter what the hostname of the box is.

You say Postfix _sends_ mail to your old domain name. Postfix uses the virtual
file to send mail to specific places. This file generates a db file that is,
of course, binary. So removing the actual virtual file would not affect the
actual db file. You'd have to generate a new one. Grep wouldn't pick this up
either since it's binary.

]$ postmap hash:/etc/postfix/virtual

(providing you use hash files) It could be a btree or dbm file but most likely it's a hash.

	-Eric

--
"Education is what remains after one has forgotten everything he learned in school."
	- Albert Einstein

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: