Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix + MySQL error (solved)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Tue Feb 08, 2005 8:20 pm    Post subject: Postfix + MySQL error (solved) Reply with quote

Hi,
habe den Postfix Mailserver unter Verwendung des Wiki HowTO

Quelle:
http://de.gentoo-wiki.com/HOWTO_MailServer#PAM

In meiner Log erscheinen folgende Einträge:
Code:

server postfix # tail -f /var/log/messages
Feb  8 19:44:12 server postfix/master[7979]: warning: process /usr/lib/postfix/qmgr pid 7991 exit status 1
Feb  8 19:44:12 server postfix/master[7979]: warning: /usr/lib/postfix/qmgr: bad command startup -- throttling
Feb  8 19:44:25 server postfix/postfix-script: stopping the Postfix mail system
Feb  8 19:44:25 server postfix/master[7979]: terminating on signal 15
Feb  8 19:44:35 server postfix/postfix-script: starting the Postfix mail system
Feb  8 19:44:35 server postfix/master[8117]: daemon started -- version 2.1.5
Feb  8 19:44:35 server postfix/pickup[8125]: warning: /etc/postfix/mysql-mydestination.cf: logical line must not start with whitespace: " table = virtual select_field ..."
Feb  8 19:44:35 server postfix/pickup[8125]: fatal: /etc/postfix/mysql-mydestination.cf: bad string length 0 < 1: dbname =
Feb  8 19:44:35 server postfix/qmgr[8126]: warning: /etc/postfix/mysql-mydestination.cf: logical line must not start with whitespace: " table = virtual select_field ..."
Feb  8 19:44:35 server postfix/qmgr[8126]: fatal: /etc/postfix/mysql-mydestination.cf: bad string length 0 < 1: dbname =
Feb  8 19:44:36 server postfix/master[8117]: warning: process /usr/lib/postfix/pickup pid 8125 exit status 1
Feb  8 19:44:36 server postfix/master[8117]: warning: /usr/lib/postfix/pickup: bad command startup -- throttling
Feb  8 19:44:36 server postfix/master[8117]: warning: process /usr/lib/postfix/qmgr pid 8126 exit status 1
Feb  8 19:44:36 server postfix/master[8117]: warning: /usr/lib/postfix/qmgr: bad command startup -- throttling


Die Datei /etc/postfix/mysql-mydestination.cf hat folgenden Inhalt:
Code:

 # table name and columns
 table = virtual
 select_field = dest
 where_field = alias
 additional_conditions = and status=1


Kann jemand helfen?


Thx,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens


Last edited by benjamin200 on Sun Feb 13, 2005 9:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Tue Feb 08, 2005 10:09 pm    Post subject: Reply with quote

Ja
Code:

# user name and password to log into the mysql server
hosts = localhost
user = [DBUSER]
password = [DBPASSWORD]
# database name on the server
dbname = mail
# table name and columns
table = domain
select_field = domain_name
where_field = domain_name


I hope so
_________________
'Dieselben Naturkräfte, die uns ermöglichen, zu den Sternen zu fliegen, versetzen uns auch in die Lage, unseren Stern zu vernichten.' - Wernher von Braun
http://www.mpsna.de
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Wed Feb 09, 2005 11:22 am    Post subject: Reply with quote

Hi dakjo,
Danke für deine Antwort. Leider gibst du nicht an, wo der gepostete Code eingefügt werden soll. Probleme macht ja die mysql-mydestination.cf

Die Einträge die du gepostet hast sehen für mich so aus, wie die, die in der mysql-canonical.cf landen sollten.

mysql-canonical.cf
Code:

# user name and password to log into the mysql-server
 hosts = localhost
 user = [mailadmin]
 password = [geheim]
 # database name on the server
 dbname = mail
 # table name and columns
 table = virtual
 select_field = alias
 where_field = username
 # return the first match only
 additional_conditions = and status=1 limit 1


Hier ist aber ein Unterschied zu deinen Einträgen bei Selcet u. Where Abfrage. Für mich siehts es irgenwie nach einem Syntax Fehler aus:
Code:

Feb  8 19:44:35 server postfix/pickup[8125]: fatal: /etc/postfix/mysql-mydestination.cf: bad string length 0 < 1: dbname =



Vielleicht fällt dir ja noch was ein :)

P.S.
Hast du einen Postfix Server am laufen, der sich gegen eine MySQL Datenbank authentifiziert?


Thx,
Benjamin
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Wed Feb 09, 2005 12:11 pm    Post subject: Reply with quote

OK, sorry, du verwendetst ein anderes HowTo als ich.

Ich bau meine Mailserver nach web-cyradm zusammen.

Quote:
P.S.
Hast du einen Postfix Server am laufen, der sich gegen eine MySQL Datenbank authentifiziert?


Ja mehrere.
_________________
'Dieselben Naturkräfte, die uns ermöglichen, zu den Sternen zu fliegen, versetzen uns auch in die Lage, unseren Stern zu vernichten.' - Wernher von Braun
http://www.mpsna.de
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Wed Feb 09, 2005 12:23 pm    Post subject: Reply with quote

Hi dakjo,
schön das du auch aktiv bist :)

Quote:

OK, sorry, du verwendetst ein anderes HowTo als ich.

No Problem. Post doch mal deine HowTo Links, die du verwendest und die auch funktionieren.

Quote:

Ich bau meine Mailserver nach web-cyradm zusammen.

Was meinst du mit"Ich bau meine Mailserver nach web-cyradm zusammen. "?
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Wed Feb 09, 2005 12:25 pm    Post subject: Reply with quote

http://www.web-cyradm.org/
_________________
'Dieselben Naturkräfte, die uns ermöglichen, zu den Sternen zu fliegen, versetzen uns auch in die Lage, unseren Stern zu vernichten.' - Wernher von Braun
http://www.mpsna.de
Back to top
View user's profile Send private message
benjamin200
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1426
Location: DE Munich

PostPosted: Sun Feb 13, 2005 9:35 pm    Post subject: Reply with quote

Solved ...

Siehe:
https://forums.gentoo.org/viewtopic-t-292965-highlight-.html

@dakjo
Danke für den Ratschlag das Howto zu wechseln :)
_________________
Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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