Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 23rd March 2009, 18:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
tcp 0 0 localhost:mysql *:* LISTEN 4481/mysqld
Not sure if this is the problem, but can you make MySQL listen on all interfaces?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 23rd March 2009, 18:44
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:10024 *:* LISTEN 4406/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 5307/master
tcp 0 0 *:mysql *:* LISTEN 30789/mysqld
tcp 0 0 *:submission *:* LISTEN 5307/master
tcp 0 0 localhost:spamd *:* LISTEN 4546/spamd.pid
tcp 0 0 *:http-alt *:* LISTEN 5435/apache2
tcp 0 0 *:www *:* LISTEN 5435/apache2
tcp 0 0 *:ftp *:* LISTEN 24618/pure-ftpd (SE
tcp 0 0 *:munin *:* LISTEN 5505/munin-node
tcp 0 0 *.*.*.*.:domain *:* LISTEN 5179/mydns
tcp 0 0 localhost:domain *:* LISTEN 5179/mydns
tcp 0 0 *:ssh *:* LISTEN 4380/sshd
tcp 0 0 *:smtp *:* LISTEN 5307/master
tcp 0 0 *:https *:* LISTEN 5435/apache2
tcp 0 0 localhost:45607 localhost:mysql ESTABLISHED 4493/amavisd (ch14-
tcp 0 0 localhost:mysql localhost:45627 ESTABLISHED 30789/mysqld
tcp 0 0 localhost:45621 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:45623 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:mysql localhost:45607 ESTABLISHED 30789/mysqld
tcp 0 0 localhost:45627 localhost:mysql ESTABLISHED 4494/amavisd (ch14-
tcp 0 0 localhost:45622 localhost:mysql TIME_WAIT -
tcp 0 288 *.**.**:ssh *.*.*.*:60442 ESTABLISHED 30510/sshd: pcpharm
tcp 0 0 localhost:45629 localhost:mysql TIME_WAIT -
tcp 0 0 localhost:45625 localhost:mysql TIME_WAIT -
tcp6 0 0 [::]:imaps [::]:* LISTEN 5115/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 5169/couriertcpd
tcp6 0 0 [::]op3 [::]:* LISTEN 5138/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 5084/couriertcpd
tcp6 0 0 [::]:ftp [::]:* LISTEN 24618/pure-ftpd (SE
tcp6 0 0 ip6-localhost:domain [::]:* LISTEN 5179/mydns
tcp6 0 0 [::]:ssh [::]:* LISTEN 4380/sshd
tcp6 0 0 *.**.*:imap2 *.*.*.*:62314 ESTABLISHED 16745/couriertls
tcp6 0 0 *.*.*.*:imap2 *.*.*.*:65295 ESTABLISHED 16282/couriertls
Reply With Quote
  #13  
Old 23rd March 2009, 19:03
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

I did edit this line:

flags=R user=vmail argv=/usr/bin/maildrop -d vmail ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}


To try to get the 587 part working. I added the second vmail.


I tried this:

root@virt3:/var/log# su vmail
sh-3.2$ /usr/bin/maildrop -d vmail webmaster@mydomain.com
ERR: authdaemon: s_connect() failed: Permission denied
^Cmaildrop: signal 0x02


What is a sample maildrop comamnd?
Reply With Quote
  #14  
Old 23rd March 2009, 22:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

You can find the maildrop script right in the /home/vmail or /var/vmail directory, it starts with a dot so you have to use ls -la to see it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 23rd March 2009, 22:25
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

There is no maildrop script in either of those directories.

root@server:/var/vmail# ls -al
total 60
drwxr-xr-x 10 vmail vmail 4096 2009-03-23 11:02 .
drwxr-xr-x 17 root root 4096 2009-02-25 00:35 ..
-rw------- 1 vmail vmail 58 2009-03-23 11:02 .bash_history
-rw-r--r-- 1 vmail vmail 220 2008-05-12 11:49 .bash_logout
-rw-r--r-- 1 vmail vmail 3115 2008-05-12 11:49 .bashrc
drwx------ 3 vmail vmail 4096 2009-02-25 00:33 mydomain.com
-rw------- 1 vmail vmail 1240 2009-02-24 22:20 .mailfilter
drwxr-xr-x 4 root root 4096 2009-03-09 14:27 mailfilters
-rw-r--r-- 1 vmail vmail 675 2008-05-12 11:49 .profile
Reply With Quote
  #16  
Old 23rd March 2009, 22:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

The script is there in your listing:

.mailfilter
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 23rd March 2009, 22:33
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

that script isn't executable. I changed the permissions for the time being.
Reply With Quote
  #18  
Old 23rd March 2009, 22:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

This is not a shell script, so it should not be executable. the correct permissions are:

-rw------- 1 vmail vmail 1240 2009-03-22 23:11 .mailfilter
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #19  
Old 23rd March 2009, 22:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
root@virt3:/var/log# su vmail
sh-3.2$ /usr/bin/maildrop -d vmail webmaster@mydomain.com
ERR: authdaemon: s_connect() failed: Permission denied
^Cmaildrop: signal 0x02
The correct line in master.cf is:

Code:
maildrop  unix  -       n       n       -       -       pipe
  flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
If you want to run this manually you have to provide all options and not just one option as you did. The full command is:

/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}

and you will have to replace every variable with the correct content that is used by postfix.

If you want to know more about the delivery process, better use debugging instead of trying to execute things manually:

http://www.courier-mta.org/maildrop.html

http://www.courier-mta.org/maildropfilter.html#log

You can not execute the maildrop script like this, it has to be exc
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #20  
Old 20th January 2011, 10:22
savago savago is offline
Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to savago
 
Default

Same error

amavis[2399]: (02399-02) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 86) line 166, <GEN48> line 3.

OS Debian lenny ISPConfig3-stable

netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 2019/mysqld
tcp 0 0 localhost:48672 localhost:mysql ESTABLISHED 2399/amavisd (ch2-a
tcp 0 0 localhost:mysql localhost:48672 ESTABLISHED 2019/mysqld
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix cant recieve mails Donto Server Operation 5 8th December 2008 10:44
Postfix unable to receive any mails mellentino Server Operation 4 30th September 2007 16:03
Sendmai can send mails but unable to receive mails satimis Server Operation 10 20th February 2007 17:10
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 17:52.


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