Sunday was a bad day... I had one debian Lenny master dedicated server controlling a debian Lenny virtual machine at a data centre. The virtual slave hung and on reboot couldn't get past the grub loader. I was told there seemed significant damage to the file system. As a result they created me a new virtual machine using the same name and same ip with the intention to get this working as if it were the original machine and attach the old hard drive to it to try and recover data. The installation of ispconfig slave seemed to go well on the new machine. It is now added to the control panel alongside the old machine that is now off line. My first question is how do I completely remove the old machine when it's not there to communicate with? The new machine has two services offline. Smtp and mysql server. Mysql does appear to be working despite what's in the control panel. How should I start to problem shoot smtp? Squirrel mail also complains of no smtp stream when sending mail. Thanks In advance.
Good point. That folder is completely empty. I guess something hadn't installed. I used the perfect guide for Lenny with courier and my dns. If that folder is empty, is it courier or postfix or another that didn't install properly?
Cancel that.... the log file was not empty. It is as below: Code: Aug 1 12:42:28 badbison postfix/trivial-rewrite[22953]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:42:29 badbison postfix/smtpd[22035]: warning: problem talking to service rewrite: Success Aug 1 12:42:29 badbison postfix/smtpd[20345]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:42:29 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22948 exit status 1 Aug 1 12:42:29 badbison postfix/master[22060]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 12:42:29 badbison postfix/smtpd[22433]: warning: problem talking to service rewrite: Success Aug 1 12:42:29 badbison postfix/smtpd[19979]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:42:29 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22949 exit status 1 Aug 1 12:42:29 badbison postfix/smtpd[15890]: warning: problem talking to service rewrite: Success Aug 1 12:42:29 badbison postfix/smtpd[21227]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:42:29 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22950 exit status 1 Aug 1 12:42:29 badbison postfix/smtpd[22445]: warning: problem talking to service rewrite: Success Aug 1 12:42:29 badbison postfix/smtpd[22438]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:42:29 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22951 exit status 1 Aug 1 12:42:29 badbison postfix/smtpd[22512]: warning: problem talking to service rewrite: Success Aug 1 12:42:29 badbison postfix/smtpd[18028]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:42:29 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22952 exit status 1 Aug 1 12:42:29 badbison postfix/smtpd[22816]: warning: problem talking to service rewrite: Success Aug 1 12:42:29 badbison postfix/smtpd[22947]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:42:29 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22953 exit status 1 Aug 1 12:43:29 badbison postfix/trivial-rewrite[22972]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 12:43:29 badbison postfix/trivial-rewrite[22972]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:43:29 badbison postfix/trivial-rewrite[22973]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 12:43:29 badbison postfix/trivial-rewrite[22973]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:43:29 badbison postfix/trivial-rewrite[22974]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 12:43:29 badbison postfix/trivial-rewrite[22974]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:43:29 badbison postfix/trivial-rewrite[22975]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 12:43:29 badbison postfix/trivial-rewrite[22975]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:43:29 badbison postfix/trivial-rewrite[22976]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 12:43:29 badbison postfix/trivial-rewrite[22976]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:43:29 badbison postfix/trivial-rewrite[22977]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 12:43:29 badbison postfix/trivial-rewrite[22977]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 12:43:30 badbison postfix/smtpd[22035]: warning: problem talking to service rewrite: Success Aug 1 12:43:30 badbison postfix/smtpd[20345]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:43:30 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22972 exit status 1 Aug 1 12:43:30 badbison postfix/master[22060]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 12:43:30 badbison postfix/smtpd[22433]: warning: problem talking to service rewrite: Success Aug 1 12:43:30 badbison postfix/smtpd[19979]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:43:30 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22973 exit status 1 Aug 1 12:43:30 badbison postfix/smtpd[15890]: warning: problem talking to service rewrite: Success Aug 1 12:43:30 badbison postfix/smtpd[21227]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:43:30 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22974 exit status 1 Aug 1 12:43:30 badbison postfix/smtpd[22445]: warning: problem talking to service rewrite: Success Aug 1 12:43:30 badbison postfix/smtpd[22438]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:43:30 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22975 exit status 1 Aug 1 12:43:30 badbison postfix/smtpd[22512]: warning: problem talking to service rewrite: Success Aug 1 12:43:30 badbison postfix/smtpd[18028]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:43:30 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22976 exit status 1 Aug 1 12:43:30 badbison postfix/smtpd[22816]: warning: problem talking to service rewrite: Success Aug 1 12:43:30 badbison postfix/smtpd[22947]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 12:43:30 badbison postfix/master[22060]: warning: process /usr/lib/postfix/trivial-rewrite pid 22977 exit status 1
having restarted mysql the control panel has now gone green, but squirrel mail still won't send mail. it just hangs. The mail.log looks like this now, still reporting connection problems to mysql i think: Code: Aug 1 13:04:31 badbison imapd: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[39633], protocol=IMAP Aug 1 13:04:31 badbison imapd: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0 Aug 1 13:04:40 badbison postfix/trivial-rewrite[3464]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:04:40 badbison postfix/trivial-rewrite[3464]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:04:41 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:04:41 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3464 exit status 1 Aug 1 13:04:41 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:04:41 badbison postfix/smtpd[3465]: connect from localhost.localdomain[127.0.0.1] Aug 1 13:05:03 badbison imapd: Connection, ip=[::ffff:127.0.0.1] Aug 1 13:05:03 badbison imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0 Aug 1 13:05:03 badbison pop3d: Connection, ip=[::ffff:127.0.0.1] Aug 1 13:05:03 badbison pop3d: Disconnected, ip=[::ffff:127.0.0.1] Aug 1 13:05:03 badbison postfix/smtpd[3499]: connect from localhost.localdomain[127.0.0.1] Aug 1 13:05:03 badbison postfix/smtpd[3499]: lost connection after CONNECT from localhost.localdomain[127.0.0.1] Aug 1 13:05:03 badbison postfix/smtpd[3499]: disconnect from localhost.localdomain[127.0.0.1] Aug 1 13:05:41 badbison postfix/trivial-rewrite[3531]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:05:41 badbison postfix/trivial-rewrite[3531]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:05:42 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:05:42 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:05:42 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3531 exit status 1 Aug 1 13:05:43 badbison postfix/trivial-rewrite[3532]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:05:43 badbison postfix/trivial-rewrite[3532]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:05:44 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:05:44 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:05:44 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3532 exit status 1 Aug 1 13:05:44 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:06:44 badbison postfix/trivial-rewrite[3547]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:06:44 badbison postfix/trivial-rewrite[3547]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:06:45 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:06:45 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:06:45 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3547 exit status 1 Aug 1 13:06:45 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:07:45 badbison postfix/trivial-rewrite[3598]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:07:45 badbison postfix/trivial-rewrite[3598]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:07:46 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:07:46 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:07:46 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3598 exit status 1 Aug 1 13:07:46 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:08:46 badbison postfix/trivial-rewrite[3613]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:08:46 badbison postfix/trivial-rewrite[3613]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:08:47 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:08:47 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:08:47 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3613 exit status 1 Aug 1 13:08:47 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:09:37 badbison postfix/smtpd[3640]: connect from localhost.localdomain[127.0.0.1] Aug 1 13:09:47 badbison postfix/trivial-rewrite[3641]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:09:47 badbison postfix/trivial-rewrite[3641]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:09:47 badbison postfix/trivial-rewrite[3642]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:09:47 badbison postfix/trivial-rewrite[3642]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:09:48 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:09:48 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:09:48 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3641 exit status 1 Aug 1 13:09:48 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:09:48 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3642 exit status 1 Aug 1 13:10:03 badbison pop3d: Connection, ip=[::ffff:127.0.0.1] Aug 1 13:10:03 badbison imapd: Connection, ip=[::ffff:127.0.0.1] Aug 1 13:10:03 badbison pop3d: Disconnected, ip=[::ffff:127.0.0.1] Aug 1 13:10:03 badbison imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0 Aug 1 13:10:03 badbison postfix/smtpd[3671]: connect from localhost.localdomain[127.0.0.1] Aug 1 13:10:03 badbison postfix/smtpd[3671]: lost connection after CONNECT from localhost.localdomain[127.0.0.1] Aug 1 13:10:03 badbison postfix/smtpd[3671]: disconnect from localhost.localdomain[127.0.0.1] Aug 1 13:10:48 badbison postfix/trivial-rewrite[3695]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:10:48 badbison postfix/trivial-rewrite[3695]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:10:48 badbison postfix/trivial-rewrite[3696]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 1 13:10:48 badbison postfix/trivial-rewrite[3696]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 1 13:10:49 badbison postfix/smtpd[3436]: warning: problem talking to service rewrite: Success Aug 1 13:10:49 badbison postfix/smtpd[3465]: warning: problem talking to service rewrite: Connection reset by peer Aug 1 13:10:49 badbison postfix/smtpd[3640]: warning: problem talking to service rewrite: Success Aug 1 13:10:49 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3695 exit status 1 Aug 1 13:10:49 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 1 13:10:49 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 3696 exit status 1 netstat -tap | grep mysql output Code: tcp 0 0 *:mysql *:* LISTEN 2627/mysqld tcp 0 0 badbison.badbison:54964 badbison.co.uk:mysql TIME_WAIT - badbison.badbison.com is the slave and badbison.co.uk is the master.
Have you copied any config files from the old server to the enw server? Please post the output of: ls -la /var/run/mysqld/
badbison:~# ls -la /var/run/mysqld/ total 12 drwxr-xr-x *2 mysql root *4096 2011-08-01 13:01 . drwxr-xr-x 12 root *root *4096 2011-08-01 13:01 .. -rw-rw---- *1 mysql mysql * *5 2011-08-01 13:01 mysqld.pid srwxrwxrwx *1 mysql mysql * *0 2011-08-01 13:01 mysqld.sock badbison:~#* I haven't copied any configuration files over. Just created A new slave and joiined it to the master using expert mode. The data centre said they would connect the old hard drive to the new vm, but I don't think they meant to integrate withthe new os, just to retrieve data. I think. As it happens I've still not managed to find the connection.
Looking further into it, the old hard disk has not become part of the new system filing system and I have definately not copied any of the old configuration files over. The mail log now looks like this: Code: Aug 3 08:36:58 badbison postfix/trivial-rewrite[25180]: fatal: mysql:/etc/postf ix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 3 08:36:58 badbison postfix/trivial-rewrite[25181]: warning: connect to mys ql server localhost: Can't connect to local MySQL server through socket '/var/ru n/mysqld/mysqld.sock' (2) Aug 3 08:36:58 badbison postfix/trivial-rewrite[25181]: fatal: mysql:/etc/postf ix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 3 08:36:58 badbison postfix/trivial-rewrite[25182]: warning: connect to mys ql server localhost: Can't connect to local MySQL server through socket '/var/ru n/mysqld/mysqld.sock' (2) Aug 3 08:36:58 badbison postfix/trivial-rewrite[25182]: fatal: mysql:/etc/postf ix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 3 08:36:58 badbison postfix/trivial-rewrite[25183]: warning: connect to mys ql server localhost: Can't connect to local MySQL server through socket '/var/ru n/mysqld/mysqld.sock' (2) Aug 3 08:36:58 badbison postfix/trivial-rewrite[25183]: fatal: mysql:/etc/postf ix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 3 08:36:58 badbison postfix/trivial-rewrite[25184]: warning: connect to mys ql server localhost: Can't connect to local MySQL server through socket '/var/ru n/mysqld/mysqld.sock' (2) Aug 3 08:36:58 badbison postfix/trivial-rewrite[25184]: fatal: mysql:/etc/postf ix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 3 08:36:58 badbison postfix/trivial-rewrite[25185]: warning: connect to mys ql server localhost: Can't connect to local MySQL server through socket '/var/ru n/mysqld/mysqld.sock' (2) Aug 3 08:36:58 badbison postfix/trivial-rewrite[25185]: fatal: mysql:/etc/postf ix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 3 08:36:59 badbison postfix/smtpd[5169]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[3825]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25175 exit status 1 Aug 3 08:36:59 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial -rewrite: bad command startup -- throttling Aug 3 08:36:59 badbison postfix/smtpd[22317]: warning: problem talking to servi ce rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[3442]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25176 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[22129]: warning: problem talking to servi ce rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[2426]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25177 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[5184]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[3367]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25178 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[1700]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[7122]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25179 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[3009]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[23056]: warning: problem talking to servi ce rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25180 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[7407]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[6423]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25181 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[5168]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[22732]: warning: problem talking to servi ce rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25182 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[6544]: warning: problem talking to servic e rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[5484]: warning: problem talking to servic e rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25183 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[24612]: warning: problem talking to servi ce rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[24464]: warning: problem talking to servi ce rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25184 exit status 1 Aug 3 08:36:59 badbison postfix/smtpd[24699]: warning: problem talking to servi ce rewrite: Success Aug 3 08:36:59 badbison postfix/smtpd[24754]: warning: problem talking to servi ce rewrite: Connection reset by peer Aug 3 08:36:59 badbison postfix/master[3237]: warning: process /usr/lib/postfix /trivial-rewrite pid 25185 exit status 1 I'm really stuck with this one... i've done lot's of installs but suffered this problem before. Help much appreciate.
Linux badbison.badbison.com 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Aug *3 22:37:43 2011 from 5ad963c4.bb.sky.com badbison:~# cd /etc/postfix badbison:/etc/postfix# ls body_checks * * *mysql-virtual_mailboxes.cf dynamicmaps.cf * * *mysql-virtual_recipient.cf header_checks * * *mysql-virtual_relaydomains.cf main.cf * * *mysql-virtual_relayrecipientmaps.cf main.cf~ * * *mysql-virtual_sender.cf main.cf~2 * * *mysql-virtual_transports.cf master.cf * * *nested_header_checks master.cf~ * * *postfix-files mime_header_checks * * *postfix-script mysql-virtual_client.cf * * * post-install mysql-virtual_domains.cf * * *sasl mysql-virtual_email2email.cf *smtpd.cert mysql-virtual_forwardings.cf *smtpd.key badbison:/etc/postfix# cat master.cf # # Postfix master process configuration file. *For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type *private unpriv *chroot *wakeup *maxproc command + args # * * * * * * * (yes) * (yes) * (yes) * (never) (100) # ========================================================================== smtp * * *inet *n * * * - * * * - * * * - * * * - * * * smtpd #submission inet n * * * - * * * - * * * - * * * - * * * smtpd # *-o smtpd_tls_security_level=encrypt # *-o smtpd_sasl_auth_enable=yes # *-o smtpd_client_restrictions=permit_sasl_authenticated,reject # *-o milter_macro_daemon_name=ORIGINATING #smtps * * inet *n * * * - * * * - * * * - * * * - * * * smtpd # *-o smtpd_tls_wrappermode=yes # *-o smtpd_sasl_auth_enable=yes # *-o smtpd_client_restrictions=permit_sasl_authenticated,reject # *-o milter_macro_daemon_name=ORIGINATING #628 * * *inet *n * * * - * * * - * * * - * * * - * * * qmqpd pickup * *fifo *n * * * - * * * - * * * 60 * * *1 * * * pickup cleanup * unix *n * * * - * * * - * * * - * * * 0 * * * cleanup qmgr * * *fifo *n * * * - * * * n * * * 300 * * 1 * * * qmgr #qmgr * * fifo *n * * * - * * * - * * * 300 * * 1 * * * oqmgr tlsmgr * *unix *- * * * - * * * - * * * 1000? * 1 * * * tlsmgr rewrite * unix *- * * * - * * * - * * * - * * * - * * * trivial-rewrite bounce * *unix *- * * * - * * * - * * * - * * * 0 * * * bounce defer * * unix *- * * * - * * * - * * * - * * * 0 * * * bounce trace * * unix *- * * * - * * * - * * * - * * * 0 * * * bounce verify * *unix *- * * * - * * * - * * * - * * * 1 * * * verify flush * * unix *n * * * - * * * - * * * 1000? * 0 * * * flush proxymap *unix *- * * * - * * * n * * * - * * * - * * * proxymap proxywrite unix - * * * - * * * n * * * - * * * 1 * * * proxymap smtp * * *unix *- * * * - * * * - * * * - * * * - * * * smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay * * unix *- * * * - * * * - * * * - * * * - * * * smtp -o smtp_fallback_relay= # * * * -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq * * unix *n * * * - * * * - * * * - * * * - * * * showq error * * unix *- * * * - * * * - * * * - * * * - * * * error retry * * unix *- * * * - * * * - * * * - * * * - * * * error discard * unix *- * * * - * * * - * * * - * * * - * * * discard local * * unix *- * * * n * * * n * * * - * * * - * * * local virtual * unix *- * * * n * * * n * * * - * * * - * * * virtual lmtp * * *unix *- * * * - * * * - * * * - * * * - * * * lmtp anvil * * unix *- * * * - * * * - * * * - * * * 1 * * * anvil scache * *unix *- * * * - * * * - * * * - * * * 1 * * * scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. *See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop *unix *- * * * n * * * n * * * - * * * - * * * pipe **flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender} # # See the Postfix UUCP_README file for configuration details. # uucp * * *unix *- * * * n * * * n * * * - * * * - * * * pipe **flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail * *unix *- * * * n * * * n * * * - * * * - * * * pipe **flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp * * unix *- * * * n * * * n * * * - * * * - * * * pipe **flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe **flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman * unix *- * * * n * * * n * * * - * * * - * * * pipe **flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py **${nexthop} ${user} amavis unix - - - - 2 smtp ** * * *-o smtp_data_done_timeout=1200 ** * * *-o smtp_send_xforward_command=yes 127.0.0.1:10025 inet n - - - - smtpd ** * * *-o content_filter= ** * * *-o local_recipient_maps= ** * * *-o relay_recipient_maps= ** * * *-o smtpd_restriction_classes= ** * * *-o smtpd_client_restrictions= ** * * *-o smtpd_helo_restrictions= ** * * *-o smtpd_sender_restrictions= ** * * *-o smtpd_recipient_restrictions=permit_mynetworks,reject ** * * *-o mynetworks=127.0.0.0/8 ** * * *-o strict_rfc821_envelopes=yes ** * * *-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks ** * * *-o smtpd_bind_address=127.0.0.1
Thanks Falko I dont know if it's running chrooted, how do I find out? I certainly didn't set anything up that wasn't in the perfect Lenny with courier and mydns guide. I can only guess I've missed a step out maybe. Everything else works fine. Apache interacts with mysql no problems.
Code: # ================================================== ======================== # service type *private unpriv *[COLOR="Red"]chroot[/COLOR] *wakeup *maxproc command + args # * * * * * * * (yes) * (yes) * (yes) * (never) (100) # ================================================== ======================== smtp * * *inet *n * * * - * * * [COLOR="Red"]-[/COLOR] * * * - * * * - * * * smtpd It's not running chrooted, as you can see from your master.cf. Can you post the contents of one of the /etc/postfix/mysql*.cf files that is throwing errors in your mail log?
badbison:/etc/postfix# cat mysql-virtual_domains.cf user = ispconfig password = looks like a hashed pw here dbname = dbispconfig table = mail_domain select_field = domain where_field = domain additional_conditions = and active = 'y' and server_id = 4 hosts = localhostbadbison:/etc/postfix#*
Aug 5 10:52:23 badbison postfix/trivial-rewrite[9141]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 5 10:52:23 badbison postfix/trivial-rewrite[9142]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 5 10:52:23 badbison postfix/trivial-rewrite[9142]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 5 10:52:23 badbison pop3d: LOGIN FAILED, user=client, ip=[::ffff:122.71.176.176] Aug 5 10:52:24 badbison postfix/smtpd[20743]: warning: problem talking to service rewrite: Success Aug 5 10:52:24 badbison postfix/smtpd[7814]: warning: problem talking to service rewrite: Connection reset by peer Aug 5 10:52:24 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 9141 exit status 1 Aug 5 10:52:24 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 5 10:52:24 badbison postfix/smtpd[5886]: warning: problem talking to service rewrite: Success Aug 5 10:52:24 badbison postfix/smtpd[3861]: warning: problem talking to service rewrite: Connection reset by peer Aug 5 10:52:24 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 9142 exit status 1 Aug 5 10:52:28 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:52:29 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:52:30 badbison pop3d: LOGIN FAILED, user=michel, ip=[::ffff:122.71.176.176] Aug 5 10:52:35 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:52:36 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:52:36 badbison pop3d: LOGIN FAILED, user=coco, ip=[::ffff:122.71.176.176] Aug 5 10:52:42 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:52:42 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:52:43 badbison pop3d: LOGIN FAILED, user=trac, ip=[::ffff:122.71.176.176] Aug 5 10:52:49 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:52:50 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:52:50 badbison pop3d: LOGIN FAILED, user=123, ip=[::ffff:122.71.176.176] Aug 5 10:52:56 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:52:56 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:52:57 badbison pop3d: LOGIN FAILED, user=java, ip=[::ffff:122.71.176.176] Aug 5 10:53:03 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:03 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:04 badbison pop3d: LOGIN FAILED, user=java, ip=[::ffff:122.71.176.176] Aug 5 10:53:10 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:15 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:16 badbison pop3d: LOGIN FAILED, user=java, ip=[::ffff:122.71.176.176] Aug 5 10:53:21 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:22 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:23 badbison pop3d: LOGIN FAILED, user=mailtest, ip=[::ffff:122.71.176.176] Aug 5 10:53:24 badbison postfix/trivial-rewrite[9165]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 5 10:53:24 badbison postfix/trivial-rewrite[9165]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 5 10:53:24 badbison postfix/trivial-rewrite[9166]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 5 10:53:24 badbison postfix/trivial-rewrite[9166]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 5 10:53:25 badbison postfix/smtpd[20743]: warning: problem talking to service rewrite: Success Aug 5 10:53:25 badbison postfix/smtpd[7814]: warning: problem talking to service rewrite: Connection reset by peer Aug 5 10:53:25 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 9165 exit status 1 Aug 5 10:53:25 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 5 10:53:25 badbison postfix/smtpd[5886]: warning: problem talking to service rewrite: Success Aug 5 10:53:25 badbison postfix/smtpd[3861]: warning: problem talking to service rewrite: Connection reset by peer Aug 5 10:53:25 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 9166 exit status 1 Aug 5 10:53:28 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:29 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:30 badbison pop3d: LOGIN FAILED, user=clamav, ip=[::ffff:122.71.176.176] Aug 5 10:53:35 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:36 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:37 badbison pop3d: LOGIN FAILED, user=clamav, ip=[::ffff:122.71.176.176] Aug 5 10:53:42 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:43 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:44 badbison pop3d: LOGIN FAILED, user=victor, ip=[::ffff:122.71.176.176] Aug 5 10:53:49 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:53:50 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:53:51 badbison pop3d: LOGIN FAILED, user=victor, ip=[::ffff:122.71.176.176] Aug 5 10:53:56 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:01 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:02 badbison pop3d: LOGIN FAILED, user=victor, ip=[::ffff:122.71.176.176] Aug 5 10:54:07 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:08 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:09 badbison pop3d: LOGIN FAILED, user=john, ip=[::ffff:122.71.176.176] Aug 5 10:54:14 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:15 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:16 badbison pop3d: LOGIN FAILED, user=john, ip=[::ffff:122.71.176.176] Aug 5 10:54:21 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:22 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:23 badbison pop3d: LOGIN FAILED, user=john, ip=[::ffff:122.71.176.176] Aug 5 10:54:25 badbison postfix/trivial-rewrite[9189]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 5 10:54:25 badbison postfix/trivial-rewrite[9189]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 5 10:54:25 badbison postfix/trivial-rewrite[9190]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aug 5 10:54:25 badbison postfix/trivial-rewrite[9190]: fatal: mysql:/etc/postfix/mysql-virtual_relaydomains.cf(0,lock|fold_fix): table lookup problem Aug 5 10:54:26 badbison postfix/smtpd[20743]: warning: problem talking to service rewrite: Success Aug 5 10:54:26 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 9189 exit status 1 Aug 5 10:54:26 badbison postfix/smtpd[7814]: warning: problem talking to service rewrite: Connection reset by peer Aug 5 10:54:26 badbison postfix/master[3237]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling Aug 5 10:54:26 badbison postfix/smtpd[5886]: warning: problem talking to service rewrite: Success Aug 5 10:54:26 badbison postfix/master[3237]: warning: process /usr/lib/postfix/trivial-rewrite pid 9190 exit status 1 Aug 5 10:54:26 badbison postfix/smtpd[3861]: warning: problem talking to service rewrite: Connection reset by peer Aug 5 10:54:28 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:29 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:30 badbison pop3d: LOGIN FAILED, user=linux, ip=[::ffff:122.71.176.176] Aug 5 10:54:35 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:36 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:44 badbison pop3d: LOGIN FAILED, user=linux, ip=[::ffff:122.71.176.176] Aug 5 10:54:50 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:50 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:51 badbison pop3d: LOGIN FAILED, user=linux, ip=[::ffff:122.71.176.176] Aug 5 10:54:57 badbison pop3d: Disconnected, ip=[::ffff:122.71.176.176] Aug 5 10:54:57 badbison pop3d: Connection, ip=[::ffff:122.71.176.176] Aug 5 10:54:58 badbison pop3d: LOGIN FAILED, user=joanne, ip=[::ffff:122.71.176.176] Aug 5 10:55:03 badbison pop3d: Connection, ip=[::ffff:127.0.0.1] Aug 5 10:55:03 badbison pop3d: Disconnected, ip=[::ffff:127.0.0.1] Aug 5 10:55:03 badbison imapd: Connection, ip=[::ffff:127.0.0.1] Aug 5 10:55:03 badbison imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
I can - and I believe it has fixed it! I had to copy the setting to the other .cf files before the mail started working. It also gave me a clue as to where I went wrong - Initially mysql server was shown as not working and having retraced the guide I think I'd left a line out here: Code: 127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Of course, postfix had already been set up prior to the change. Does that sound logical? Is this likely to have affected any other steps of the set up that I should deal with? Thanks David
Are you talking about just those in etc/postfix or are there others dotted around I should also find? Postfix does seem to be working again now. Thanks