HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Postfix create inexistent maildir (http://www.howtoforge.com/forums/showthread.php?t=34129)

filipealvarez 25th April 2009 13:02

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 ANYTHING_HERE@mixdinternet.com.br
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=<root@web.mixdinternet.com.br>, 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, <root@web.mixdinternet.com.br> -> <ANYTHING_HERE@mixdinternet.com.br>, Message-ID: <20090425105112.D3D9842428@web.mixdinternet.com.br >, 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=<ANYTHING_HERE@mixdinternet.com.br>, 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=<ANYTHING_HERE@mixdinternet.com.br>, 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!

till 26th April 2009 11:32

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.

filipealvarez 27th April 2009 06:06

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 <JUST_TEST@mixdinternet.com.br>: Recipient address rejected: User unknown in virtual mailbox table; from=<filipealvarez@gmail.com> to=<JUST_TEST@mixdinternet.com.br> 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!

till 28th April 2009 09:31

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

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

filipealvarez 28th April 2009 15:21

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


All times are GMT +2. The time now is 16:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.