Send mail but don't receive

Discussion in 'Installation/Configuration' started by domenico, Jan 24, 2006.

  1. domenico

    domenico New Member


    I installed ispconfig on Fedora core 4 with Perfectsetup instructions and
    I've got a problem where my mail server can't receive mail but can send it.

    A look at maillog show those lines

    Jan 21 08:56:13 sele postfix/smtpd[3411]: connect from[]
    Jan 21 08:56:13 sele postfix/smtpd[3411]: B7C6459EA87:[]
    Jan 21 08:56:13 sele postfix/cleanup[3418]: B7C6459EA87:
    Jan 21 08:56:13 sele postfix/qmgr[2844]: B7C6459EA87:
    from=<>, size=1225, nrcpt=1 (queue active)
    Jan 21 08:56:13 sele postfix/local[3419]: B7C6459EA87:
    to=<root@sele.intranet.lan>, orig_to=<>, relay=local,
    delay=0, status=sent (delivered to mailbox)
    Jan 21 08:56:13 sele postfix/qmgr[2844]: B7C6459EA87: removed
    Jan 21 08:56:18 sele postfix/smtpd[3411]: disconnect from[]

    in the I have the lines

    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_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
    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.2.2/samples
    readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions =
    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_alias_domains =
    virtual_alias_maps = hash:/etc/postfix/virtusertable

    and the virtusertable has the line info

    What is wrong?

  2. till

    till Super Moderator

    The mail does got delivered to the root user. Your file does not look like it was modified by the ISPConfig installer. Did you got any errors during installation?

    In the following line is missing:

    mydestination = /etc/postfix/local-host-names
  3. domenico

    domenico New Member

    I changed manually the entry in main .cf:
    virtual_alias_domain with mydestination without obtain results.
    The fact is that the mail is delivered in the /var/mail/root mailbox but I expect it in /home/www/
    I proved to set home_mailbox = Maildir/ in without results
  4. till

    till Super Moderator

    Have you checked the maildir Checkbox in ISPConfig under management > Server > settings on the mail tab? have you installed dovecot or courier as pop3 and imap daemon?
  5. falko

    falko Super Moderator

    Please check /etc/aliases if mails for info are redirected to root.
  6. domenico

    domenico New Member

    Ok Falko,
    I changed /etc/aliases and effectively now there is no more redirect and the received mail is putted into /var/mail/info file.
    Ok Till,
    I changed ISPConfig under management > Server > settings on the mail tab by checking Maildir box and now the received mail is putted into /home/www/

    It remain that I can send correctly mail from squirrelmail but don't see received mail in INBOX of squirremail, I think some process must move mail from /home/www/ to /home/www/ but the INBOX file does not exist so what is wrong ?
  7. falko

    falko Super Moderator

    Which POP3 daemon do you use? Please post the output of
    netstat -tap
  8. domenico

    domenico New Member

    The services are under xinetd daemon and the package is imap-2002d-3
    actually are actives imap, imaps, ipop3 and pop3s.
  9. till

    till Super Moderator

    Okay, as you posted later that you use the imap package, youhave to uncheck the maildir checkbox again.

    When the mail is delivered to /var/spool/mail/info file, you should be able to fetch it with pop3 and imap. Have you tried a normal mailclient like outlook or thunderbird instead of using the webmail program?
  10. domenico

    domenico New Member

    I removed check in the Maildir checkbox of ISPConfig, restart postfix and now everything work fine.
    Tanks Till and Falko.

Share This Page