Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED by Request Cancel] Postfix/Dovecot/MySQL Rejection..
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
Anquietas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2008
Posts: 83

PostPosted: Tue Mar 24, 2009 5:47 pm    Post subject: [SOLVED by Request Cancel] Postfix/Dovecot/MySQL Rejection.. Reply with quote

Hello,

I wanted to configure a new Mail Server using Postfix, Dovecot, PostfixAdmin and MySQL.

I followed the http://en.gentoo-wiki.com/wiki/Mail_server_using_Postfix_and_Dovecot article but it doesn't work properly.

I cannot receive new mails.
Mar 24 19:39:16 infosky postfix/local[4473]: E996620A57B: to=<admin@infosky.ro>, relay=local, delay=0.12, delays=0.07/0.03/0/0.02, dsn=5.1.1, status=bounced (unknown user: "admin")

If I send an email from my external account to my new configured domain and account, Postfix bounces back.

I believe Postfix cannot locate a local real unix user named "admin".

It should be able to LOOK INTO MySQL and take it from there.... "local=virtual" or something like this.

How the hell do I instruct Postfix to look into mysql ? and please don't give me lines from the article above, because they are not working.


Last edited by Anquietas on Tue Mar 24, 2009 9:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Tue Mar 24, 2009 6:54 pm    Post subject: Reply with quote

You don't really want local=virtual as it's not true.

This bit does the virtual stuff in Postfix.

Code:

To tell Postfix about the maps that you've just set up, add the following to the bottom of /etc/postfix/main.cf:

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domain_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf


HOWTO looks sane to me.
Back to top
View user's profile Send private message
Anquietas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2008
Posts: 83

PostPosted: Tue Mar 24, 2009 6:58 pm    Post subject: Reply with quote

I've already done that, thank you, I've done ALL what that Wiki page says.
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285

PostPosted: Tue Mar 24, 2009 8:52 pm    Post subject: Reply with quote

If you followed the stated guide, it won't be to do with local users. The way that guide sets things up, there are no local users associated with mail accounts (the only place where local users and mail accounts cross over is the "Local Aliases" section).

What domains and users do you have setup? Did you set them up using postfixadmin or some other method?

Also check the dovecot logs to see what that's doing.
Back to top
View user's profile Send private message
Anquietas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2008
Posts: 83

PostPosted: Tue Mar 24, 2009 9:04 pm    Post subject: Reply with quote

both the domains and the Mailboxes accounts were set up using Postfix Admin.
All the records are in the MySQL Database.

For some reason, Postfix can't get them from SQL and it tryes to look in tlhe Local accounts (the system), which is incorrect.

Also Dovecot reports no problems in the Log, only Postfix
Back to top
View user's profile Send private message
Anquietas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2008
Posts: 83

PostPosted: Tue Mar 24, 2009 9:20 pm    Post subject: Reply with quote

Nevermind, I switched back to Sendmail, I can't wait for a soluttion, every second the server is down my users are mentioning my name in their curses...
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285

PostPosted: Wed Mar 25, 2009 3:32 pm    Post subject: Reply with quote

Tip of the day: Don't try things on live servers. Use a test setup!
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