Discussion:
Connection Refused
Paul Franklin
2007-05-21 01:22:01 UTC
Permalink
Greetings!
I have set up Kolab and am attempting to do a couple of things that
don't seem to want to happen. The first is what I would think is the
easiest: send a message from one Kolab user on this box to another on
the same box. When I send a message, the sending computer gets no error
message. Everything appears fine. But then when I log in as the other
person, there is no mail.
The postfix log says that the connection is refused on 127.0.0.1. In
the Privileged Networks box I have listed 127.0.0.0/8, 192.168.1.0/24.
Kolab is running on an Ubuntu 7.04 server.
Here are some lines from the postfix log:

May 20 17:52:07 ubuntufs <info> postfix/smtp[18009]: A94D51160269:
to=<pdf at paulfranklin.org>, relay=none, delay=1210, status=deferred
(connect to 127.0.0.1[127.0.0.1]: Connection refused)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18008]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18009]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)

Can anyone straighten me out here? I'm not very proficient in this.
--Paul
--
Paul Douglas Franklin
Husband of Danette
Father of 12

Your readers, who with me have never seen any signs of sunshine before
noon, and seldom regard the astronomical part of the almanac, will be as
much astonished as I was, when they hear of his rising so early; and
especially when I assure them, that he gives light as soon as he rises.
--Benjamin Franklin, 1784
Alain Spineux
2007-05-21 11:49:01 UTC
Permalink
It looks amavis is not working (port 10024) try to restart postfix

# /kolab/bin/openpkg rc postfix restart

then try this

# telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.

Anyway look into the amavis log for any error message.

Someone gets problem with amavis in this mailing list some days ago,
look the archive.

BR
Post by Paul Franklin
Greetings!
I have set up Kolab and am attempting to do a couple of things that
don't seem to want to happen. The first is what I would think is the
easiest: send a message from one Kolab user on this box to another on
the same box. When I send a message, the sending computer gets no error
message. Everything appears fine. But then when I log in as the other
person, there is no mail.
The postfix log says that the connection is refused on 127.0.0.1. In
the Privileged Networks box I have listed 127.0.0.0/8, 192.168.1.0/24.
Kolab is running on an Ubuntu 7.04 server.
to=<pdf at paulfranklin.org>, relay=none, delay=1210, status=deferred
(connect to 127.0.0.1[127.0.0.1]: Connection refused)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18008]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18009]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Can anyone straighten me out here? I'm not very proficient in this.
--Paul
--
Paul Douglas Franklin
Husband of Danette
Father of 12
Your readers, who with me have never seen any signs of sunshine before
noon, and seldom regard the astronomical part of the almanac, will be as
much astonished as I was, when they hear of his rising so early; and
especially when I assure them, that he gives light as soon as he rises.
--Benjamin Franklin, 1784
_______________________________________________
Kolab-users mailing list
Kolab-users at kolab.org
https://kolab.org/mailman/listinfo/kolab-users
--
--
Alain Spineux
aspineux gmail com
May the sources be with you
Paul Franklin
2007-05-22 04:03:47 UTC
Permalink
Thank you; amavis seems to be working now. But mail still doesn't go
thru.
I have two different things I'm trying, neither of which will work. I
try, from another box on the local network, to send a message from one
account on the kolab server to another. Doing that from Thunderbird, I
get a message that "The message could not be sent because connecting to
SMTP server 192.168.1.2 failed." On the ubuntu box where kolab is
running, I tried

telnet 127.0.0.1 25
telnet: Unable to connect to remote host: Connection refused

The other thing I'm trying to do is to download messages from my isp
pop3 server using fetchmail. Fetchmail seems to do ok when I issue the
command at the prompt. It logs in to the pop3 server, gets the 1 test
message I have sent, and flushes it. No error messages. But then when
I log in to my IMAP account on kolab, there are no new messages.
In my attempts to get fetchmail to download messages, I installed
sendmail. It seemed right at the time, but I think it is conflicting
with postfix. If I stop sendmail, however, fetchmail spews forth
messages about being unable to manage the SMTP connection to localhost.
One other thing: the postfix log file now has the following error messages:
. . . warning: not owned by root: /kolab/etc/postfix/[various files]
And before my latest fiddling,
. . . fatal: bind 0.0.0.0 port 25: Address already in use
--Paul

Paul Douglas Franklin
Husband of Danette
Father of 12

