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 30th September 2010, 13:22
raicabogdan raicabogdan is offline
Junior Member
 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default connect to transport amavis: Connection refused

I ahve a problem with the mail server. Until I update the entire system was working normally. I forgot to exclude postfix from centos update so this is where my problems starts.

I removed postfix and install it from CentOS Plus repository (with mysql support).
postconf -n
Quote:
[root@sv2 postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
body_checks = regexp:/etc/postfix/body_checks
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 6442450944
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 6442450944
mime_header_checks = regexp:/etc/postfix/mime_header_checks
mydestination = sv2.domain, localhost, localhost.localdomain
myhostname = sv2.domain
mynetworks = 127.0.0.0/8 [::1]/128
nested_header_checks = regexp:/etc/postfix/nested_header_checks
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
receive_override_options = no_address_mappings
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
relayhost =
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_security_level = may
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_transport = maildrop
virtual_uid_maps = static:5000
Here is the master.cf

Quote:
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
-o smtpd_enforce_tls=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 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/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
Also in the maillog I have:

Quote:
Refresh Sequence:
Data from: 2010-09-30 14:15
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: D1B0A215F10: to=, relay=none, delay=999, delays=999/0.06/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: DCB77215F14: from=, size=2876, nrcpt=1 (queue active)
Sep 30 13:55:08 sv2 postfix/pickup[29675]: 05BBE215F5D: uid=89 from= orig_id=E44D5215F55
Sep 30 13:55:08 sv2 postfix/cleanup[29821]: 05BBE215F5D: message-id=
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: DCB77215F14: to=, relay=none, delay=1861, delays=1861/0.08/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: EB37F215F32: from=, size=1207, nrcpt=1 (queue active)
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: EB37F215F32: to=, relay=none, delay=5257, delays=5257/0.06/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: 05BBE215F5D: from=, size=2884, nrcpt=1 (queue active)
Sep 30 13:55:08 sv2 postfix/qmgr[29676]: 05BBE215F5D: to=, relay=none, delay=1540, delays=1540/0.07/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep 30 13:56:07 sv2 postfix/qmgr[29676]: warning: connect to transport amavis: Connection refused
Sep 30 13:57:07 sv2 postfix/qmgr[29676]: warning: connect to transport amavis: Connection refused
Sep 30 13:58:07 sv2 postfix/qmgr[29676]: warning: connect to transport amavis: Connection refused
/etc/init.d/amavisd restart but in the error log I still get connection refused.

Can someone please provide some help here ?
Reply With Quote
Sponsored Links
  #2  
Old 30th September 2010, 17:17
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

The postfix configuration seems to be overwitten. To fix this, download the ispconfig 3.0.2.2 tar.gz file, unpack it and then run the update.php script which is in the install folder. Select to reconfigure services when the updater asks you. The ispconfig update script will readd the missing postfix configuration.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th September 2010, 17:51
raicabogdan raicabogdan is offline
Junior Member
 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your help,
With the help of a friend postfix seemed to work. But I had this in the mail log:
Quote:
postfix statistics: max connection rate 1/60s
I have 4 email account that I use the same time in thunderbird.
I did the update like you suggested and now I have again
Quote:
Sep 30 18:45:50 sv2 postfix/cleanup[20863]: 3D530215FF5: message-id=<20100930102802.5910C215F16@sv2.xeromhost.ro>
Sep 30 18:45:50 sv2 postfix/pickup[20353]: 4EB93215F3B: uid=89 from= orig_id=E8F1E215F46
Sep 30 18:45:50 sv2 postfix/cleanup[20860]: 4EB93215F3B: message-id=<20100930142608.00E70215F44@sv2.xeromhost.ro>
Sep 30 18:45:50 sv2 postfix/qmgr[20354]: 34DF1215FF2: to=, relay=none, delay=17892, delays=17892/0.07/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep 30 18:45:50 sv2 postfix/qmgr[20354]: 4EB93215F3B: from=, size=1027, nrcpt=1 (queue active)
Sep 30 18:45:50 sv2 postfix/pickup[20353]: 5F633215F46: uid=89 from= orig_id=523FC215FF1
Sep 30 18:45:50 sv2 postfix/cleanup[20863]: 5F633215F46: message-id=<201009300853.o8U8rXgh015801@sv2.xeromhost.ro>
Sep 30 18:45:50 sv2 postfix/qmgr[20354]: 4EB93215F3B: to=, relay=none, delay=4782, delays=4782/0.12/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Sep 30 18:45:50 sv2 postfix/pickup[20353]: 721DF215FF1: uid=89 from= orig_id=7E79C215F3C
Sep 30 18:45:50 sv2 postfix/qmgr[20354]: 3D530215FF5: from=, size=2393, nrcpt=1 (queue active)
Sep 30 18:45:50 sv2 postfix/cleanup[20860]: 721DF215FF1: message-id=<20100930100903.B6CAD215F2B@sv2.xeromhost.ro>
Sep 30 18:45:50 sv2 postfix/qmgr[20354]: 3D530215FF5: to=, relay=none, delay=19068, delays=19068/0.05/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
And:
Quote:
Sep 30 18:46:50 sv2 postfix/qmgr[20354]: warning: connect to transport amavis: Connection refused
Sep 30 18:47:50 sv2 postfix/qmgr[20354]: warning: connect to transport amavis: Connection refused
What do you think ?
Thanks

Last edited by raicabogdan; 30th September 2010 at 17:53.
Reply With Quote
  #4  
Old 30th September 2010, 18:43
raicabogdan raicabogdan is offline
Junior Member
 
Join Date: Jun 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Sorry for double post,
So I removed postfix again, install it with mysql support from centos repo. and did the update. After postsuper -r ALL the mails are comming

Thanks for the tips with the update.
Regards.
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
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 10:37
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 09:32
can't send/receive mail fedora 12 - ispconfig 3 ev0css Installation/Configuration 9 17th May 2010 21:44
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
Mail not working epicuniversal General 5 13th June 2009 08:24


All times are GMT +2. The time now is 21:03.


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