Postfix create inexistent maildir

Discussion in 'Installation/Configuration' started by filipealvarez, Apr 25, 2009.

  1. filipealvarez

    filipealvarez New Member

    ISPConfig 3.0.1.1 don't work fine with Ubuntu 8.04.2

    Hello, i'm using ISPConfig 3.0.1.1 on Ubuntu 8.04.2 and I have a strange trouble.

    The postfix creates maildir folder of INEXISTENT mail users!
    In the example below I sent an email to [email protected]
    and the maildir and message file has created.

    root@web:/etc/postfix# ls /var/vmail/mixdinternet.com.br/
    ANYTHING_HERE MARACARTU postmaster roossst root

    Apr 25 06:51:13 web postfix/qmgr[3931]: 7AE5642427: from=<[email protected]>, size=3104, nrcpt=1 (queue active)
    Apr 25 06:51:13 web postfix/smtpd[23057]: disconnect from localhost[127.0.0.1]
    Apr 25 06:51:13 web amavis[5149]: (05149-15) Passed CLEAN, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: V8BHxyxK58-B, Hits: 0.713, size: 2602, queued_as: 7AE5642427, 644 ms
    Apr 25 06:51:13 web postfix/smtp[23054]: D3D9842428: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.76, delays=0.1/0.01/0.01/0.64, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 7AE5642427)
    Apr 25 06:51:13 web postfix/qmgr[3931]: D3D9842428: removed
    Apr 25 06:51:13 web postfix/pipe[23058]: 7AE5642427: to=<[email protected]>, relay=maildrop, delay=0.21, delays=0.09/0.01/0/0.11, dsn=2.0.0, status=sent (delivered via maildrop service)

    May someone help me?
    Tnks!
     
    Last edited: Apr 27, 2009
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that you did not use mixdinternet.com.br in postfix main.cf as myhostname or mydomain, use something like mail.mixdinternet.com.br instead.
     
  3. filipealvarez

    filipealvarez New Member

    Hi Till, thanks for your reply!

    I investigate today and that's occours just if I sent mail using /usr/sbin/sendmail as root, with external clients works fine :)

    Apr 26 20:37:17 web postfix/smtpd[5929]: connect from mail-gx0-f175.google.com[209.85.217.175]
    Apr 26 20:37:17 web postfix/smtpd[5929]: NOQUEUE: reject: RCPT from mail-gx0-f175.google.com[209.85.217.175]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-gx0-f175.google.com>
    Apr 26 20:37:18 web postfix/smtpd[5929]: disconnect from mail-gx0-f175.google.com[209.85.217.175]

    But i've got another serious problem with ISPConfig 3.0.1.1 and Ubuntu 8.04 :mad::mad:

    All ISPConfig functions with system calls (ln, mv, cp etc with exec() php function) like add WebSite/Shelluser "crash's" and many server.sh/server.php process has been created a lot:

    # ps aux|grep "server.[sh|php]"
    root 6421 0.0 0.0 2500 1012 ? Ss 23:53 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    root 6423 0.0 0.0 2508 1088 ? S 23:53 0:00 /bin/bash /usr/local/ispconfig/server/server.sh
    root 6424 0.0 0.2 25244 7888 ? S 23:53 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    root 6437 0.0 0.0 2500 1012 ? Ss 23:54 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    root 6439 0.0 0.0 2508 1088 ? S 23:54 0:00 /bin/bash /usr/local/ispconfig/server/server.sh
    root 6441 0.0 0.2 25244 7896 ? S 23:54 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    root 6455 0.0 0.0 2500 1012 ? Ss 23:55 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    root 6460 0.0 0.0 2508 1084 ? S 23:55 0:00 /bin/bash /usr/local/ispconfig/server/server.sh
    root 6461 0.0 0.2 25244 7892 ? S 23:55 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    root 6491 0.0 0.0 2500 1020 ? Ss 23:56 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    root 6493 0.0 0.0 2508 1088 ? S 23:56 0:00 /bin/bash /usr/local/ispconfig/server/server.sh
    root 6495 0.0 0.2 25244 7892 ? S 23:56 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    root 6569 0.0 0.0 2500 1016 ? Ss 23:57 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    root 6572 0.0 0.0 2508 1088 ? S 23:57 0:00 /bin/bash /usr/local/ispconfig/server/server.sh
    root 6574 0.0 0.2 25244 7892 ? S 23:57 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    root 6592 0.0 0.0 2500 1012 ? Ss 23:58 0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    root 6594 0.0 0.0 2508 1088 ? S 23:58 0:00 /bin/bash /usr/local/ispconfig/server/server.sh
    root 6596 0.0 0.2 25244 7892 ? S 23:58 0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php

    I removed the 'lock control' function of /usr/local/ispconfig/server/server.php and that's solves my problem.
    Apparently all process of ISPConfig stopped in this function but MySQL functions (DNS records, FTP-user, Add Clients, Change some config's etc) on Web Interface works fine, so what do you think about this?

    Thanks again!
     
    Last edited: Apr 27, 2009
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Post an excerpt of the file /var/log/ispconfig/cron.log

    Also make sure that you disabled selinux and apparmor on your server.
     
  5. filipealvarez

    filipealvarez New Member

    So I'm not running apparmor or selinux.

    /var/log/ispconfig/cron.log:

    [Sun Apr 26 23:18:01 2009] [warn] NameVirtualHost 189.126.116.227:80 has no VirtualHosts
    [Sun Apr 26 23:18:01 2009] [warn] NameVirtualHost 189.126.116.227:443 has no VirtualHosts
    Error: configuration file /etc/getmail/*.conf does not exist
    Traceback (most recent call last):
    File "/usr/sbin/jk_jailuser", line 343, in <module>
    main()
    File "/usr/sbin/jk_jailuser", line 331, in main
    movehome = getmovehome(jail, username, config)
    File "/usr/sbin/jk_jailuser", line 289, in getmovehome
    tmp = raw_input('[Y]/[n]')
    EOFError: EOF when reading a line
    userdel: user velani1 is currently logged in
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    ................
    Traceback (most recent call last):
    File "/usr/sbin/jk_jailuser", line 343, in <module>
    main()
    File "/usr/sbin/jk_jailuser", line 331, in main
    movehome = getmovehome(jail, username, config)
    File "/usr/sbin/jk_jailuser", line 289, in getmovehome
    tmp = raw_input('[Y]/[n]')
    EOFError: EOF when reading a line
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist
    Error: configuration file /etc/getmail/*.conf does not exist

    My server works fine since I removed 'lock control' function...

    []s
     

Share This Page