Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
virtual mail and postfix problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
misc
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2003
Posts: 109

PostPosted: Sat Nov 22, 2003 8:07 am    Post subject: virtual mail and postfix problem Reply with quote

Hello, I have been reading the virtual mail howto and have gotten imap working with mysql, but I can't seem to get postfix working.

After configuring postfix to the way it says, I tried to send mail to myself and this is what appears in the logs:

postfix/smtp[28585]: 4294110A96: to=<third@domain2.com>, relay=mail.domainca.com[211.106.65.102], delay=36, status=bounced (host mail.domainca.com[211.106.65.102] said: 550 5.1.1 <third@domain2.com>... User unknown (in reply to RCPT TO command))

Now, the 'third' user is a user that exists in the database under the 'users' table as follows:

3 | third@domain2.com | pass | asdf | 1006 | 1006 | /home/vmail | /home/vmail/domain2.com/third/ | | y

So, the user exists, but after looking through the logs more, I see this entry a bit before it:

dict_mysql_lookup using sql query: select destination from virtual where email = '@domain2.com'

And then it goes on further saying that no rows were retrieved, but that's because there is no data in the 'virtual' table.

My question is, when setting up a new user, does it go in the 'users' table or in the 'virtual' table, or both? Theres nothing in the document that actually explains howto setup a user.

Thanks for any help.
Back to top
View user's profile Send private message
misc
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2003
Posts: 109

PostPosted: Sun Nov 23, 2003 12:04 pm    Post subject: Reply with quote

Ahh its ok I figured it out.

I had my virtual_mailbox_domains setup incorrectly in the main.cf file. I also had to chown vmail. /home/vmail/* -R - is this normal? because, maildirmake creates the cur tmp new directories and sets permissions as root.

And I now know what the 'virtual' table is used for - its used for aliases for virtual users :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum