Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th May 2013, 21:25
suther suther is offline
Junior Member
 
Join Date: May 2013
Posts: 24
Thanks: 2
Thanked 4 Times in 4 Posts
Default Connection Refused by Postfix (debian 6/ispc3/devcot)

I have installed a fresh debian6 with ispconfig 3.0.5.2.

I have enterd a Mail-Domain, and on my Mailprogramm, I have create the account for imap and smtp

I see the "Welcome"-Mail of ispconig, but can' recieve or send Mails.
If I try to send a Mail, i got the message "Connection Refused".

netstat -tap show this:

Code:
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imaps                 *:*                     LISTEN      1857/dovecot    
tcp        0      0 *:pop3s                 *:*                     LISTEN      1857/dovecot    
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      11586/amavisd (mast
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      13595/master    
tcp        0      0 *:mysql                 *:*                     LISTEN      1049/mysqld     
tcp        0      0 127.0.0.2:submission    *:*                     LISTEN      13595/master    
tcp        0      0 localhost.lo:submission *:*                     LISTEN      13595/master    
tcp        0      0 *:pop3                  *:*                     LISTEN      1857/dovecot    
tcp        0      0 *:imap2                 *:*                     LISTEN      1857/dovecot    
tcp        0      0 *:sunrpc                *:*                     LISTEN      291/portmap     
tcp        0      0 *:http-alt              *:*                     LISTEN      11211/apache2   
tcp        0      0 *:www                   *:*                     LISTEN      11211/apache2   
tcp        0      0 *:tproxy                *:*                     LISTEN      11211/apache2   
tcp        0      0 127.0.0.2:ssmtp         *:*                     LISTEN      13595/master    
tcp        0      0 localhost.localdo:ssmtp *:*                     LISTEN      13595/master    
tcp        0      0 *:ftp                   *:*                     LISTEN      3300/pure-ftpd (SER
tcp        0      0 titanium-ispconf:domain *:*                     LISTEN      621/named       
tcp        0      0 127.0.0.2:domain        *:*                     LISTEN      621/named       
tcp        0      0 localhost.locald:domain *:*                     LISTEN      621/named       
tcp        0      0 *:ssh                   *:*                     LISTEN      1017/sshd       
tcp        0      0 localhost.localdoma:953 *:*                     LISTEN      621/named       
tcp        0      0 localhost.localdom:6010 *:*                     LISTEN      11143/0         
tcp        0      0 *:https                 *:*                     LISTEN      11211/apache2   
tcp        0      0 titanium-ispconfi:imap2 84.187.192.63:35567     VERBUNDEN   11076/imap-login
tcp        0      0 localhost.localdoma:www localhost.localdo:56800 TIME_WAIT   -               
tcp        0      0 titanium-ispconfi:imap2 84.187.192.63:35558     VERBUNDEN   11109/imap-login
tcp        0      0 localhost.localdoma:www localhost.localdo:56810 TIME_WAIT   -               
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      1857/dovecot    
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      1857/dovecot    
tcp6       0      0 localhost.lo:submission [::]:*                  LISTEN      13595/master    
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      1857/dovecot    
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      1857/dovecot    
tcp6       0      0 localhost.localdo:ssmtp [::]:*                  LISTEN      13595/master    
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      3300/pure-ftpd (SER
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      621/named       
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1017/sshd       
tcp6       0      0 localhost.localdoma:953 [::]:*                  LISTEN      621/named       
tcp6       0      0 localhost.localdom:6010 [::]:*                  LISTEN      11143/0         
tcp6       0      0 localhost.localdo:60959 localhost.localdoma:ftp TIME_WAIT   -
This is my /etc/postfix/master.cf
Code:
#
# 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 syslog_name=postfix/submission
#  -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 syslog_name=postfix/smtps
  -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}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# 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}

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
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

I have used the Documentation for "Perfect-Server": http://www.howtoforge.com/perfect-se...ispconfig-3-p4

I also try to deactivate the firewall in ispconfig gui, but same result. "Connection refused"
Reply With Quote
Sponsored Links
  #2  
Old 20th May 2013, 21:54
monkfish monkfish is offline
HowtoForge Supporter
 
Join Date: Mar 2013
Posts: 106
Thanks: 9
Thanked 15 Times in 14 Posts
Default

Are you expecting your mail to be sent/arrive on TCP port 25?

I'd double-check your output you posted as there doesn't seem to be anything listening on that port according to what you listed?
Reply With Quote
  #3  
Old 23rd May 2013, 18:40
suther suther is offline
Junior Member
 
Join Date: May 2013
Posts: 24
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Ok, sorry for waiting. I have reinstalled the whole Server with Debian7 now.


Same Problem.
After i create a new Mail-Domain, i got a Welcome-Mail on my account. But if i try to send a Mail, i got "Connection refused". I also got no Mails, which are send to this email-adress.

In /var/log/mail.err I see :
Code:
amavis[1241]: (01241-11) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 111) line 247, <GEN35> line 420. at (eval 112) line 322, <GEN35> line 420.
and in mail.warn I got an error, for missing mysql:
Code:
postfix/proxymap[22115]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111)
So i had a look into /etc/postfix/mysql-virtual_mailboxes.cf

I use those connection-Data and log me in. But i didn't see any other DB as "information_schema, dbispconfig, test".

Must there be a db for my mails?!

Code:
netstat -tap | grep mysql
tcp        0      0 *:mysql                 *:*                     LISTEN      24118/mysqld    
tcp        0      0 localhost.localdo:36780 localhost.localdo:mysql ESTABLISHED 2161/amavisd-new (c
tcp        0      0 localhost.localdo:mysql localhost.localdo:36790 ESTABLISHED 24118/mysqld    
tcp        0      0 localhost.localdo:36790 localhost.localdo:mysql ESTABLISHED 22121/amavisd-new (
tcp        0      0 localhost.localdo:mysql localhost.localdo:36780 ESTABLISHED 24118/mysqld
Reply With Quote
  #4  
Old 23rd May 2013, 18:44
suther suther is offline
Junior Member
 
Join Date: May 2013
Posts: 24
Thanks: 2
Thanked 4 Times in 4 Posts
 
Default

I found a solution:

On /etc/postfix/main.cf there was this Config by default:


inet_interfaces = loopback-only

I have switch it to
inet_interfaces = all

and Mails will be send.
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/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
ISPConfig "backend" completely unfunctional after a restart Xaymar Installation/Configuration 1 22nd August 2011 22:31
Stange mail problem The-Ghost Installation/Configuration 6 25th April 2010 19:59
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24


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


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