Ill will explain howto install openwebmail, I really dont have time to explain it in newbie format...But you can ofcourse allways msg me if you have any more questions.
-=INSTALL=-
Openwebmail RPM Package at:
Openwebmail RPM packages
Please follow all instructions that openwebmail has instruct you to do....READ the readme.... keep track on the httpd.conf adjustment you must make, i have made those in the /etc/httpd/conf/httpd.conf DISABLE the webmail alias whats being used by the Direct Admin webmail client.
-=ADJUSTMENTS=-
edit the /etc/rc.d/initd/vm-pop3d and find :
daemon vm-pop3d -d 10 -t 600
change it to
daemon vm-pop3d -u mail -d 10 -t 600
--
edit the /etc/exim.conf and be sure that localhost can relay without authentication example: accept hosts = localhost
ps: i use exim v4.20 but it must work with lower versions also!
--
edit the /var/www/cgi-bin/openwebmail/etc/openwebmail.conf and be sure that at least below information is in this file.
auth_module auth_unix.pl
auth_withdomain no
auth_domain auto
quota_module none
mailspooldir /var/mail
use_hashedmailspools no
use_syshomedir yes
create_syshomedir no
use_homedirspools no
homedirspoolname Mailbox
homedirfolderdirname mail
after that enter the /var/www/cgi-bin/openwebmail/etc/sites.conf directory and create config files for every domain you use or want to enable for your virtual users...
Example: domain1.com
auth_module auth_vdomain.pl
auth_withdomain yes
mailspooldir /var/spool/virtual/domain1.com/
use_syshomedir no
use_homedirspools no
enable_autoreply no
enable_setforward no
enable_vdomain yes
vdomain_vmpop3_pwdpath /etc/virtual
vdomain_vmpop3_pwdname passwd
vdomain_vmpop3_mailpath /var/spool/virtual
and do the same with domain2.com etc...etc and with all your domains
--
Now edit the /var/www/cgi-bin/openwebmail/auth_vdomain.pl and search for the " my $local_uid=getpwnam('nobody');" line and change it to my "$local_uid=getpwnam('mail');"
--
After that it should work!!, keep notice that you have to manual create a domain config file for each domain you create in Direct Admin.
Greetings!
-=INSTALL=-
Openwebmail RPM Package at:
Openwebmail RPM packages
Please follow all instructions that openwebmail has instruct you to do....READ the readme.... keep track on the httpd.conf adjustment you must make, i have made those in the /etc/httpd/conf/httpd.conf DISABLE the webmail alias whats being used by the Direct Admin webmail client.
-=ADJUSTMENTS=-
edit the /etc/rc.d/initd/vm-pop3d and find :
daemon vm-pop3d -d 10 -t 600
change it to
daemon vm-pop3d -u mail -d 10 -t 600
--
edit the /etc/exim.conf and be sure that localhost can relay without authentication example: accept hosts = localhost
ps: i use exim v4.20 but it must work with lower versions also!
--
edit the /var/www/cgi-bin/openwebmail/etc/openwebmail.conf and be sure that at least below information is in this file.
auth_module auth_unix.pl
auth_withdomain no
auth_domain auto
quota_module none
mailspooldir /var/mail
use_hashedmailspools no
use_syshomedir yes
create_syshomedir no
use_homedirspools no
homedirspoolname Mailbox
homedirfolderdirname mail
after that enter the /var/www/cgi-bin/openwebmail/etc/sites.conf directory and create config files for every domain you use or want to enable for your virtual users...
Example: domain1.com
auth_module auth_vdomain.pl
auth_withdomain yes
mailspooldir /var/spool/virtual/domain1.com/
use_syshomedir no
use_homedirspools no
enable_autoreply no
enable_setforward no
enable_vdomain yes
vdomain_vmpop3_pwdpath /etc/virtual
vdomain_vmpop3_pwdname passwd
vdomain_vmpop3_mailpath /var/spool/virtual
and do the same with domain2.com etc...etc and with all your domains

--
Now edit the /var/www/cgi-bin/openwebmail/auth_vdomain.pl and search for the " my $local_uid=getpwnam('nobody');" line and change it to my "$local_uid=getpwnam('mail');"
--
After that it should work!!, keep notice that you have to manual create a domain config file for each domain you create in Direct Admin.
Greetings!