problems with mail local accounts in a fresh install

Discussion in 'Installation/Configuration' started by minskog, Jul 3, 2007.

  1. minskog

    minskog New Member

    i have a strange problem in a new server that i installed yesterday. it's debian etch and ispconfig 2.2.14, and i use the configuration from perfect setup for etch.

    if i send an email from local to remote (for example gmail, yahoo, other domains) works. If i send an email from remote to local it works, but if i send from local to local accounts postfix says status="sent" but it disappears :confused:

    Example:

    Code:
    Jul  3 17:16:30 dl20 postfix/local[4736]: 7B7661F19C: 
    to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=19, 
    delays=10/0/0/8.9, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail 
    
    But this email never goes to maildir (i not use mbox and all mbox on /var/mail have size 0)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check if the email ends up in /root/Maildir/new/
     
  3. minskog

    minskog New Member

    yes, all are there, wtf. :confused:
     
  4. minskog

    minskog New Member

    what i need to check?
     
  5. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    repquota -avug
    and
    Code:
    df -h
    ?
     
  6. minskog

    minskog New Member

    Code:
    dl20:~# repquota -avug
    dl20:~# 
    
    
    uppppsss blank ......
    
    Code:
    dl20:~# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda2             801M   56M  745M   7% /
    /dev/hda4             110G   23G   87G  21% /usr
    
    Edit: i disables quotas suppport on fstab and the same thing, emails dont go to user maildir .... :confused:
    Code:
    /dev/hda4 on /usr type reiserfs (rw,noatime,nodiratime)
     
    Last edited: Jul 4, 2007
  7. falko

    falko Super Moderator ISPConfig Developer

    Please post the output of
    Code:
    postconf -n
     
  8. minskog

    minskog New Member

    Code:
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    home_mailbox = Maildir/
    inet_interfaces = all
    inet_protocols = all
    mailbox_command = 
    mailbox_size_limit = 0
    mydestination = /etc/postfix/local-host-names
    myhostname = dl20.domainserver.com
    mynetworks = 127.0.0.0/8
    myorigin = /etc/mailname
    recipient_delimiter = +
    relayhost = 
    smtp_tls_note_starttls_offer = yes
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,check_policy_service inet:127.0.0.1:60000
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain = 
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    /etc/init.d/postfix restart
     
  10. minskog

    minskog New Member

    Dont work, emails continues going to root maildir, it's a very strange thing :confused:

    Edit: If i send from webmail, emails enter correctly
     
    Last edited: Jul 11, 2007
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post an excerpt of your mail logfile, the content of /etc/postfix/virtusertabel and /etc/postfix/local-host-names
     
  12. minskog

    minskog New Member

    Log, this email is send to root maildir.
    Code:
    Jul 11 00:00:11 dl20 postfix/local[27412]: 6DF6321932: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=3.9, delays=0.02/0/0/3.8, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Jul 11 00:00:11 dl20 postfix/qmgr[27260]: 6DF6321932: removed
    
    virtuertable
    Code:
    ###################################
    #
    # ISPConfig virtusertable Configuration File
    #         Version 1.0
    #
    ###################################
    [email protected]    web2_webmaster
    [email protected]    web2_webmaster
    [email protected]    web2_webmaster
    [email protected]    web2_webmaster
    [email protected]    web2_webmaster
    [email protected]    web2_webmaster
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_gonzalo
    [email protected]    web2_javier
    [email protected]    web2_javier
    [email protected]    web2_javier
    [email protected]    web2_javier
    [email protected]    web2_javier
    [email protected]    web2_javier
    [email protected]    web2_sergio
    [email protected]    web2_sergio
    [email protected]    web2_sergio
    [email protected]    web2_sergio
    [email protected]    web2_sergio
    [email protected]    web2_sergio
    [email protected]    web2_info
    [email protected]    web2_info
    [email protected]    web2_info
    [email protected]    web2_info
    [email protected]    web2_info
    [email protected]    web2_info
    [email protected]    web2_monica
    [email protected]    web2_monica
    [email protected]    web2_monica
    [email protected]    web2_monica
    [email protected]    web2_monica
    [email protected]    web2_monica
    [email protected]    web2_victor
    [email protected]    web2_victor
    [email protected]    web2_victor
    [email protected]    web2_incidencias
    [email protected]    web2_incidencias
    [email protected]    web2_incidencias
    [email protected]    web2_incidencias
    [email protected]    web2_incidencias
    [email protected]    web2_incidencias
    [email protected]    web3_webmaster
    [email protected]    web3_webmaster
    [email protected]    web3_webmaster
    [email protected]    web3_webmaster
    [email protected]    web3_webmaster
    [email protected]    web3_webmaster
    [email protected]    web3_cjna
    [email protected]    web3_cjna
    [email protected]    web3_cjna
    [email protected]    web3_cjna
    [email protected]    web5_alv
    [email protected]    web5_alv
    [email protected]    web6_minskog
    [email protected]    web6_minskog
    [email protected]    web6_minskog
    [email protected]    web6_minskog
    [email protected]    web8_publicidad
    [email protected]    web8_publicidad
    [email protected]    web2_miguel
    [email protected]    web2_miguel
    [email protected]    web2_miguel
    [email protected]    web2_miguel
    [email protected]    web2_miguel
    [email protected]    web2_miguel
    #### MAKE MANUAL ENTRIES BELOW THIS LINE!
    
    local-host-name
    Code:
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost
    dl20.domainserver.com
    localhost.dl20.domainserver.com
    localhost.domainserver.com
    localhost.localdomain
    www.domain1.com
    www.domain2.com
    banner.domain1.com
    alv.domain1.com
    www.minskog.net
    publicidad.domain1.com
    domain1.com
    domain2.com
    minskog.net
    www.domain1.net
    domainserver.com
    
     
  13. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/postfix/main.cf (please strip out the comments)?

    Can you fetch the emails from the root account to see what exactly has been sent? Maybe it was some delivery status notification mail...
     
  14. minskog

    minskog New Member

    Code:
    grep -v ^# main.cf
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    append_dot_mydomain = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    myhostname = dl20.serverdomain.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    relayhost = 
    mynetworks = 127.0.0.0/8
    mailbox_command = 
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    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,check_policy_service inet:127.0.0.1:60000smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    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
    home_mailbox = Maildir/
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names
    
    there are corretly emails but i see that that there are a lot os emails with this body: sendmail-msp: No such file or directory
     
    Last edited: Jul 12, 2007
  15. falko

    falko Super Moderator ISPConfig Developer

    This must go into two lines:

    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,check_policy_service inet:127.0.0.1:60000
    smtpd_tls_auth_only = no
     
  16. minskog

    minskog New Member

    There are in two lines, that was copy&paste 'feature' ;)
     
  17. minskog

    minskog New Member

    If i send from blackberry or webmail works ok. If i send from email client fails :confused:
     
  18. falko

    falko Super Moderator ISPConfig Developer

    You must enable "Server requires authentication." in your email client.
     
  19. minskog

    minskog New Member

    When i say that it fails i mean that when i send form webmail or blackberry email go to user maildir, but when i send from email client, system say sent but email dont go to user maildir :) This only happen when the emails have a from and to of local accounts.

    For example:

    local to gmail: works
    gmail to local: works
    local to local: postfix say sent but email never appear.
    local webmail to local account: works
    from blackberry to local: works
     
  20. falko

    falko Super Moderator ISPConfig Developer

    What's in the mail log when this happens?
     

Share This Page