satimis
29th October 2007, 14:29
Hi folks,
Ubuntu 7.04 server amd64
Postfix 2.3.8
This is a newly built server. I can't locate the Maildir after sending mail.
Steps performed as follows;
$ hostname
ubuntu
$ hostname -f
ubuntu.mydomain.com
$ cat /etc/postfix/main.cf | grep mailbox_command
mailbox_command =
$ cat /etc/postfix/main.cf | grep home_mailbox
home_mailbox = Maildir/
$ cat /etc/postfix/main.cf | grep mydestination
mydestination = ubuntu.mydomain.com, localhost.mydomain.com, localhost.localdomain, localhost
$ cat /etc/postfix/main.cf | grep inet_interfaces
inet_interfaces = all
$ cat /etc/postfix/main.cf | grep inet_protocols
inet_protocols = all
$ cat /etc/postfix/main.cf | grep mynetworks
mynetworks = 127.0.0.0/8, 192.168.1.0/24"
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
ping both ubuntu.mydomain.com/mydomain.com works.
On browser type both ubuntu.mydomain.com/mydomain.com displaying Apache2 default page.
$ telnet mail.mydomain.com 25
Trying 64.202.165.92...
telnet: Unable to connect to remote host: Connection timed out
$ telnet ubuntu.mydomain.com 25
Trying 127.0.1.1...
Connected to ubuntu.mydomain.com.
Escape character is '^]'.
220 ubuntu.mydomain.com ESMTP Postfix (Ubuntu)
ehlo mydomain.com
250-ubuntu.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: root@mydomain.com
250 2.1.0 Ok
rcpt to: fmaster@mydomain.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: My first mail for my domain
Hi
Are you there?
Admin
.
250 2.0.0 Ok: queued as 85354DF0168
quit
221 2.0.0 Bye
Connection closed by foreign host.
$ su - fmaster
Password:
fmaster@ubuntu:~$ ls -al
total 24
drwxr-xr-x 2 fmaster fmaster 4096 2007-10-28 20:16 .
drwxr-xr-x 5 root root 4096 2007-10-28 09:57 ..
-rw------- 1 fmaster fmaster 112 2007-10-29 01:40 .bash_history
-rw-r--r-- 1 fmaster fmaster 220 2007-10-28 09:57 .bash_logout
Where is the Maildir ???
Do I need changing hostname as "mydomain.com"? If YES, please advice;
1) Apart from /etc/hosts and /etc/postifx/main.cf what other files I have to change as well ?
2) After changes made what command shall I run to activate the changes rather than rebooting the server ?
TIA
B.R.
satimis
Ubuntu 7.04 server amd64
Postfix 2.3.8
This is a newly built server. I can't locate the Maildir after sending mail.
Steps performed as follows;
$ hostname
ubuntu
$ hostname -f
ubuntu.mydomain.com
$ cat /etc/postfix/main.cf | grep mailbox_command
mailbox_command =
$ cat /etc/postfix/main.cf | grep home_mailbox
home_mailbox = Maildir/
$ cat /etc/postfix/main.cf | grep mydestination
mydestination = ubuntu.mydomain.com, localhost.mydomain.com, localhost.localdomain, localhost
$ cat /etc/postfix/main.cf | grep inet_interfaces
inet_interfaces = all
$ cat /etc/postfix/main.cf | grep inet_protocols
inet_protocols = all
$ cat /etc/postfix/main.cf | grep mynetworks
mynetworks = 127.0.0.0/8, 192.168.1.0/24"
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
ping both ubuntu.mydomain.com/mydomain.com works.
On browser type both ubuntu.mydomain.com/mydomain.com displaying Apache2 default page.
$ telnet mail.mydomain.com 25
Trying 64.202.165.92...
telnet: Unable to connect to remote host: Connection timed out
$ telnet ubuntu.mydomain.com 25
Trying 127.0.1.1...
Connected to ubuntu.mydomain.com.
Escape character is '^]'.
220 ubuntu.mydomain.com ESMTP Postfix (Ubuntu)
ehlo mydomain.com
250-ubuntu.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: root@mydomain.com
250 2.1.0 Ok
rcpt to: fmaster@mydomain.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: My first mail for my domain
Hi
Are you there?
Admin
.
250 2.0.0 Ok: queued as 85354DF0168
quit
221 2.0.0 Bye
Connection closed by foreign host.
$ su - fmaster
Password:
fmaster@ubuntu:~$ ls -al
total 24
drwxr-xr-x 2 fmaster fmaster 4096 2007-10-28 20:16 .
drwxr-xr-x 5 root root 4096 2007-10-28 09:57 ..
-rw------- 1 fmaster fmaster 112 2007-10-29 01:40 .bash_history
-rw-r--r-- 1 fmaster fmaster 220 2007-10-28 09:57 .bash_logout
Where is the Maildir ???
Do I need changing hostname as "mydomain.com"? If YES, please advice;
1) Apart from /etc/hosts and /etc/postifx/main.cf what other files I have to change as well ?
2) After changes made what command shall I run to activate the changes rather than rebooting the server ?
TIA
B.R.
satimis