LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS 5.5 (https://www.linuxquestions.org/questions/linux-software-2/virtual-users-with-postfix-postfixadmin-courier-mailscanner-clamav-on-centos-5-5-a-852459/)

vikas027 12-26-2010 10:12 AM

Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS 5.5
 
1 Attachment(s)
Hi All,

I am trying to set up a Mail Server -- Virtual Users with Postfix, PostfixAdmin,
Courier, Mailscanner, ClamAV
On CentOS 5.5 using this guide.

These are the version and softwares I have used till now:-
Quote:

MySQL 5.0.77-4
PHP 5.1.6-27
phpMyAdmin 2.11.11
Apache 2.2.3-43
Postfix 2.3.3-2
PostfixAdmin 2.3.2
Till know I have configured LAMP stack with phpMyAdmin.


I am having a small problem while configuring the PostfixAdmin. This is the 4th point of the INSTALL.txt which was in postfixadmin-2.3.2.tar.gz
Quote:

4. Check settings, and create Admin user
----------------------------------------

Hit http://yourserver.tld/postfixadmin/setup.php in a web browser.

You should see a list of 'OK' messages.

The setup.php script will attempt to create the database structure
(or upgrade it if you're coming from a previous version).

Assuming everything is OK you can specify a password (which you'll
need to use setup.php again in the future); when you submit the form,
the hashed value (which you need to enter into config.inc.php is echoed
out - with appropriate instructions on what to do with it).

create the admin user using the form displayed.
I am having problems in creating Admin account or user as told in the last line here, which is asked in the web browser. Please see the attached Postfix.PNG.
I have used postfix, postfix@localhost, postfix@mail.example.com, postfix@example.com, postfix@192.168.1.100 in the Admin Field, But none of the are working.

I doubt it is trying to match some data from MySQL database.
These are tables available in my Postfix database.
Code:

[root@mail html]# mysql -upostfix -ppostfix27 postfix -hlocalhost -e "show tables";
+-----------------------+
| Tables_in_postfix    |
+-----------------------+
| admin                |
| alias                |
| alias_domain          |
| config                |
| domain                |
| domain_admins        |
| fetchmail            |
| log                  |
| mailbox              |
| quota                |
| quota2                |
| vacation              |
| vacation_notification |
+-----------------------+


vikas027 12-26-2010 10:34 AM

Found it.
 
Hi All,

I got my answer here:

http://lists.purplehat.org/pipermail...er/000582.html
http://www.linuxquestions.org/questi...xadmin-444363/

Thanks people.

I might need more help from you people so I am not closing this thread for next 2-3 days. :p

vikas027 12-27-2010 01:40 PM

Hi Gurus / All,

Following the How-To, I am stuck on this page.

It has been written there that, "Change both create_mailbox.php in the main and admin folder."
and
"Change both delete.php in the main and admin folder"

I could not find any create_mailbox.php in /var/www/html/postfixadmin/ folder (neither on my machine).

Also, I could only find delete.php in my main (/var/www/html/postfixadmin) folder and not in /var/www/html/postfixadmin/admin folder.
Code:

[root@mail log]# find / -name "delete.php"
/var/www/html/postfixadmin/delete.php
[root@mail log]#
[root@mail log]# find / -name "create_mailbox.php"
[root@mail log]# echo $?
0



Apart from this, I also observed the below errors in my /var/log/maillog
Code:

Dec 28 00:47:47 mail postfix/qmgr[4703]: fatal: unsupported dictionary type: mysql
Dec 28 00:47:48 mail postfix/master[4628]: warning: process /usr/libexec/postfix/qmgr pid 4703 exit status 1
Dec 28 00:47:48 mail postfix/master[4628]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

These are repeating after every 30 seconds. I tried to google it out, but could not find anything useful :(

Any ideas people how to figure out both of these issues ?

I am thinking to write a tidy How-To with some shell scripts once I finish this because I could not find any good guide to set up a mail server with all these functionalities. And the one I am referring is of 2007; its quite old one. I believe it would help lots of people like me as it covers LAMP stack, phpMyAdmin and postfixadmin.

Till then I need your support :) Thanks in advance.

vikas027 12-28-2010 02:20 PM

Any idea Gurus ? :(

vikas027 12-29-2010 09:45 AM

Hi All,

I dropped this scenario and configured iRedMail instead using this How-To.

It was the easiest thing I had done in Linux till now :)
It had everything I was looking for. Will play with configuration files now. ;)

Thanks all. I am closing this thread now.


All times are GMT -5. The time now is 07:03 AM.