warning: connect to transport spamassassin: Connection refused

This is a discussion on warning: connect to transport spamassassin: Connection refused within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi there. I've been following a book to set up postfix, spamassassin and amavis, but am having issues where ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-04-2006
Advo
 
Posts: n/a
Default warning: connect to transport spamassassin: Connection refused

Hi there. I've been following a book to set up postfix, spamassassin
and amavis, but am having issues where im getting the error messages:

warning: connect to transport spamassassin: Connection refused and

fatal: parameter "smtpd_recipient_restrictions": specify at least one
working instance of: check_relay_domains, reject_unauth_destination,
reject, defer or defer_if_permit


I've included my config information, does anyone have any ideas please?


#############
master.cf
#############

smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
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
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil

maildrop unix - n n - - pipe
flags=DRhu user=daemon:mail argv=/usr/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension}
${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender -
$nexthop!rmail.postfix ($recipient)
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

smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - y - - 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


################
main.cf
################

queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix


mydestination = $myhostname, localhost.$mydomain

unknown_local_recipient_reject_code = 450

mynetworks_style = host

alias_maps = hash:/etc/postfix/aliases

debug_peer_level = 2

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.0.18/samples

readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
alias_database = hash:/etc/postfix/aliases

virtual_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
virtual_mailbox_domains = $transport_maps
local_destination_concurrency_limit=1
maildrop_destination_concurrency_limit=1
maildrop_destination_recipient_limit=1
relay_domains=$mydestination
smtpd_recipient_restrictions=permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options=noanonymous

content_filter = smtp-amavis:[127.0.0.1]:10024


######################
postconf -n
######################


[root@localhost postfix]# postconf -n

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
local_destination_concurrency_limit = 1
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain
mynetworks_style = host
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.18/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.0.18/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450
virtual_mailbox_domains = $transport_maps

Reply With Quote
  #2 (permalink)  
Old 10-04-2006
Greg Hackney
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused

Advo wrote:

> fatal: parameter "smtpd_recipient_restrictions": specify at least one
> working instance of: check_relay_domains, reject_unauth_destination,
> reject, defer or defer_if_permit



In the master.cf file, you can't use whitespace between options
like you can in the main.cf file:

-o smtpd_recipient_restrictions=permit_mynetworks, reject
^
|

--
Greg
Reply With Quote
  #3 (permalink)  
Old 10-04-2006
Advo
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused


Greg Hackney wrote:
> Advo wrote:
>
> > fatal: parameter "smtpd_recipient_restrictions": specify at least one
> > working instance of: check_relay_domains, reject_unauth_destination,
> > reject, defer or defer_if_permit

>
>
> In the master.cf file, you can't use whitespace between options
> like you can in the main.cf file:
>
> -o smtpd_recipient_restrictions=permit_mynetworks, reject
> ^
> |
>
> --
> Greg


i get what you mean, but i dont see what i should change.. if this is
my line of code:
-o smtpd_recipient_restrictions=permit_mynetworks, reject

what should it be?

-o smtpd_recipient_restrictions=permit_mynetworks,rej ect Removed the
space before reject?

Reply With Quote
  #4 (permalink)  
Old 10-04-2006
Greg Hackney
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused

Advo wrote:

> i get what you mean, but i dont see what i should change.. if this is
> my line of code:
> -o smtpd_recipient_restrictions=permit_mynetworks, reject
>
> what should it be?
>
> -o smtpd_recipient_restrictions=permit_mynetworks,rej ect Removed the
> space before reject?


Yes

--
Greg

Reply With Quote
  #5 (permalink)  
Old 10-04-2006
Advo
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused


Greg Hackney wrote:
> Advo wrote:
>
> > i get what you mean, but i dont see what i should change.. if this is
> > my line of code:
> > -o smtpd_recipient_restrictions=permit_mynetworks, reject
> >
> > what should it be?
> >
> > -o smtpd_recipient_restrictions=permit_mynetworks,rej ect Removed the
> > space before reject?

>
> Yes
>
> --
> Greg


done that, and am now getting messages like:

Oct 4 15:46:48 localhost postfix/smtp[21847]: warning: connect #1 to
subsystem private/scache: No such file or directory

delivery temporarily suspended: unknown mail transport error

Reply With Quote
  #6 (permalink)  
Old 10-04-2006
Greg Hackney
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused

Advo wrote:
am now getting messages like:
>
> Oct 4 15:46:48 localhost postfix/smtp[21847]: warning: connect #1 to
> subsystem private/scache: No such file or directory


It looks like the "scache" feature is missing from the master.cf
file, and/or the scache directories missing.

Try running these command as the super-user:

postfix stop
/etc/postfix/post-install upgrade-package
postfix start

post-intall is a shell script that adds any missing
entries to master.cf that are required by newer versions
of Postfix, and it also adds any missing directories,
and makes sure their permissions are set correctly.

--
Greg
Reply With Quote
  #7 (permalink)  
Old 10-04-2006
Advo
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused


Greg Hackney wrote:
> Advo wrote:
> am now getting messages like:
> >
> > Oct 4 15:46:48 localhost postfix/smtp[21847]: warning: connect #1 to
> > subsystem private/scache: No such file or directory

>
> It looks like the "scache" feature is missing from the master.cf
> file, and/or the scache directories missing.
>
> Try running these command as the super-user:
>
> postfix stop
> /etc/postfix/post-install upgrade-package
> postfix start
>
> post-intall is a shell script that adds any missing
> entries to master.cf that are required by newer versions
> of Postfix, and it also adds any missing directories,
> and makes sure their permissions are set correctly.
>
> --
> Greg



sorry to be a pain but:

[root@localhost /]# postfix stop
postfix/postfix-script: stopping the Postfix mail system
[root@localhost /]# /etc/postfix/post-install upgrade-package
chown: cannot access `/usr/share/doc/postfix-2.0.18/README_FILES': No
such file or directory

any ideas why?

Reply With Quote
  #8 (permalink)  
Old 10-04-2006
Greg Hackney
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused

Advo wrote:
> Greg Hackney wrote:
>> Advo wrote:
>> am now getting messages like:
>>> Oct 4 15:46:48 localhost postfix/smtp[21847]: warning: connect #1 to
>>> subsystem private/scache: No such file or directory

>> It looks like the "scache" feature is missing from the master.cf
>> file, and/or the scache directories missing.
>>
>> Try running these command as the super-user:
>>
>> postfix stop
>> /etc/postfix/post-install upgrade-package
>> postfix start
>>
>> post-intall is a shell script that adds any missing
>> entries to master.cf that are required by newer versions
>> of Postfix, and it also adds any missing directories,
>> and makes sure their permissions are set correctly.
>>
>> --
>> Greg

>
>
> sorry to be a pain but:
>
> [root@localhost /]# postfix stop
> postfix/postfix-script: stopping the Postfix mail system
> [root@localhost /]# /etc/postfix/post-install upgrade-package
> chown: cannot access `/usr/share/doc/postfix-2.0.18/README_FILES': No
> such file or directory
>
> any ideas why?
>


Man, what method did you use to install Postfix? From a distribution
package? From source code? Manually copied over? I ask because you
are running into problems that shouldn't occur in a normal installation.
Perhaps you copied over old config files ?

The "post-install" script works based on parameters set in your
main.cf configuration file.

That error about documentation is based on the directory location
of the README files, as defined by the main.cf configuration
parameter: readme_directory

Here's a list all the configurations it uses:


daemon_directory
command_directory
queue_directory
mail_owner
setgid_group
sendmail_path
mailq_path
newaliases_path
html_directory
manpage_directory
sample_directory
readme_directory


In main.cf, just set "readme_directory" to the location of your
system's Postfix README directory, or if you don't have one:

readme_directory=""

--
Greg












Reply With Quote
  #9 (permalink)  
Old 10-05-2006
Advo
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused


Greg Hackney wrote:
> Advo wrote:
> > Greg Hackney wrote:
> >> Advo wrote:
> >> am now getting messages like:
> >>> Oct 4 15:46:48 localhost postfix/smtp[21847]: warning: connect #1 to
> >>> subsystem private/scache: No such file or directory
> >> It looks like the "scache" feature is missing from the master.cf
> >> file, and/or the scache directories missing.
> >>
> >> Try running these command as the super-user:
> >>
> >> postfix stop
> >> /etc/postfix/post-install upgrade-package
> >> postfix start
> >>
> >> post-intall is a shell script that adds any missing
> >> entries to master.cf that are required by newer versions
> >> of Postfix, and it also adds any missing directories,
> >> and makes sure their permissions are set correctly.
> >>
> >> --
> >> Greg

> >
> >
> > sorry to be a pain but:
> >
> > [root@localhost /]# postfix stop
> > postfix/postfix-script: stopping the Postfix mail system
> > [root@localhost /]# /etc/postfix/post-install upgrade-package
> > chown: cannot access `/usr/share/doc/postfix-2.0.18/README_FILES': No
> > such file or directory
> >
> > any ideas why?
> >

>
> Man, what method did you use to install Postfix? From a distribution
> package? From source code? Manually copied over? I ask because you
> are running into problems that shouldn't occur in a normal installation.
> Perhaps you copied over old config files ?
>
> The "post-install" script works based on parameters set in your
> main.cf configuration file.
>
> That error about documentation is based on the directory location
> of the README files, as defined by the main.cf configuration
> parameter: readme_directory
>
> Here's a list all the configurations it uses:
>
>
> daemon_directory
> command_directory
> queue_directory
> mail_owner
> setgid_group
> sendmail_path
> mailq_path
> newaliases_path
> html_directory
> manpage_directory
> sample_directory
> readme_directory
>
>
> In main.cf, just set "readme_directory" to the location of your
> system's Postfix README directory, or if you don't have one:
>
> readme_directory=""
>
> --
> Greg


do you think it may be a better idea to remove postfix, spamassassin,
amavisd and start again with a fresh install? If so, can i actually
remove all the stuff ive done without breaking anything else? and the
same with the perl modules?

Cheers

Reply With Quote
  #10 (permalink)  
Old 10-05-2006
Greg Hackney
 
Posts: n/a
Default Re: warning: connect to transport spamassassin: Connection refused

Advo wrote:


> do you think it may be a better idea to remove postfix, spamassassin,
> amavisd and start again with a fresh install? If so, can i actually
> remove all the stuff ive done without breaking anything else? and the
> same with the perl modules?


That's up to you. Personally I would remove and reinstall Postfix,
especially if you are running an older version. 2.3.3 is the latest.

There's probably no reason to mess with spamassassin, amavisd, and perl,
unless you know something I don't about the manner in which they were
installed.

I'd recommend getting the bare bones Postfix configuration working first,
and then modifying the configs to get new features working one by one.

--
Greg

Reply With Quote
Reply


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0