Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

postfixadmin installation

Reply to Post Add a New Topic
UserPost

8:11 am
October 22, 2009


clayg

New Member

posts 2

after I followed you tutorial on setup postfixadmin I go to http://localhost/postfixadmin/setup.php

and this is all I get, doe's not ask to setup account?????

anyone have any Ideas on what the problem could be?

Thank you for your help.Surprised

Postfix Admin Setup Checker

Running software:

  • PHP version 5.1.6
  • Apache

Checking for dependencies:

  • Magic Quotes: Disabled – OK
  • Depends on: presence config.inc.php – OK

5:48 pm
October 22, 2009


consultant

Admin

posts 341

Hi clayg,

There must be a PHP error somewhere. To find the PHP error log, open the file /etc/php.ini and look for the error_log setting. It should contain the location of the PHP error log. Open the file and review it for any suspicious entries.

7:19 pm
October 22, 2009


clayg

New Member

posts 2

seems to be fine, anyother ideas??

Thank you

3:08 pm
October 24, 2009


consultant

Admin

posts 341

Hmmm… What exactly are you encountering? Is it a 404 error? Is it a misconfiguration like the one below?

Postfix Admin Setup Checker

Running software:

  • PHP version 5.1.6
  • Apache/2.2.3 (CentOS)

Checking for dependencies:

  • Magic Quotes: Disabled – OK
  • Depends on: presence config.inc.php – OK
  • Warning: $CONF['configured'] is 'false'.
    You must edit your config.inc.php and change this to true (this indicates you've created the database and user)
  • Depends on: MySQL 3.23, 4.0 – OK
  • Depends on: MySQL 4.1 – OK (change the database_type to 'mysqli' in config.inc.php!!)
  • Depends on: PostgreSQL – OK (change the database_type to 'pgsql' in config.inc.php!!)
  • Error: Can't connect to database
    Please edit the $CONF['database_*'] parameters in config.inc.php.

    DEBUG INFORMATION:
    Connect: Access denied for user 'postfix'@'localhost' (using password: YES)

  • Depends on: session – OK
  • Depends on: pcre – OK
  • Depends on: multibyte string – OK
  • Depends on: IMAP functions – OK

Please fix the errors listed above.

9:29 pm
December 1, 2009


semag

Member

posts 11

Post edited 3:26 am – December 2, 2009 by semag


Hello, I'm having a Postfixadmin install issue:

I've successfully followed and installed “Linux Mail Server Setup and Howto Guide”

which includes :

Postfix

Dovecot

SMTP Auth

SquirrelMail

Firewall settings

MailScanner

Clam Antivirus

Active Directory (I skipped this)

Great instructions! Every thing seems to work great

Now I followed the PostfixAdmin setup accordingly and when I go to setup postfixadmin// http://localhost/postfixadmin/setup.php

I get a blank page

I don't see anything in messages or maillog as to why?

  Any suggestions please

 Tks

  Paul

8:26 am
December 2, 2009


consultant

Admin

posts 341

Hi semag,

There probably a php error somewhere. Please check the log file at /var/log/httpd/error_log

6:34 pm
December 2, 2009


semag

Member

posts 11

Yes once again you were correct, lots to learn!

I didn't know about that error log..

syntax error, unexpected T_STRING, expecting ']' in /usr/share/postfixadmin/config.inc.php on line 115

Thanks

Paul

7:19 pm
December 3, 2009


consultant

Admin

posts 341

Hi Paul,

You found it. Were you able to fix your configuration problem?

12:48 am
December 18, 2009


semag

Member

posts 11

Post edited 7:28 pm – December 18, 2009 by semag


Sorry I didn't follow up on status

Yes I corrected line missing ']' on line 116.  Thanks

Now I feed stupid, another problem/ question:

In following the instructions for Postfix, Dovecot, SMTP auth, Squirrelmail, Mailscanner, and Clam AV (I sqipped Active Directory) It seems as though I installed Postfix without MYSQL.

I since added PostfixAdmin and now want to use Virtual Users but it looks like I should have used Postfix with MYSQL compiled? What's the best way to recompile Postfix with MYSQL?

Centos 5

Postfix mail_version = 2.3.3

Do I need to uninstall and start over?

Tks

Paul

9:40 am
December 18, 2009


consultant

Admin

posts 341

The Postfix version included in RHEL/CentOS does not include MySQL support.

No need to start over, just read the How to integrate MySQL or support multiple domains section on Linux Mail Server Setup home page. It includes the instructions on installing a version of Postfix with MySQL support.

9:56 pm
December 18, 2009


semag

Member

posts 11

Good thanks, followed great instructions and installed Postfix with mysql support and configured accordingly. But I am getting an error in my maillog that I cannot figure out and I have checked other forums but can't find anything that makes sense.

Dec 18 20:37:08 server1 postfix/trivial-rewrite[21707]: warning: connect to mysql server localhost: Access denied for user 'postfix'@'localhost' (using password: YES)
Dec 18 20:37:08 server1 postfix/trivial-rewrite[21707]: fatal: mysql:/etc/postfix/mysql-aliases.cf(0,lock|fold_fix): table lookup problem
Dec 18 20:37:09 server1 postfix/qmgr[21661]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Dec 18 20:37:09 server1 postfix/qmgr[21661]: warning: problem talking to service rewrite: Success
Dec 18 20:37:09 server1 postfix/master[20478]: warning: process /usr/libexec/postfix/trivial-rewrite pid 21707 exit status 1
Dec 18 20:37:09 server1 postfix/master[20478]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup — throttling

Any hints or suggestions would be appreciated.

(Still learning, thanks for your great support)

Paul (aka: Semag)

6:11 am
December 19, 2009


consultant

Admin

posts 341

The mysql password you specified is wrong. Please see Handling Multiple Domains with Postfix Admin, I've added steps to test your configuration.

11:02 am
December 19, 2009


semag

Member

posts 11

You are truely amazing! The steps you just added to your "How To" documentation did confirm that I had the wrong password in the mysql-*.cf files, but I wasn't sure because I've been bouncing between two different sets of errors  and wasn't sure when I had it right.    THANKS for that…

I'm close, my other error is:

Dec 19 09:37:53 server1 postfix/virtual[32398]: fatal: open /etc/postfix/mysql-users.cf: Permission denied
Dec 19 09:37:54 server1 postfix/master[32303]: warning: process /usr/libexec/postfix/virtual pid 32398 exit status 1
Dec 19 09:37:54 server1 postfix/master[32303]: warning: /usr/libexec/postfix/virtual: bad command startup — throttling

Does this have to do with the 'vmail' user?  Everything looks ok

Thanks,

Paul

9:37 pm
December 19, 2009


consultant

Admin

posts 341

Hi Paul,

It is probably due to SELinux, try setting it to permissive.

9:45 pm
December 19, 2009


semag

Member

posts 11

Didn't work, as I had it disabled

After rebooting postfix and dovecot I also got this error

Dec 19 20:39:49 server1 dovecot: auth-worker(default): mysql: Connect failed to localhost (postfix): Access denied for user 'postfix'@'localhost' (using password: YES) – waiting for 1 seconds before retry

and

Dec 19 20:39:49 server1 dovecot: auth-worker(default): mysql: Connect failed to localhost (postfix): Access denied for user 'postfix'@'localhost' (using password: YES) – waiting for 1 seconds before retry

9:58 pm
December 19, 2009


semag

Member

posts 11

Post edited 4:23 pm – December 20, 2009 by


Well I fixed the "dovecot: auth-worker(default): mysql: Connect failed to localhost (postfix): Access denied for user 'postfix'@'localhost' (using password: YES) – waiting for 1 seconds before retry" error.

Duh!  I didn't change the default 'password' in the dovecot-mysql.conf

I changed it and restarted postfix and dovecot and that seems to be ok now

Still getting:

Dec 19 20:57:51 server1 postfix/virtual[6192]: fatal: open /etc/postfix/mysql-users.cf: Permission denied
Dec 19 20:57:52 server1 postfix/master[6140]: warning: process /usr/libexec/postfix/virtual pid 6192 exit status 1
Dec 19 20:57:52 server1 postfix/master[6140]: warning: /usr/libexec/postfix/virtual: bad command startup — throttling

Question: Just to confirm, is it likely Postfix that is having trouble accessing mysql-users.cf?

I'll keep looking but I'm not having much luck

Paul

8:25 am
December 20, 2009


consultant

Admin

posts 341

That's possible, the permission for mysql-users.cf is probably too restrictive.

11:35 am
December 20, 2009


semag

Member

posts 11

I don't want to leave it too open, what is the suggested settings for these files?

Tks

5:02 pm
December 20, 2009


semag

Member

posts 11

Think I got it:

I changed mysql-users.cf and the other two [mysql-alias.cf, and mysql-domains.cf] to be

-rw-r—–   1 root:postfix

Semag

Reply to Post

Reply to Topic:
postfixadmin installation

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 4
   


About the Linux Mail Server Setup and Howto Guide Forum

Forum Timezone: America/New_York

Most Users Ever Online: 60

Currently Online:
12 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 5
Topics: 326
Posts: 1012

Membership:

There are 928 Members
There have been 84 Guests

There is 1 Admin

Top Posters:

shanmugasundaram s – 45
Kendermin – 15
Ginger – 14
bighorn – 14
iron_michael86 – 12
Raminda – 11

Recent New Members: RaHuL, bikesh, pappy_says, geos, boudi7, dara.hr

Administrators: consultant (341 Posts)