HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Just not getting it... (http://www.howtoforge.com/forums/showthread.php?t=1328)

Bob Krispen 20th November 2005 03:11

Just not getting it...
 
For some reason, I just must be missing something.

I start with pages one and two of the Debian Sarge how-to, THEN I skip into the Virtual users and domains with postfix.... (etc) http://www.howtoforge.com/virtual_po..._quota_courier

I get the database infor setup in MySQL.
I get quota set up (I even hit page 3 of the Debian Sarge how-to to work that)
Get DNS set up (hit page 3 of Debian Sarge how-to to work that)

and I get to the point of getting users in the database and postfix logs saying mail is queued and delivered, but the mail bounces back.

I get:
<sales@example.com>: [mail.example.com]: Name or service not known

I've confirmed that 'mail.example.com' resolves on the server and it correctly identifies the external IP address of this server as that mail server.

Perhaps I should have delved deeper into the Sarge How-to first? But if I did that, doesn't the Virtual Users and Domains how-to duplicate a large amount of that effort?

I'm just not seeing it somehow.

falko 20th November 2005 15:03

Quote:

Originally Posted by Bob Krispen

I get:
<sales@example.com>: [mail.example.com]: Name or service not known

I've confirmed that 'mail.example.com' resolves on the server and it correctly identifies the external IP address of this server as that mail server.

This means that your DNS records aren't set up correctly, or that they need some more time to propagate (if you've changed the DNS records recently, it might take up to 3 days to propagate).
Can you tell me your real domain and IP address so that I can check?

Bob Krispen 20th November 2005 17:50

DNS woes gone, but now amavis..
 
Ah, the overnight waiting seems to have cleared some DNS troubles leading to other problems with Amavis and MySQL.

Now I'm getting things like:

Code:

Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) lookup_sql: 2006, MySQL server has gone away
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) NOTICE: Disconnected from SQL server
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) TROUBLE in check_mail: creating_partsdir FAILED: DBD::mysql::st execute failed: MySQL server has gone away at (eval 38) line 238, <GEN17> line 79.
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20051119T205058-26431
Nov 20 11:40:07 trogdor postfix/smtp[32048]: 85EE714083: to=<sales@example.com>, relay=127.0.0.1[127.0.0.1], delay=1, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=26431-02, creating_partsdir FAILED: DBD::mysql::st execute failed: MySQL server has gone away at (eval 38) line 238, <GEN17> line 79. (in reply to end of DATA command))
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) lookup_sql: 2006, MySQL server has gone away
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) NOTICE: Disconnected from SQL server
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) TROUBLE in check_mail: creating_partsdir FAILED: DBD::mysql::st execute failed: MySQL server has gone away at (eval 38) line 238, <GEN17> line 79.
Nov 20 11:40:07 trogdor amavis[26431]: (26431-02) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20051119T205058-26431
Nov 20 11:40:07 trogdor postfix/smtp[32048]: 85EE714083: to=<sales@example.com>, relay=127.0.0.1[127.0.0.1], delay=1, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=26431-02, creating_partsdir FAILED: DBD::mysql::st execute failed: MySQL server has gone away at (eval 38) line 238, <GEN17> line 79. (in reply to end of DATA command))

I will abuse amavis and it's related config files, re-reading the How-to where appropriate (and this forum) for a bit....

Thanks for your reply though, I hope you don't have to hear from me again for help. ;)

falko 20th November 2005 18:44

It seems as if MyQL is not running. Try
Code:

/etc/init.d/mysql restart


All times are GMT +2. The time now is 14:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.