Mail comming in and then vanishing

Discussion in 'Installation/Configuration' started by Wussell, Apr 8, 2007.

  1. Wussell

    Wussell New Member

    Hello all and thankyou in advance :)

    I configured my server using the perfect setup for Fedora 3.

    My problem is that I can see mail coming in but then it vanishes, it does not get put into the mailbox. When I check it through outlook or the web interface it says there is no mail there.

    My maillog:

    Apr 8 11:05:58 web postfix/postfix-script: starting the Postfix mail system
    Apr 8 11:05:58 web postfix/master[2176]: daemon started -- version 2.1.5
    Apr 8 11:06:08 web postfix/smtpd[2183]: connect from tara1-l2.wa.amnet.net.au[203.161.126.146]
    Apr 8 11:06:08 web postfix/smtpd[2183]: setting up TLS connection from tara1-l2.wa.amnet.net.au[203.161.126.146]
    Apr 8 11:06:08 web postfix/smtpd[2183]: TLS connection established from tara1-l2.wa.amnet.net.au[203.161.126.146]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Apr 8 11:06:08 web postfix/smtpd[2183]: E774D4343DF: client=tara1-l2.wa.amnet.net.au[203.161.126.146]
    Apr 8 11:06:08 web postfix/cleanup[2187]: E774D4343DF: message-id=<[email protected]>
    Apr 8 11:06:08 web postfix/qmgr[2180]: E774D4343DF: from=<[email protected]>, size=6196, nrcpt=1 (queue active)
    Apr 8 11:06:09 web postfix/smtpd[2183]: disconnect from tara1-l2.wa.amnet.net.au[203.161.126.146]
    Apr 8 11:06:09 web postfix/local[2188]: E774D4343DF: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=1, status=sent (delivered to maildir)
    Apr 8 11:06:09 web postfix/qmgr[2180]: E774D4343DF: removed
    Apr 8 11:06:14 web ipop3d[2191]: pop3 service init from 192.168.1.64
    Apr 8 11:06:14 web ipop3d[2191]: Login user=info host=[192.168.1.64] nmsgs=0/0
    Apr 8 11:06:14 web ipop3d[2191]: Logout user=info host=[192.168.1.64] nmsgs=0 ndele=0


    main.cf:

    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    home_mailbox = Maildir/
    debug_peer_level = 2
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.1.5/samples
    readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names
    mailbox_command =

    maildir is checked in ispconfig

    Any help would be appreciated.

    Russ
     
  2. edge

    edge Active Member Moderator

    Disable maildir in ISPconfig
     
  3. Wussell

    Wussell New Member

    I have already tried that and it did not work. The maillog was exactly the same so I even manually disabled postfix from using maildir, but to no avail. I will try it again though :)
     
  4. Wussell

    Wussell New Member

    That did not work :( Help!!!!!!!
     
  5. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
     
  6. Wussell

    Wussell New Member

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:imaps                     *:*                         LISTEN      2169/xinetd
    tcp        0      0 *:1025                      *:*                         LISTEN      1959/rpc.statd
    tcp        0      0 *:pop3s                     *:*                         LISTEN      2169/xinetd
    tcp        0      0 *:mysql                     *:*                         LISTEN      2222/mysqld
    tcp        0      0 *:pop3                      *:*                         LISTEN      2169/xinetd
    tcp        0      0 *:imap                      *:*                         LISTEN      2169/xinetd
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      1939/portmap
    tcp        0      0 *:81                        *:*                         LISTEN      2599/ispconfig_http
    tcp        0      0 *:ftp                       *:*                         LISTEN      2739/proftpd: (acce
    tcp        0      0 192.168.1.46:domain         *:*                         LISTEN      2721/named
    tcp        0      0 pctherapist.com.au:domain   *:*                         LISTEN      2721/named
    tcp        0      0 web.pctherapist.com.:domain *:*                         LISTEN      2721/named
    tcp        0      0 web.pctherapist.com.au:ipp  *:*                         LISTEN      2122/cupsd
    tcp        0      0 web.pctherapist.com.au:5335 *:*                         LISTEN      2093/mDNSResponder
    tcp        0      0 web.pctherapist.com.au:rndc *:*                         LISTEN      2721/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      2699/master
    tcp        0      0 pctherapist.com.au:pop3     192.168.1.64:1092           TIME_WAIT   -
    tcp        0      0 pctherapist.com.au:pop3     192.168.1.64:1097           TIME_WAIT   -
    tcp        0      0 web.pctherapist.com.au:1028 web.pctherapist.com.au:rndc TIME_WAIT   -
    tcp        0      0 web.pctherapist.com.au:6001 web.pctherapist.com.au:1024 TIME_WAIT   -
    tcp        0      0 *:http                      *:*                         LISTEN      2624/httpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      2158/sshd
    tcp        0      0 ::1:rndc                    *:*                         LISTEN      2721/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      2699/master
    tcp        0      0 *:https                     *:*                         LISTEN      2624/httpd
    tcp        0   1740 www.pctherapist.com.au:ssh  ::ffff:192.168.1.64:1432    ESTABLISHED 3261/1
    
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Your POP3/IMAP daemon is unsing mbox, so there are two things you must do:
    1) Disable Maildir in ISPConfig.
    2) Comment out the following two lines in /etc/postfix/main.cf:
    Code:
    home_mailbox = Maildir/
    mailbox_command = 
    Then restart Postfix:
    Code:
    /etc/init.d/postfix restart
     
  8. Wussell

    Wussell New Member

    Your a LEGEND :) It worked a treat.

    Now just one more question: why did that work???

    Thanks
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Because you're using a POP3/IMAP server that uses the mbox format, so Postfix must be configured to deliver emails to mbox instead of Maildir. If Postfix is configured for Maildir, the mails will accumulate in Maildir while you try to fetch emails from an empty mbox with your email client.
     

Share This Page