wilma@mail:~$ sudo -i
[sudo] password for wilma:
root@mail:~# which postsuper
/usr/sbin/postsuper
root@mail:~# man postsuper
root@mail:~# mailq
...
18AEEFCBE8 2970 Mon Oct 17 20:14:02 MAILER-DAEMON
(Host or domain name not found. Name service error for name=merrillpjensen.com type=MX: Host not found, try again)
root@merrillpjensen.com
-- 19 Kbytes in 10 Requests.
root@mail:~# postsuper -d 18AEEFCBE8
postsuper: 18AEEFCBE8: removed
postsuper: Deleted: 1 message
root@mail:~# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
...
6105EFCBD7 2970 Fri Oct 14 20:16:08 MAILER-DAEMON
(Host or domain name not found. Name service error for name=merrillpjensen.com type=MX: Host not found, try again)
root@merrillpjensen.com
-- 16 Kbytes in 9 Requests.
root@mail:~# postsuper -d ALL
postsuper: Deleted: 9 messages
root@mail:~# mailq
Mail queue is empty
root@mail:~#
####
root@mail:~# vi /etc/hosts
root@mail:~# cat /etc/hosts
...
127.0.1.1 mail.merrillpjensen.com mail
127.0.0.1 localhost
192.168.12.1 mail.merrillpjensen.com mail
...
####
127.0.1.1 mail.merrillpjensen.com mail
192.168.12.1 mail.merrillpjensen.com mail
####
root@mail:~# vi /etc/aliases
root@mail:~# cat /etc/aliases
# See man 5 aliases for format
postmaster: sammy
root: sammy
root@mail:~# newaliases
root@mail:~# cat /etc/aliases
# See man 5 aliases for format
postmaster: sammy
root: sammy
####
root@mail:~# host -t MX www.merrillpjensen.com
www.merrillpjensen.com mail is handled by 5 mail.merrillpjensen.com.
root@mail:~#
####
root@mail:~# man hostname
root@mail:~# hostname -f
mail.merrillpjensen.com
root@mail:~# hostname -d
merrillpjensen.com
root@mail:~#
####
root@mail:~# cat /etc/bash.bashrc
# System-wide .bashrc file for interactive bash(1) shells.
...
export MAIL=~/Maildir
root@mail:~#
####
postconf -e "mydestination = mail.merrillpjensen.com, localhost.localdomain, localhost"
####
cd /home/sammy/Maildir/
mkdir new cur temp
####
root@mail:/home/sammy/Maildir# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail ESMTP Postfix (Ubuntu)
mail from:
rcpt to:
data
To: sammy@www.merrillpjensen.com
From: root@www.merrillpjensen
Subject: Hey my first email
This is my first email on debian postfix after installing configuring it.
It was easy. (like hell)
Sounds good!250 2.1.0 Ok
250 2.1.5 Ok
354 End data with .
.
quit
.
250 2.0.0 Ok: queued as 8BC30FCD5B
quit
221 2.0.0 Bye
Connection closed by foreign host.
root@mail:/home/sammy/Maildir# ll -R
.:
total 20
drwxrwx--x 5 sammy mymail 4096 Oct 18 05:27 ./
drwxr-x--- 3 sammy sammy 4096 May 18 22:18 ../
drwxr-xr-x 2 sammy mymail 4096 Oct 18 05:27 cur/
drwxr-xr-x 2 sammy mymail 4096 Oct 18 05:27 new/
drwxr-xr-x 2 sammy mymail 4096 Oct 18 05:27 temp/
./cur:
total 8
drwxr-xr-x 2 sammy mymail 4096 Oct 18 05:27 ./
drwxrwx--x 5 sammy mymail 4096 Oct 18 05:27 ../
./new:
total 8
drwxr-xr-x 2 sammy mymail 4096 Oct 18 05:27 ./
drwxrwx--x 5 sammy mymail 4096 Oct 18 05:27 ../
./temp:
total 8
drwxr-xr-x 2 sammy mymail 4096 Oct 18 05:27 ./
drwxrwx--x 5 sammy mymail 4096 Oct 18 05:27 ../
root@mail:/home/sammy/Maildir# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
8BC30FCD5B* 479 Wed Oct 19 06:33:56 root@www.merrillpjensen.com
sammy@www.merrillpjensen.com
7AFE9FCD5F 966 Tue Oct 18 20:00:01 root@merrillpjensen.com
(Host or domain name not found. Name service error for name=merrillpjensen.com type=MX: Host not found, try again)
root@merrillpjensen.com
0AB56FCD57 460 Tue Oct 18 05:50:04 root@merrillpjensen.com
(Host or domain name not found. Name service error for name=merrillpjensen.com type=MX: Host not found, try again)
sammy@merrillpjensen.com
-- 1 Kbytes in 3 Requests.
root@mail:/home/sammy/Maildir#
####
THE FQDN
The FQDN (Fully Qualified Domain Name) of the system is the name that
the resolver(3) returns for the host name, such as, ursula.example.com.
It is usually the hostname followed by the DNS domain name (the part
after the first dot). You can check the FQDN using hostname --fqdn or
the domain name using dnsdomainname.
You cannot change the FQDN with hostname or dnsdomainname.
The recommended method of setting the FQDN is to make the hostname be
an alias for the fully qualified name using /etc/hosts, DNS, or NIS.
For example, if the hostname was "ursula", one might have a line in
/etc/hosts which reads
127.0.1.1 ursula.example.com ursula
Technically: The FQDN is the name getaddrinfo(3) returns for the host
name returned by gethostname(2). The DNS domain name is the part after
the first dot.
Therefore it depends on the configuration of the resolver (usually in
/etc/host.conf) how you can change it. Usually the hosts file is parsed
before DNS or NIS, so it is most common to change the FQDN in
/etc/hosts.