View previous topic :: View next topic |
Author |
Message |
Anquietas Tux's lil' helper

Joined: 06 Jul 2008 Posts: 83
|
Posted: Tue Mar 24, 2009 5:47 pm Post subject: [SOLVED by Request Cancel] Postfix/Dovecot/MySQL Rejection.. |
|
|
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 |
|
 |
magic919 Advocate

Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Tue Mar 24, 2009 6:54 pm Post subject: |
|
|
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 |
|
 |
Anquietas Tux's lil' helper

Joined: 06 Jul 2008 Posts: 83
|
Posted: Tue Mar 24, 2009 6:58 pm Post subject: |
|
|
I've already done that, thank you, I've done ALL what that Wiki page says. |
|
Back to top |
|
 |
AllenJB Veteran


Joined: 02 Sep 2005 Posts: 1285
|
Posted: Tue Mar 24, 2009 8:52 pm Post subject: |
|
|
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 |
|
 |
Anquietas Tux's lil' helper

Joined: 06 Jul 2008 Posts: 83
|
Posted: Tue Mar 24, 2009 9:04 pm Post subject: |
|
|
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 |
|
 |
Anquietas Tux's lil' helper

Joined: 06 Jul 2008 Posts: 83
|
Posted: Tue Mar 24, 2009 9:20 pm Post subject: |
|
|
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 |
|
 |
AllenJB Veteran


Joined: 02 Sep 2005 Posts: 1285
|
Posted: Wed Mar 25, 2009 3:32 pm Post subject: |
|
|
Tip of the day: Don't try things on live servers. Use a test setup! |
|
Back to top |
|
 |
|