Your readers, who with me have never seen any signs of sunshine before noon, and seldom regard the astronomical part of the almanac, will be as much astonished as I was, when they hear of his rising so early; and especially when I assure them, that he gives light as soon as he rises.
--Benjamin Franklin, 1784
Post by Alain Spineux
It looks amavis is not working (port 10024) try to restart postfix
# /kolab/bin/openpkg rc postfix restart
then try this
# telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.
Anyway look into the amavis log for any error message.
Someone gets problem with amavis in this mailing list some days ago,
look the archive.
BR
Post by Paul Franklin
Greetings!
I have set up Kolab and am attempting to do a couple of things that
don't seem to want to happen. The first is what I would think is the
easiest: send a message from one Kolab user on this box to another on
the same box. When I send a message, the sending computer gets no error
message. Everything appears fine. But then when I log in as the other
person, there is no mail.
The postfix log says that the connection is refused on 127.0.0.1. In
the Privileged Networks box I have listed 127.0.0.0/8, 192.168.1.0/24.
Kolab is running on an Ubuntu 7.04 server.
to=<pdf at paulfranklin.org>, relay=none, delay=1210, status=deferred
(connect to 127.0.0.1[127.0.0.1]: Connection refused)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18008]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18009]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Can anyone straighten me out here? I'm not very proficient in this.
--Paul
--
Paul Douglas Franklin
Husband of Danette
Father of 12
Your readers, who with me have never seen any signs of sunshine before
noon, and seldom regard the astronomical part of the almanac, will be as
much astonished as I was, when they hear of his rising so early; and
especially when I assure them, that he gives light as soon as he rises.
--Benjamin Franklin, 1784
_______________________________________________
Kolab-users mailing list
Kolab-users at kolab.org
https://kolab.org/mailman/listinfo/kolab-users
Alain Spineux
2007-05-22 12:43:54 UTC
Permalink
Post by Paul Franklin
Thank you; amavis seems to be working now. But mail still doesn't go
thru.
I have two different things I'm trying, neither of which will work. I
try, from another box on the local network, to send a message from one
account on the kolab server to another. Doing that from Thunderbird, I
get a message that "The message could not be sent because connecting to
SMTP server 192.168.1.2 failed." On the ubuntu box where kolab is
running, I tried
telnet 127.0.0.1 25
telnet: Unable to connect to remote host: Connection refused
The other thing I'm trying to do is to download messages from my isp
pop3 server using fetchmail. Fetchmail seems to do ok when I issue the
command at the prompt. It logs in to the pop3 server, gets the 1 test
message I have sent, and flushes it. No error messages. But then when
I log in to my IMAP account on kolab, there are no new messages.
In my attempts to get fetchmail to download messages, I installed
sendmail. It seemed right at the time, but I think it is conflicting
with postfix. If I stop sendmail, however, fetchmail spews forth
messages about being unable to manage the SMTP connection to localhost.
You can only have one program waiting for connection on one port, 25 for SMTP.
It must be sendmail or postfix, not both.
Only postfix is working with kolab :-)
STOP sendmail and restart postfix
# /kolab/bin/openpkg rc postfix restart

Fetchamil will never make any difference between postfix, or sendmail.
Post by Paul Franklin
. . . warning: not owned by root: /kolab/etc/postfix/[various files]
not a problem, i have the same
Post by Paul Franklin
And before my latest fiddling,
. . . fatal: bind 0.0.0.0 port 25: Address already in use
This message should go away
Post by Paul Franklin
--Paul
Paul Douglas Franklin
Husband of Danette
Father of 12
Your readers, who with me have never seen any signs of sunshine before noon, and seldom regard the astronomical part of the almanac, will be as much astonished as I was, when they hear of his rising so early; and especially when I assure them, that he gives light as soon as he rises.
--Benjamin Franklin, 1784
Post by Alain Spineux
It looks amavis is not working (port 10024) try to restart postfix
# /kolab/bin/openpkg rc postfix restart
then try this
# telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
quit
221 2.0.0 [127.0.0.1] amavisd-new closing transmission channel
Connection closed by foreign host.
Anyway look into the amavis log for any error message.
Someone gets problem with amavis in this mailing list some days ago,
look the archive.
BR
Post by Paul Franklin
Greetings!
I have set up Kolab and am attempting to do a couple of things that
don't seem to want to happen. The first is what I would think is the
easiest: send a message from one Kolab user on this box to another on
the same box. When I send a message, the sending computer gets no error
message. Everything appears fine. But then when I log in as the other
person, there is no mail.
The postfix log says that the connection is refused on 127.0.0.1. In
the Privileged Networks box I have listed 127.0.0.0/8, 192.168.1.0/24.
Kolab is running on an Ubuntu 7.04 server.
to=<pdf at paulfranklin.org>, relay=none, delay=1210, status=deferred
(connect to 127.0.0.1[127.0.0.1]: Connection refused)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18008]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
May 20 17:52:07 ubuntufs <info> postfix/smtp[18009]: connect to
127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Can anyone straighten me out here? I'm not very proficient in this.
--Paul
--
Paul Douglas Franklin
Husband of Danette
Father of 12
Your readers, who with me have never seen any signs of sunshine before
noon, and seldom regard the astronomical part of the almanac, will be as
much astonished as I was, when they hear of his rising so early; and
especially when I assure them, that he gives light as soon as he rises.
--Benjamin Franklin, 1784
_______________________________________________
Kolab-users mailing list
Kolab-users at kolab.org
https://kolab.org/mailman/listinfo/kolab-users
_______________________________________________
Kolab-users mailing list
Kolab-users at kolab.org
https://kolab.org/mailman/listinfo/kolab-users
--
--
Alain Spineux
aspineux gmail com
May the sources be with you
Paul Franklin
2007-05-22 14:46:40 UTC
Permalink
Thank you. Success at last! I have done

# /etc/init.d/fetchmail stop
Stopping Mail Transport Agent: sendmail
# /kolab/bin/openpkg rc postfix restart
openPKG: restart: postfix
# telnet 127.0.0.1 25
trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
#ps ax | grep postfix
678 tty3 S+ 0:00 grep postfix

I suspected therefore that for some reason postfix decided not to run
after all. So I did

# apt-get remove sendmail and rebooted.
[responses that seemed to indicate successful removal]
reboot

It still loaded sendmail. apt-get remove sendmail claims that it cannot
be removed because it was already. So I changed the permissions of
sendmail in /etc/init.d so that it is non-executable. Not the right
way, I know, but it stopped sendmail from loading. Now Kolab works.

Thank you very much for your help, Alain.
--Paul
Post by Alain Spineux
You can only have one program waiting for connection on one port, 25 for SMTP.
It must be sendmail or postfix, not both.
Only postfix is working with kolab :-)
STOP sendmail and restart postfix
# /kolab/bin/openpkg rc postfix restart
Fetchamil will never make any difference between postfix, or sendmail.
Continue reading on narkive:
Loading...