
1st June 2007, 10:05
|
|
Member
|
|
Join Date: Dec 2006
Posts: 44
Thanks: 0
Thanked 2 Times in 1 Post
|
|
"Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)"
Hello,
I have tested the howto "Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)" @ http://www.howtoforge.com/virtual_po...er_ubuntu_edgy but on my Feisty Fawn.
Adding domains/users to the mail system is it only necessary to add them to the tables? Does it require changes to the file system as well, in the /home/vmail/?? I think so since I get this in the logs:
Quote:
|
Jun 1 10:17:51 vm-mail imapd: chdir mydomain.com/testuser/: No such file or directory
|
It's not covered in the howto...
Should I create anything manually?
What should I create?
What permissions (group/user) should the files/directories have?
__________________
Best Regards
4 Integration
|

2nd June 2007, 14:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by 4integration
Adding domains/users to the mail system is it only necessary to add them to the tables?
|
Yes.
Quote:
|
Originally Posted by 4integration
Does it require changes to the file system as well, in the /home/vmail/??
|
No.
Please compare your setup again with the one from the tutorial. Maybe you've made a typo somewhere.
|

13th June 2007, 16:50
|
|
Junior Member
|
|
Join Date: Dec 2006
Location: Brazil
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Netstat -tap
Hello all ... i´m in the same tutorial... all things are getting work but now i have one problem!
After amavisd instalation, the tutorial ask me to type netstat -tap and it should be show this :
root@server1:/usr/local/sbin# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:10024 *:* LISTEN 16043/amavisd (mast
tcp 0 0 localhost.localdo:10025 *:* LISTEN 15794/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 4783/mysqld
tcp 0 0 *:smtp *:* LISTEN 15794/master
tcp6 0 0 *:imaps *:* LISTEN 13452/couriertcpd
tcp6 0 0 * op3s *:* LISTEN 13517/couriertcpd
tcp6 0 0 * op3 *:* LISTEN 13480/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 13412/couriertcpd
tcp6 0 0 *:www *:* LISTEN 4489/apache2
tcp6 0 0 *:ssh *:* LISTEN 3193/sshd
the thing that i have marked whit red is my problem... This sh.... is not showed when i type the command!
I have already done all the things again... but the problem persists!
Can anyone help me?
What i have to do?!
Thanks!!!
|

14th June 2007, 21:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Did you modify /etc/postfix/master.cf as shown in the tutorial? Did you restart Postfix?
|

22nd June 2007, 11:08
|
|
Member
|
|
Join Date: Dec 2006
Posts: 44
Thanks: 0
Thanked 2 Times in 1 Post
|
|
Quote:
|
Originally Posted by falko
Please compare your setup again with the one from the tutorial. Maybe you've made a typo somewhere.
|
I have compared the installation with the tutorial but can not find anything strange.
What configuration handles the creation of the mailbox directory?
I created the directory /home/vmail/mydomain.com/testuser (owned by vmail user).
Then when I connect the mail client it creates the .Trash folder:
drwx------ 6 vmail vmail 4096 2007-06-22 11:15 .Trash
and the client (Thunderbird) says:
" The current command did not succeed: The mail server responded: Unable to open this mailbox"
Any idea?
__________________
Best Regards
4 Integration
|

22nd June 2007, 11:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,195 Times in 3,212 Posts
|
|
Please post the output of:
ls -la /home/vmail/mydomain.com/testuser
and
ls -la /home/vmail/mydomain.com/
|

22nd June 2007, 12:31
|
|
Member
|
|
Join Date: Dec 2006
Posts: 44
Thanks: 0
Thanked 2 Times in 1 Post
|
|
sh-3.2$ ls -al /home/vmail/mydomain.com/
total 12
drwxr-xr-x 3 vmail vmail 4096 2007-06-22 11:15 .
drwxr-xr-x 3 vmail vmail 4096 2007-06-22 11:14 ..
drwxr-xr-x 3 vmail vmail 4096 2007-06-22 11:15 testuser
sh-3.2$ ls -al /home/vmail/mydomain.com/testuser/
total 12
drwxr-xr-x 3 vmail vmail 4096 2007-06-22 11:15 .
drwxr-xr-x 3 vmail vmail 4096 2007-06-22 11:15 ..
drwx------ 6 vmail vmail 4096 2007-06-22 11:15 .Trash
Also worth to mention is that this installation is running in a VMWare Workstation with KUbuntu Feisty Fawn (updated) with internal IP 192.168.1.10 for evaulation. The "production" mail server runs on 192.168.1.2 and mail ports are forwarded from the firewall to 192.168.1.2.
The mail accounts for test are configured to use 192.168.1.10 and not mail.mydomain.com which the real accounts are using.
__________________
Best Regards
4 Integration
|

23rd June 2007, 20:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
The permissions look ok...
|

24th June 2007, 10:58
|
|
Member
|
|
Join Date: Dec 2006
Posts: 44
Thanks: 0
Thanked 2 Times in 1 Post
|
|
Shouldn't the file /etc/postfix/main.cf be one of the key files here?
When are Postfix notitfied to create the mailbox, when the domain/user are inserted into the DB postfix are not aware so I assume that it should be created at the first login try, right?
EDIT: Sorry it should of course be one of the Courier files such as /etc/courier/authmysqlrc
__________________
Best Regards
4 Integration
Last edited by 4integration; 24th June 2007 at 11:16.
|

24th June 2007, 19:23
|
|
Member
|
|
Join Date: Dec 2006
Posts: 44
Thanks: 0
Thanked 2 Times in 1 Post
|
|
Sorry, but I have to admit one thing. I have left out one step "3 Apply The Quota Patch To Postfix".
Falko: Do you think that this could cause my problem?
Which creates the mail dirs, Postfix or Courier?
__________________
Best Regards
4 Integration
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 03:27.
|
|
Recent comments
21 hours 39 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 18 hours ago
2 days 3 hours ago
2 days 4 hours ago
2 days 8 hours ago
2 days 12 hours ago
2 days 12 hours ago