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=4)
-   -   Errors Installing Postfix, PostfixAdmin, Courier (http://www.howtoforge.com/forums/showthread.php?t=12335)

asyadiqin 26th April 2007 11:53

Errors Installing Postfix, PostfixAdmin, Courier
 
Hi. Hope someone can help me fix this.

I've followed the guide "Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS" to install on my server running Fedora Core 5. Postfix seems to be running fine and Postfixadmin installed without any major problem.

However, there is some errors in the /var/log/mailllog and /var/log/messages that I cannot seem to fix.

Whenever I created a mailbox in postfixadmin, I get the following error.
Code:

Apr 26 10:09:43 fh-1 maildrop[902]: Unable to change to home directory.
Apr 26 10:09:43 fh-1 postfix/pipe[857]: 9D9D0FA3F: to=<user1@domain1.com>, relay=maildrop, delay=0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to change to home directory. )

In /var/log/messages, i keep getting these errors
Code:

Apr 26 10:02:41 fh-1 postfix/smtpd[639]: sql_select option missing
Apr 26 10:02:41 fh-1 postfix/smtpd[639]: auxpropfunc error no mechanism available
Apr 26 10:06:59 fh-1 postfix/smtpd[755]: sql_select option missing
Apr 26 10:06:59 fh-1 postfix/smtpd[755]: auxpropfunc error no mechanism available
Apr 26 10:08:27 fh-1 postfix/smtpd[847]: sql_select option missing
Apr 26 10:08:27 fh-1 postfix/smtpd[847]: auxpropfunc error no mechanism available

Another issue I am having is with the creation of the mailbox. I've followed the guide and created the shell scripts to create and delete the maildir and modified the 4 files in postfixadmin but no maildir was created in /opt/mail/ folder whenever I created a mailbox.

Anyone have any idea? Thanks.

falko 27th April 2007 14:27

What's in /usr/lib/sasl2/smtpd.conf?

asyadiqin 27th April 2007 17:57

Quote:

Originally Posted by falko
What's in /usr/lib/sasl2/smtpd.conf?

Content of /usr/lib/sasl2/smtpd.conf

Code:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket


falko 28th April 2007 19:12

Quote:

Originally Posted by asyadiqin
Content of /usr/lib/sasl2/smtpd.conf

Code:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket


Please try this instead:

Code:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: mail_admin_password
sql_database: mail
sql_select: select password from users where email = '%u'


asyadiqin 29th April 2007 12:32

Quote:

Originally Posted by falko
Please try this instead:

Code:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: mail_admin_password
sql_database: mail
sql_select: select password from users where email = '%u'


I've made the changes to the smtpd.conf and I don't see the error in /var/log/messages anymore.

However, I still get error in /var/log/maillog

Quote:

Apr 29 11:29:08 fh-1 maildrop[23597]: Unable to change to home directory.
Apr 29 11:29:08 fh-1 postfix/pipe[23596]: 9C056FA53: to=<evelyn@domain1.com>, relay=maildrop, delay=0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to change to home directory. )


falko 30th April 2007 14:32

Quote:

Originally Posted by asyadiqin
However, I still get error in /var/log/maillog

Something seems to be wrong with your maildrop setup. What's evelyn@domain1.com's homedir? Can you post the output of
Code:

ls -la homedir
?

asyadiqin 30th April 2007 19:09

Quote:

Originally Posted by falko
Something seems to be wrong with your maildrop setup. What's evelyn@domain1.com's homedir? Can you post the output of
Code:

ls -la homedir
?

Quote:

[root@fh-1 ~]# ls -la /opt/mail
total 12
drwx------ 2 vmail vmail 4096 Apr 26 09:59 .
drwxr-xr-x 4 root root 4096 Apr 24 12:26 ..
[root@fh-1 ~]#
Maildir should be in /opt/mail/ and in the case for evelyn@domain1.com, it should be in

/opt/mail/domain1.com/evelyn

However, no such folders were created when I added the mailbox using postfixadmin.

However, if I change the transport type in /etc/postfix/main.cf from maildrop to virtual, the folders will be created.

As I have mentioned in previous post, I've added the shell scripts to create and delete maildir and modified 4 php files in the postfixadmin folders, so I am not sure why the folders were not created.

JonMarkGo 10th November 2008 20:32

I'm going to bump this topic, since I'm having the same problem. I'm using CENTOs 5.2, and the installation went fine. I can send email unauthenticated through telnet, and it gets sent from the server and is received at the server in the proper maildir (only from telnet).

But I cannot authenticate remotely using thunderbird... I get these errors:
Nov 10 19:29:56 newinstance postfix/smtpd[7323]: sql_select option missing
Nov 10 19:29:56 newinstance postfix/smtpd[7323]: auxpropfunc error no mechanism available
Nov 10 19:33:58 newinstance saslauthd[7377]: do_auth : auth failure: [user=jon] [service=smtp] [realm=mydomain.com] [mech=pam] [reason=PAM auth error]

I updated my smtpd.conf file with the one posted here, but it did not help.

JonMarkGo 10th November 2008 20:45

If it helps at all, I used this tutorial: http://www.howtoforge.com/virtual-us...ysql-centos5.1

I have postfix 2.3.3 and CENTOs 5.2

falko 11th November 2008 14:35

What's the output of
Code:

uname -a
?

Please try this:

Code:

pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/spool/authdaemon/socket



All times are GMT +2. The time now is 07:55.

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