FQDN Misery Re: To: Postfix, Mutt And No Root Mail? & amavisd-new Install
David Koski
david at kosmosisland.com
Thu Nov 8 03:11:39 UTC 2007
For an FQDN, find your hostname:
# hostname
myhost
Add this to your /etc/hosts
11.22.33.44 myhost.example.com myhost
Now show FQDN:
# hostname -f
myhost.example.com
Of course 11.22.33.44 is your IP address.
You may need to add an alias for root in /etc/aliases (or /etc/postfix/aliases
or wherever your file is) and run newaliases. For example, add:
root: myname at localhost
or
root: myname
or
root: myname at example.com
or whatever.
David
On Wednesday 07 November 2007 10:43, Leonard Chatagnier wrote:
> Still no root mail in mutt. Seems related to not
> having a FQDN. Couldn't fully install amavisd-new due
> to having no FQDN. Googling did't help. Can't figure
> out how to establish a FQDN as you will see from the
> following:
>
>
> lchata at ubuntu:/usr/share/doc/mutt/examples$ hostname
> ubuntu
> lchata at ubuntu:/usr/share/doc/mutt/examples$ domainname
> gateway.2wire.net
> lchata at ubuntu:/usr/share/doc/mutt/examples$ nslookup
> ubuntu
> Server: 192.168.1.254
> Address: 192.168.1.254#53
>
> Name: ubuntu.gateway.2wire.net
> Address: 192.168.1.64
>
> lchata at ubuntu:/usr/share/doc/mutt/examples$ nslookup
> pavilion8370
> Server: 192.168.1.254
> Address: 192.168.1.254#53
>
> Name: pavilion8370.gateway.2wire.net
> Address: 192.168.1.65
>
> lchata at ubuntu:/usr/share/doc/mutt/examples$
>
> As you see "hostnam and domainname" both give results
> and nslookup indicates to me that
> "ubuntu.gateway.2wire.net" is the FQDN for my Ubuntu
> machine.
> Attempted installation of amavisd-new gave this output
> error:
>
> Setting up amavisd-new (2.4.2-6) ...
> Creating/updating amavis user account...
> Starting amavisd: head: cannot open `/etc/mailname'
> for reading: No such file or directory
> The value of variable $myhostname is "ubuntu", but
> should have been
> a fully qualified domain name; perhaps uname(3) did
> not provide such.
> You must explicitly assign a FQDN of this host to
> variable $myhostname
> in amavisd.conf, or fix what uname(3) provides as a
> host's network name!
> (failed).
> invoke-rc.d: initscript amavis, action "start" failed.
> dpkg: error processing amavisd-new (--configure):
> subprocess post-installation script returned error
> exit status 1
> Errors were encountered while processing:
> amavisd-new
> E: Sub-process /usr/bin/dpkg returned an error code
> (1)
> A package failed to install. Trying to recover:
> Setting up amavisd-new (2.4.2-6) ...
> Creating/updating amavis user account...
> Starting amavisd: head: cannot open `/etc/mailname'
> for reading: No such file or directory
> The value of variable $myhostname is "ubuntu", but
> should have been
> a fully qualified domain name; perhaps uname(3) did
> not provide such.
> You must explicitly assign a FQDN of this host to
> variable $myhostname
> in amavisd.conf, or fix what uname(3) provides as a
> host's network name!
> (failed).
> invoke-rc.d: initscript amavis, action "start" failed.
> dpkg: error processing amavisd-new (--configure):
> subprocess post-installation script returned error
> exit status 1
> Errors were encountered while processing:
> amavisd-new
>
> So what am I doing wrong and how to fix FQDN? Any help
> appreciated. Thanks,
>
>
> Leonard Chatagnier
> lenc5570 at sbcglobal.net
More information about the ubuntu-users
mailing list