Find the answer to your Linux question:
Results 1 to 2 of 2
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 Code: ubuntu ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    Where is Maildir


    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
    Code:
    ubuntu
    $ hostname -f
    Code:
    ubuntu.mydomain.com
    $ cat /etc/postfix/main.cf | grep mailbox_command
    Code:
    mailbox_command =
    $ cat /etc/postfix/main.cf | grep home_mailbox
    Code:
    home_mailbox = Maildir/
    $ cat /etc/postfix/main.cf | grep mydestination
    Code:
    mydestination = ubuntu.mydomain.com, localhost.mydomain.com, localhost.localdomain, localhost
    $ cat /etc/postfix/main.cf | grep inet_interfaces
    Code:
    inet_interfaces = all
    $ cat /etc/postfix/main.cf | grep inet_protocols
    Code:
    inet_protocols = all
    $ cat /etc/postfix/main.cf | grep mynetworks
    Code:
    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
    Code:
    Trying 64.202.165.92...
    telnet: Unable to connect to remote host: Connection timed out

    $ telnet ubuntu.mydomain.com 25
    Code:
    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
    Code:
    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

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    normaly its in /var/mail
    I have no idea with Debian/Ubuntu
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •