LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2009, 08:50 PM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
Openwebmail Virtual Domain + Sendmail Issue


Hi,

I have configured openwebmail + Sendmail on CentOS 5.4,. I configured as per the help giving in the url http://www.bluelavalamp.net/owmvirtual/
I setup admin account for virtual domain to manage virtual domain users
my settings per url
Quote:
enable_vdomain yes
vdomain_admlist admin_tom
vdomain_vmpop3_pwdpath /etc/virtual
vdomain_vmpop3_pwdname passwd
vdomain_vmpop3_mailpath /var/spool/virtual
vdomain_postfix_aliases /etc/aliases
vdomain_postfix_virtual /etc/mail/virtusertable
vdomain_postfix_postalias /usr/sbin/newaliases
vdomain_postfix_postmap /usr/sbin/makemap
I am using sendmail but settings by default with postfix. And my problem is that when i create new user account from openwebmail url. New user account does not work at all. Looks like some issue as follow:

1. It gives error /etc/aliases need to change the ownership to mail user instead of root and then only it gets updated.

2. By default virtual users map gets updated via /usr/sbin/postmap command in my case sendmail makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable..

Whe i use openwebmail portal ,my virtusertable database would not get updated and when i send email to newly added virtual users via openwebmail portal it shows me in /var/log/maillog
Username not found / .forward file is not group writable error.

Exact erro i m geting
Quote:
1st error
>>> Net::SMTP(2.29)
>>> Net::Cmd(2.26)
>>> Exporter(5.58)
>>> IO::Socket::INET(1.29)
>>> IO::Socket(1.29)
>>> IO::Handle(1.25)
<<< 220 mailserver.ozone-india.com ESMTP Sendmail 8.13.8/8.13.8; Fri, 11 Dec 2009 09:04:21 +0530
>>> EHLO ozonesafes.com
<<< 250-mailserver.ozone-india.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
<<< 250-ENHANCEDSTATUSCODES
<<< 250-PIPELINING
<<< 250-8BITMIME
<<< 250-SIZE
<<< 250-DSN
<<< 250-ETRN
<<< 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
<<< 250-DELIVERBY
<<< 250 HELP
>>> MAIL FROM:<ravi.g@ozonesafes.com>
<<< 250 2.1.0 <ravi.g@ozonesafes.com>... Sender ok
>>> RCPT TO:<test6@ozonesafes.com>
<<< 550 5.1.1 <test6@ozonesafes.com>... User unknown

2) Error if i updated virtusertable vi makemap hash command manually
then i got below error

----- Transcript of session follows -----
550 5.2.4 :include:/var/www/cgi-bin/openwebmail/etc/users/ozonesafes.com/test4/.forward... Cannot open /var/www/cgi-bin/openwebmail/etc/users/ozonesafes.com/test4/.forward: Group writable directory


Any help would be greatly appreciated.

Last edited by mail4vijay; 12-10-2009 at 09:35 PM. Reason: Adding error details
 
Old 12-11-2009, 07:06 AM   #2
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by mail4vijay View Post
Hi,

I have configured openwebmail + Sendmail on CentOS 5.4,. I configured as per the help giving in the url http://www.bluelavalamp.net/owmvirtual/
I setup admin account for virtual domain to manage virtual domain users
my settings per url

I am using sendmail but settings by default with postfix. And my problem is that when i create new user account from openwebmail url. New user account does not work at all. Looks like some issue as follow:

1. It gives error /etc/aliases need to change the ownership to mail user instead of root and then only it gets updated.

2. By default virtual users map gets updated via /usr/sbin/postmap command in my case sendmail makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable..

Whe i use openwebmail portal ,my virtusertable database would not get updated and when i send email to newly added virtual users via openwebmail portal it shows me in /var/log/maillog
Username not found / .forward file is not group writable error.

Exact erro i m geting



Any help would be greatly appreciated.

I got this resolution somehow .....
I did change some settings in sendmail...as below.

[Quote]

1)Remove directory writable permission...
ls -ld /var/www/cgi-bin/openwebmail/etc/users
drwxr-xr-x 3 root mail 4096 Dec 10 18:50 /var/www/cgi-bin/openwebmail/etc/users

2)Change permission for virtusertable* to as below
ls -l virtusertable*
-rw-rw-r-- 1 root mail 364 Dec 11 18:25 virtusertable
-rw-rw---- 1 root mail 12288 Dec 11 18:26 virtusertable.db

3) Change permission for /etc/aliases
ls -l /etc/aliases
-rw-r--r-- 1 mail root 2381 Dec 11 18:25 /etc/aliases
4) After adding users via openwebmail url.. i have to run
/etc/init.d/sendmail reload
as i have changed permission to mail user /etc/aliases file to write from openwebmail...

Finally my user unknown error / group writeable dir resolved... But only thing i have to reload sendmail service at the end. as because my aliases user database cant not update automaticallly..

If any body have any suggestions / comments how to update aliases automatically through openwebmail that are welcomed.

Till then i am in good shape..

Cheers!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure Sendmail + 1 dyndns.org free domain + Mysql for virtual server simon.unix Linux - Server 1 04-15-2009 12:23 PM
using my domain to start Openwebmail mosharaf_linux Linux - Server 1 01-19-2009 05:30 PM
sendmail domain name issue - know problem - need solution DarkAge Linux - Networking 1 09-11-2006 12:56 PM
sendmail unresolved domain issue Bake-SaleNet Linux - Networking 0 11-30-2003 09:27 AM
how to add virtual user & domain on sendmail? earl Linux - Networking 2 07-30-2002 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration