Mail stoped working !!!!

Discussion in 'Installation/Configuration' started by bss, Jan 19, 2007.

  1. bss

    bss New Member

    I have a problem simmilar to http://www.howtoforge.com/forums/showthread.php?t=9877
    and i checked everything that should be working is ok (in log it looks at the mail was sent).
    But when i send mail from webmail or from outlook even to local address i dont get that mail.. I cant neither send or recive mail!!!... The configs are ok becouse I have made an backup of whole harddisk while it was working...

    Please helP!!!!!!:mad: :mad: :mad: :mad:
     
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    More information please

    Just shouting something does not work and expect on such a brief statement an answer that will immediately solve your problems will not work, not on this forum, not on any other. You have to be more descriptive and supportive to all the people here trying to help others. Please calm down and provide some more info about what's not working precisely. Try to break your problem(s) into pieces and address them one-by-one. Only then you can expect to receive some help.

    Let start with to installation you have? Linux version? ISPConfig? Postfix? Maildir support?

    if yes, what's the output of the Maildir directory of a local user you're trying to sent mail to? A
    Code:
    ls -l
    output would be helpful.
     
  3. bss

    bss New Member

    Code:
    [email protected]:/var/www/web4/Maildir# ls -l
    total 28
    drwxrwxrwx 2 bss.si_admin web4 4096 2007-01-14 08:56 courierimapkeywords
    -rw-r--r-- 1 bss.si_admin web4   36 2007-01-14 16:59 courierimapsubscribed
    -rw-r--r-- 1 bss.si_admin web4   20 2007-01-18 16:20 courierimapuiddb
    -rwxrwxrwx 1 bss.si_admin web4   61 2007-01-14 09:37 courierpop3dsizelist
    drwxrwxrwx 2 bss.si_admin web4 4096 2007-01-18 16:20 cur
    drwxrwxrwx 2 bss.si_admin web4 4096 2007-01-18 16:20 new
    drwxrwxrwx 2 bss.si_admin web4 4096 2007-01-18 16:23 tmp
    Sorry for the anger.... i lost my nerves... it all worked .. and i didn't do nothing... it just stopped working...

    If i send a mail to my self it goes thru ok.
    in log:
    Code:
    Jan 19 16:24:55 server postfix/local[23516]: 538FB24C39F: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.19, delays=0.09/0/0/0.1, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
    Jan 19 16:24:55 server postfix/qmgr[10510]: 538FB24C39F: removed
    and i don't get the mail...

    I have Ubuntu 6.10 amd64 with ISPconfig version 2.2.9, maildir enabled...
    I dont even get the mail if I send it from the command line..and i have no idea..remains just new installation.
     
    Last edited: Jan 19, 2007
  4. bss

    bss New Member

    Could it be something in the local hostname??
     
  5. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Anything in the Maildir/new subdirectory that resembles the just sent email?

    I see a difference with my logs in respect to the procmail part, but I'm not sure it that's the cause.
    Code:
    Jan 19 06:00:08 tmpoeu01 postfix/local[19394]: 82C331AC061: to=<[email protected]>, orig_to=<root>, relay=local, delay=7.2, delays=1.7
    /0.01/0/5.4, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    
    domain.tld is obfuscated in this example. I see in the Maildir/new (as long as I have not opened it, then it will move to the 'cur' subdir) the message sent here.

    hostname -f gives on my system tmpoeu01.domain.tld, but I have specifically set it to this with the hostname command and I changed /etc/hostname. But you had this working, so I shouldn't start to look there (unless you did some DNS or hostname changes.

    edit: negation typo error
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ? Is Maildir enabled in ISPConfig (Management -> Server -> Settings -> Email)?
     
  7. bss

    bss New Member

    yes ... i have maildir enabled

    Code:
    [email protected]:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:mysql                 *:*                     LISTEN     3424/mysqld
    tcp        0      0 *:81                    *:*                     LISTEN     3854/ispconfig_http
    
     
  8. bss

    bss New Member

    I have found the problem but now i don't know how to solve it...
    The problem is... When i recive mail with postfix it doesn't deliver the mail to my ISPconfig created directory (eg. /var/www/web4/user/bss.si_info/Maildir)
    but to /var/mail(mailbox?!? not maildir?).
    my /etc/postfix/main.conf:
    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    # TLS parameters
    #smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    #mydestination = server, localhost.localdomain, , localhost
    mynetworks = 127.0.0.0/8
    mailbox_size_limit = 0
    recipient_delimiter = +
    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
    smtpd_sasl_path = smtpd
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    mydestination = /etc/postfix/local-host-names
    
    relayhost = 
    inet_interfaces = all
    home_mailbox = Maildir/ ## is this right?
    mailbox_command = procmail -a $EXTENSION
    
     
  9. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    What's in /etc/postfix/virtusertable?
     
  10. bss

    bss New Member

    Code:
    ###################################
    #
    # ISPConfig virtusertable Configuration File
    #         Version 1.0
    #
    ###################################
    [email protected]    oblika.si_hostmaster
    [email protected]    oblika.si_hostmaster
    [email protected]    oblika.si_hostmaster
    [email protected]    oblika.si_hostmaster
    [email protected]    darovi-narave.si_admin
    [email protected]    darovi-narave.si_admin
    [email protected]    darovi-narave.si_admin
    [email protected]    darovi-narave.si_admin
    [email protected]    dezela-skratov.com_admin
    [email protected]    dezela-skratov.com_admin
    [email protected]    dezela-skratov.com_admin
    [email protected]    dezela-skratov.com_admin
    [email protected]    oblika.si_admin
    [email protected]    oblika.si_admin
    [email protected]    oblika.si_admin
    [email protected]    oblika.si_admin
    [email protected]    oblika.si_ta
    [email protected]    oblika.si_ta
    [email protected]    oblika.si_ta
    [email protected]    oblika.si_ta
    [email protected]    oblika.si_info
    [email protected]    oblika.si_info
    [email protected]    oblika.si_info
    [email protected]    oblika.si_info
    [email protected]    bss.si_admin
    [email protected]    bss.si_admin
    [email protected]    bss.si_admin
    [email protected]    bss.si_admin
    [email protected]    bss.si_info
    [email protected]    bss.si_info
    [email protected]    bss.si_info
    [email protected]    bss.si_info
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
     
  11. falko

    falko Super Moderator ISPConfig Developer

    Please try
    Code:
    postconf -e 'home_mailbox = Maildir/'
    postconf -e 'mailbox_command ='
    /etc/init.d/postfix restart
     
  12. bss

    bss New Member

    Tried alredy...
    I still get mail in /var/mail/bss.si_info mailbox...
    (i have webmin installed to see the configs)
     
  13. falko

    falko Super Moderator ISPConfig Developer

    What's bss.si_info's homedir? What's in the .procmailrc in that homedir?
     
  14. bss

    bss New Member

    /var/www/web4/user/bss.si_info
    .procmailrc
    Code:
    MAILDIR=$HOME/Maildir/
    DEFAULT=$MAILDIR
    ORGMAIL=$MAILDIR
    
    INCLUDERC=/var/www/web4/user/bss.si_info/.mailsize.rc
    ## INCLUDERC=/var/www/web4/user/bss.si_info/.quota.rc
    ## INCLUDERC=/var/www/web4/user/bss.si_info/.antivirus.rc
    ## INCLUDERC=/var/www/web4/user/bss.si_info/.local-rules.rc
    ## INCLUDERC=/var/www/web4/user/bss.si_info/.html-trap.rc
    ## INCLUDERC=/var/www/web4/user/bss.si_info/.spamassassin.rc
    ## INCLUDERC=/var/www/web4/user/bss.si_info/.autoresponder.rc
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Looks good.
    What's the output of
    Code:
    repquota -avug | grep web4?
     
  16. bss

    bss New Member

    Code:
    [email protected]:~# repquota -avug | grep web4
    web4      --     604       0       0            134     0     0
     
  17. falko

    falko Super Moderator ISPConfig Developer

    And the output of
    Code:
    quota bss.si_info
    ?
     

Share This Page